@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Design System & Variables --- */
:root {
  --primary: #0d9488;      /* Warm Teal */
  --primary-light: #14b8a6;
  --primary-dark: #115e59;
  --secondary: #34d399;    /* Mint */
  --accent: #818cf8;       /* Lavender/Indigo */
  --text-dark: #0f172a;    /* Slate 900 */
  --text-muted: #475569;   /* Slate 600 */
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-header-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(13, 148, 136, 0.08);
  --glass-glow: 0 0 20px rgba(20, 184, 166, 0.15);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #f0f7f6; /* Soft natural grey-teal background */
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* --- Animated Ambient Background --- */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  mix-blend-mode: multiply;
  animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--primary-light);
  animation-duration: 25s;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 45vw;
  height: 45vw;
  background: var(--secondary);
  animation-duration: 20s;
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 50%;
  width: 35vw;
  height: 35vw;
  background: var(--accent);
  animation-duration: 30s;
  animation-delay: -10s;
}

.blob-4 {
  top: 15%;
  right: 15%;
  width: 30vw;
  height: 30vw;
  background: #fca5a5; /* Soft coral */
  animation-duration: 18s;
  animation-delay: -3s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 40px) scale(0.95);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* --- Glassmorphism Framework --- */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 40px 0 rgba(13, 148, 136, 0.12), var(--glass-glow);
}

