/* banner start */

.services-hero {
    position: relative;
    width: 100%;
    height: 500px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('./img/about-cover4.jpeg'); 
    background-size: cover;
    background-position: center;
    margin-bottom: 60px; 
}

.services-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(129, 14, 76, 0.85); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-family: 'Times New Roman', serif;
    margin: 0;
}

/* banner end */

/* Department section start */

body {
  background-color: #f0f2f5;
  font-family: Arial, sans-serif;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 30px; 
  max-width: 1200px;
  margin: 80px auto; 
  padding: 0 20px; 
  flex: 1;
}

.gallery-grid {
  margin-top: 100px; 
  margin-bottom: 100px;
}



.card {
  position: relative;
  height: 500px; 
}


.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 85%; 
  border-radius: 4px;
  background: linear-gradient(
    to top, 
    rgba(129, 14, 76, 0.9) 0%,   
    rgba(129, 14, 76, 0.4) 50%,  
    rgba(255, 255, 255, 0) 100%  
  );
  
  z-index: 1; 
  pointer-events: none;
}

.main-img {
  display: block;
  width: 100%;
  height: 85%; 
  object-fit: cover;
  border-radius: 4px;
}

.info-box {
  position: absolute;
  bottom: 30px;
  left: 25px;
  right: 25px;
  background: white;
  padding: 25px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 6px;
  z-index: 10;
}

.icon-img {
  width: 60px;
  height: auto;
  margin-right: 20px;
}

.text-content h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #0c2357; 
  font-family: 'Times New Roman', serif;
}

.text-content p {
  margin: 8px 0 0 0;
  font-size: 15px;
  color: #4a5568; 
  line-height: 1.5;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr; 
  }
}

/* Department section end */

/* booking start */


/* --- Desktop View (Your Original Code) --- */
.appointment-module {
  width: 100%;
  background-color: white; 
  padding: 80px 0; 
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Fixes right-side white space */
}

.booking-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr; 
  background-color: #810e4c; 
  max-width: 1100px;
  width: 90%;
  border-radius: 30px; 
  overflow: hidden; 
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.booking-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-form-area {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.booking-form-area span {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.form-title {
  color: white;
  font-family: 'Times New Roman', serif;
  font-size: 2rem;
  margin-bottom: 30px;
  line-height: 1.2;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.pill-input {
  flex: 1;
  background: transparent;
  border: 1px solid white; 
  border-radius: 50px; 
  padding: 12px 20px;
  color: white; 
  outline: none;
  font-size: 14px;
  transition: background 0.3s ease;
  width: 100%; /* Ensures inputs fill their container */
}

.pill-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.pill-input:focus {
  border: 1px solid white; 
  background: rgba(255, 255, 255, 0.05); 
}

.pill-input option {
  background-color: white;
  color: #810e4c;
  padding: 10px;
}

.submit-btn {
  background: white;
  color: #810e4c;
  border: none;
  border-radius: 50px;
  padding: 15px 30px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
  align-self: flex-start; 
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Responsive Mobile Adjustments --- */
@media (max-width: 900px) {
  .appointment-module {
    padding: 40px 0; /* Reduced padding for mobile screens */
  }

  .booking-container {
    grid-template-columns: 1fr; /* Stacks image on top of form */
    width: 95%; /* Maximizes space usage on small screens */
    border-radius: 20px; /* Slightly smaller radius for mobile */
  }

  .booking-container img {
    height: 250px; /* Limits image height to save vertical space */
  }

  .booking-form-area {
    padding: 30px 20px; /* Optimized padding for phones */
    text-align: center;
  }

  .form-title {
    font-size: 1.6rem; /* Scales title down to fit mobile viewports */
  }

  .form-row {
    flex-direction: column; /* Forces inputs to stack vertically */
    gap: 10px;
    margin-bottom: 10px;
  }

  .pill-input {
    padding: 10px 15px; /* Slightly more compact padding */
  }

  .submit-btn {
    align-self: center; /* Centers button for a balanced mobile look */
    width: 100%; /* Makes button easier to tap on mobile */
    max-width: 250px;
  }
}
/* booking end */