:root {
  --primary: #198754;
  --primary-hover: #146c43;
  --card-bg: #fff;
}

/* Page background gutter */
.booking-page {
  background: var(--primary);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Content wrapper: spacing from header/footer and internal padding */
.content-box {
  margin: 2rem auto 4rem;
  max-width: 1200px;
  background: var(--card-bg);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 1rem; /* whitespace around hero and content */
}

/* Inner container for non-hero sections */
.container {
  padding: 2rem 1rem;
}

/* Hero section: full-width image with margin and rounded corners */
.booking-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  margin-bottom: 1rem; /* add space below hero */
}
.hero-overlay {
  background: rgba(0,0,0,0.6);
  padding: 2rem 2.5rem;
  border-radius: 0.5rem;
  max-width: 800px;
  text-align: center;
}
.booking-hero h1 {
  color: #fff;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.booking-hero .hero-overlay p {
  background: none;
  padding: 0;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  display: block;
  margin-top: 0.5rem;
}

/* Booking widget styling */
.booking-widget {
  margin: 2rem 0;
}
.booking-widget iframe {
  width: 100%;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-height: 600px;
}

/* Meet the Doctors CTA */
.about-cta {
  text-align: center;
  margin: 2rem 0;
}
.about-cta .btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.about-cta .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* Policy accordion styling */
.booking-policy {
  margin: 3rem 0;
}
.booking-policy h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.accordion-toggle {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid #ddd;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}
.accordion-toggle::after {
  content: '+';
  position: absolute;
  right: 1rem;
  font-size: 1.2rem;
}
.accordion-toggle.active::after {
  content: '−';
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--card-bg);
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.accordion-panel p,
.accordion-panel ul {
  padding: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* Help grid styling */
.booking-help {
  margin: 3rem 0;
  text-align: center;
}
.booking-help h2 {
  color: var(--primary);
  margin-bottom: 2rem;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 2rem;
}
.help-card {
  background: var(--card-bg);
  border-radius: 0.5rem;
  padding: 2rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.help-card img {
  width: 48px;
  margin-bottom: 1rem;
}
.help-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.help-card p a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.help-card p a:hover {
  text-decoration: underline;
}

/* Fade-in utility for scroll transitions */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .booking-hero {
    height: 200px;
  }
  .booking-hero h1 {
    font-size: 1.75rem;
  }
  .help-grid {
    gap: 1rem;
  }
  .container {
    padding: 1rem;
  }
}

/* Override .btn-primary on booking page to use brand green */
.booking-page .btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.booking-page .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
  .booking-hero {
    height: 200px;
  }
  .booking-hero h1 {
    font-size: 1.75rem;
  }
  .help-grid {
    gap: 1rem;
  }
  .container {
    padding: 1rem;
  }
}