.glass-header {
  background: var(--glass-header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.glass-card-dark {
  background: rgba(17, 94, 89, 0.05);
  border: 1px solid rgba(17, 94, 89, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  gap: 0.5rem;
  font-size: 0.95rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-glass {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--primary-dark);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* --- Sticky Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.75rem 0;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-dark);
}

/* --- Hero Section --- */
.hero {
  padding: 10rem 0 6rem 0;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 50px;
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-item {
  padding: 1.25rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-visual {
  position: relative;
}

.hero-glass-card {
  padding: 2.5rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% { transform: translate(-50%, -50%) rotate(45deg); }
  20% { transform: translate(50%, 50%) rotate(45deg); }
  100% { transform: translate(50%, 50%) rotate(45deg); }
}

.visual-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.badge-1 {
  top: -20px;
  right: -20px;
  background: rgba(255, 255, 255, 0.7);
}

.badge-2 {
  bottom: -20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.7);
}

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.badge-info h4 {
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.badge-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Section Layouts --- */
.section {
  padding: 6rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --- Grid Overview / Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(20, 184, 166, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  transition: var(--transition-fast);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* --- Practitioners Section --- */
.practitioners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.practitioner-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.practitioner-img-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: rgba(13, 148, 136, 0.05);
}

.practitioner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.practitioner-card:hover .practitioner-img {
  transform: scale(1.08);
}

.practitioner-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.practitioner-role {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.practitioner-name {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.practitioner-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.practitioner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.25rem;
  margin-top: auto;
}

.practitioner-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.practitioner-link svg {
  transition: var(--transition-fast);
}

.practitioner-link:hover svg {
  transform: translateX(3px);
}

/* --- Virtual Care Portal Showcase --- */
.portal-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.portal-text h2 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.portal-text p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.portal-feature-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.portal-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.portal-feature-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.portal-preview-card {
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

.portal-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1rem;
}

.portal-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.portal-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid white;
}

.portal-user-name {
  font-size: 0.95rem;
  font-weight: 600;
}

.portal-user-status {
  font-size: 0.75rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.portal-user-status .pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.portal-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(13, 148, 136, 0.05);
  border: 1px solid rgba(13, 148, 136, 0.1);
  padding: 0.35rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.portal-tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.portal-tab-btn.active {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.portal-tab-content {
  display: none;
}

.portal-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.appointment-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
}

.appt-date-box {
  background: rgba(20, 184, 166, 0.1);
  color: var(--primary-dark);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
  min-width: 60px;
}

.appt-info {
  flex-grow: 1;
}

.appt-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.appt-doctor {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.appt-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 20px;
  font-weight: 600;
}

.appt-status.confirmed {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

/* --- FAQ / Contact Accordion Section --- */
.faq-contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

.contact-card {
  padding: 2.5rem;
  height: max-content;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(20, 184, 166, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-details a:hover {
  color: var(--primary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border-radius: var(--radius-md);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.faq-icon-svg {
  transition: var(--transition-fast);
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.6);
}

.faq-item.active .faq-icon-svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-answer-content {
  padding-top: 1rem;
}

/* --- Interactive Testimonial Slider --- */
.testimonials-section {
  position: relative;
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  height: 280px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-quote {
  font-size: 1.35rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--primary-dark);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #cbd5e1;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  display: block;
}

.author-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--primary-dark);
}

.slider-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* --- Footer --- */
.footer {
  margin-top: 6rem;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.3);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.footer-links-col h4 {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- STEP-BY-STEP BOOKING WIZARD MODAL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeInModal 0.4s ease-out forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.booking-modal {
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--primary-dark);
  transform: rotate(90deg);
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.progress-bar {
  position: absolute;
  top: 14px;
  left: 0;
  height: 2px;
  background: var(--primary);
  z-index: 1;
  width: 0%;
  transition: var(--transition-normal);
}

.progress-step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 2;
  position: relative;
  transition: var(--transition-normal);
}

.progress-step.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px rgba(13, 148, 136, 0.4);
}

.progress-step.completed {
  border-color: var(--primary);
  background: var(--primary-dark);
  color: white;
}

.wizard-step-panel {
  display: none;
}

.wizard-step-panel.active {
  display: block;
  animation: slideStep 0.4s ease-out forwards;
}

@keyframes slideStep {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-step-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.wizard-step-panel p.step-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Practitioner Selection inside Wizard */
.wizard-practitioners {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wizard-practitioner-option {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: var(--transition-fast);
}

.wizard-practitioner-option:hover {
  background: rgba(255, 255, 255, 0.45);
}

.wizard-practitioner-option.selected {
  border-color: var(--primary);
  background: rgba(20, 184, 166, 0.08);
  box-shadow: 0 0 15px rgba(20, 184, 166, 0.1);
}

.wizard-practitioner-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.wizard-practitioner-info h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.wizard-practitioner-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* DateTime Slot selection */
.date-picker-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.3);
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.1);
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.time-slot {
  padding: 0.65rem;
  text-align: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.time-slot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.time-slot.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Personal Details Fields */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Wizard Navigation Row */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

.wizard-success-panel {
  text-align: center;
  padding: 2rem 0;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 2.5rem;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
  animation: popSuccess 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popSuccess {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.success-details {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
}

.success-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.success-row:last-child {
  margin-bottom: 0;
}

.success-label {
  color: var(--text-muted);
  font-weight: 500;
}

.success-value {
  color: var(--primary-dark);
  font-weight: 700;
}

/* --- Comprehensive Responsive Adjustments --- */

/* Fluid Typography and Spacing Updates using clamp() */
html {
  font-size: clamp(14px, 1.2vw, 16px); /* Fluid root font size */
}

h1.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.hero-desc, .section-desc, .edu-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
}

/* Base Layout Resets for relative units */
.hero-container, .section, .navbar-container, .edu-wrapper, .dash-wrapper, .booking-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

img, video {
  max-width: 100%;
  height: auto;
}

/* Mobile Menu Styles */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-dark);
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  pointer-events: none;
}

/* Breakpoints */

/* > 1920px (4K / Ultra Wide) */
@media (min-width: 1920px) {
  .hero-container, .section, .navbar-container, .edu-wrapper, .dash-wrapper, .booking-wrapper {
    max-width: 1600px;
  }
}

/* 1600px - 1400px (Large Desktops) */
@media (max-width: 1600px) {
  /* Fluid scaling handles this implicitly */
}

/* 1200px (Laptops / Small Desktops) */
@media (max-width: 1200px) {
  .portal-showcase {
    gap: 2rem;
  }
}

/* 1024px (Tablets Landscape / Small Laptops) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }
  
  .hero-desc {
    margin: 0 auto 2.5rem auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .hero-visual {
    max-width: 600px;
    margin: 3rem auto 0 auto;
    width: 100%;
  }

  .portal-showcase {
    grid-template-columns: 1fr;
  }
  
  .dash-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .booking-columns {
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
  }
  
  .edu-grid {
    gap: 1.5rem;
  }
}

/* 992px (Tablets Portrait) */
@media (max-width: 992px) {
  .features-grid, .practitioners-grid, .faq-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Education promo specific */
  #education-promo .glass-panel {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  #education-promo .btn-glass {
    margin: 0 auto 1rem auto;
  }
  
  #education-promo div[style*="display:flex"] {
    justify-content: center;
  }
}

/* 820px (iPad Air) & 768px (iPad Mini / Standard Tablets) */
@media (max-width: 820px) {
  /* Navigation Mobile Menu */
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--glass-header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
  }
  
  .nav-menu.nav-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-cta {
    display: none; /* Hide primary CTA in header, optionally move into mobile menu */
  }

  .booking-columns {
    grid-template-columns: 1fr;
  }
  
  .booking-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  
  .dash-tabs-nav {
    flex-wrap: wrap;
  }
  
  .dash-tab-btn {
    flex: 1 1 100%;
    margin-bottom: 0.5rem;
  }
  
  .edu-grid {
    grid-template-columns: 1fr;
  }
  
  /* Make dashboard tables responsive */
  .dash-table-card {
    overflow-x: auto;
  }
  
  .dash-table {
    min-width: 700px;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* 576px (Large Mobile Phones) */
@media (max-width: 576px) {
  .features-grid, .practitioners-grid, .faq-contact-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .dash-stats-row {
    grid-template-columns: 1fr;
  }
  
  .wizard-progress {
    display: none; /* Hide complex wizard progress on small screens */
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* 480px, 430px, 414px (Standard Mobile Phones like iPhone Max/Plus) */
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    min-height: 48px; /* Touch target size */
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .time-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr); /* Collapse calendar into cards or lists */
  }
  
  .calendar-header-day {
    display: none; /* Hide headers */
  }
  
  .calendar-day-cell {
    min-height: auto;
  }
  
  .card-details-row {
    grid-template-columns: 1fr;
  }
  
  .card-expiry-col {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .portal-preview-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .portal-tabs {
    flex-direction: column;
  }
}

/* 390px, 375px, 360px, 320px (Small Mobile Phones like iPhone SE) */
@media (max-width: 390px) {
  html {
    font-size: 13px; /* Slightly smaller base font for very small screens */
  }
  
  .hero-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
  
  .stat-num {
    font-size: 1.75rem;
  }
  
  .time-slots-grid {
    grid-template-columns: 1fr;
  }
  
  .calendar-grid {
    grid-template-columns: 1fr;
  }
}

