/* ============================================
   CHARM OPTICAL - Premium Mobile-First Design
   Award-Winning French Designer Aesthetic
   ============================================ */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Gradient Colors - Muted Pinkish-Cream Palette */
  --gradient-1: #F5EFED;   /* Muted blush cream */
  --gradient-2: #F8F2F0;   /* Soft rose white */
  --gradient-3: #FAF5F3;   /* Light warm cream */
  --gradient-4: #FDFBFA;   /* Near white base */
  --gradient-5: #F2EBE8;   /* Subtle blush */

  /* Accent Colors */
  --accent-primary: #C4856A;   /* Terracotta CTA */
  --accent-primary-hover: #B5765B;
  --accent-primary-light: rgba(196, 133, 106, 0.12);
  --accent-secondary: #8B7355;
  --accent-success: #4CAF50;

  /* Text Colors */
  --text-primary: #2D2A26;
  --text-secondary: #6B6560;
  --text-muted: #9C9590;
  --text-inverse: #FFFFFF;

  /* Surface Colors */
  --surface-primary: rgba(255, 255, 255, 0.85);
  --surface-elevated: rgba(255, 255, 255, 0.95);
  --surface-glass: rgba(255, 255, 255, 0.7);

  /* Typography Scale */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Touch Targets */
  --touch-min: 44px;
  --touch-comfortable: 48px;
  --touch-spacious: 56px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(45, 42, 38, 0.06);
  --shadow-md: 0 4px 16px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 8px 32px rgba(45, 42, 38, 0.12);
  --shadow-accent: 0 4px 16px rgba(196, 133, 106, 0.35);

  /* Transitions */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Safe Areas */
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);

  /* Font Families */
  --font-title: 'Radio Canada Big', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--text-primary);
  background: #2a2a2a;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Prevent dark background showing on mobile overscroll */
@media (max-width: 768px) {
  body {
    background: var(--gradient-4);
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: var(--text-base); /* Prevents iOS zoom */
}

/* ============================================
   ANIMATED GRADIENT BACKGROUND
   ============================================ */
.app-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gradient-1) 0%, var(--gradient-4) 50%, var(--gradient-2) 100%);
}

.wave-layer-1 {
  position: absolute;
  inset: -60%;
  background: radial-gradient(
    ellipse 90% 60% at 50% 50%,
    rgba(255, 160, 80, 0.18) 0%,
    transparent 65%
  );
  animation: wave-drift-1 14s ease-in-out infinite;
  transform-origin: 30% 70%;
  filter: blur(50px);
  will-change: transform;
}

.wave-layer-2 {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    ellipse 70% 50% at 30% 60%,
    rgba(255, 140, 60, 0.15) 0%,
    transparent 55%
  );
  animation: wave-drift-2 18s ease-in-out infinite;
  transform-origin: 70% 30%;
  filter: blur(45px);
  will-change: transform;
}

.wave-layer-3 {
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    ellipse 60% 40% at 70% 40%,
    rgba(255, 180, 100, 0.12) 0%,
    transparent 50%
  );
  animation: wave-drift-3 22s ease-in-out infinite;
  transform-origin: 50% 50%;
  filter: blur(40px);
  will-change: transform;
}

/* Fourth wave layer for more movement */
.wave-layer-4 {
  position: absolute;
  inset: -50%;
  background: radial-gradient(
    ellipse 55% 45% at 60% 30%,
    rgba(255, 150, 70, 0.14) 0%,
    transparent 60%
  );
  animation: wave-drift-4 16s ease-in-out infinite;
  transform-origin: 40% 60%;
  filter: blur(55px);
  will-change: transform;
}

@keyframes wave-drift-1 {
  0%, 100% { transform: translate(0%, 0%) rotate(0deg) scale(1); }
  20% { transform: translate(20%, -15%) rotate(5deg) scale(1.15); }
  40% { transform: translate(-15%, 20%) rotate(-4deg) scale(0.9); }
  60% { transform: translate(18%, 10%) rotate(3deg) scale(1.1); }
  80% { transform: translate(-10%, -18%) rotate(-2deg) scale(0.95); }
}

@keyframes wave-drift-2 {
  0%, 100% { transform: translate(0%, 0%) rotate(0deg) scale(1); }
  25% { transform: translate(-18%, 20%) rotate(-5deg) scale(1.12); }
  50% { transform: translate(22%, -15%) rotate(4deg) scale(0.88); }
  75% { transform: translate(-12%, -10%) rotate(-3deg) scale(1.08); }
}

@keyframes wave-drift-3 {
  0%, 100% { transform: translate(0%, 0%) scale(1) rotate(0deg); }
  20% { transform: translate(-12%, 18%) scale(1.18) rotate(-3deg); }
  40% { transform: translate(25%, -12%) scale(0.85) rotate(4deg); }
  60% { transform: translate(-8%, -20%) scale(1.1) rotate(-2deg); }
  80% { transform: translate(15%, 8%) scale(0.92) rotate(3deg); }
}

@keyframes wave-drift-4 {
  0%, 100% { transform: translate(0%, 0%) rotate(0deg) scale(1); }
  33% { transform: translate(15%, -20%) rotate(4deg) scale(1.15); }
  66% { transform: translate(-20%, 12%) rotate(-5deg) scale(0.9); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .wave-layer-1, .wave-layer-2, .wave-layer-3, .wave-layer-4 {
    animation: none;
    opacity: 0.5;
  }
}

/* Slower animations on mobile for battery */
@media (max-width: 768px) {
  .wave-layer-1 { animation-duration: 20s; }
  .wave-layer-2 { animation-duration: 24s; }
  .wave-layer-3 { animation-duration: 28s; }
  .wave-layer-4 { animation-duration: 22s; }
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.app-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding-bottom: var(--space-6);
}

@media (max-width: 768px) {
  .page-content {
    padding-bottom: calc(var(--space-6) + 80px);
  }
}

.container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  padding: var(--space-6) var(--space-5);
  padding-top: calc(var(--space-6) + var(--safe-top));
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-base, 16px);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.header-home-link:hover {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.header-title {
  font-family: var(--font-title);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.header-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ============================================
   BANNER
   ============================================ */
.banner {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin: 0 auto var(--space-6);
  max-width: fit-content;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 16px rgba(196, 133, 106, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.banner-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
}

.banner-text {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}

.banner-text a {
  color: var(--accent-primary);
  text-decoration: underline;
  font-weight: 500;
}

.banner-text a:hover {
  opacity: 0.8;
}

/* ============================================
   TABS
   ============================================ */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin: 0 auto var(--space-5);
  padding: 0 var(--space-5);
}

.tab-btn {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
  min-height: var(--touch-min);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--accent-primary);
  color: var(--text-inverse);
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(196, 133, 106, 0.3);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

@media (max-width: 400px) {
  .tab-btn {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
  }
}

/* ============================================
   FAQ & COVERAGE
   ============================================ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-5) var(--space-8);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  color: #2d1f1a;
  margin-bottom: 6px;
}

.section-header p {
  font-size: 15px;
  color: #7a6a62;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

.section-header a {
  color: #b5541a;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.section-header a:hover { color: #8a3a0a; }

/* Coverage Section */
.coverage-section {
  margin-bottom: 56px;
}

.coverage-table-wrapper {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e8ddd4;
  background: #fffaf6;
}

.coverage-table {
  width: 100%;
  border-collapse: collapse;
}

.coverage-table thead th {
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.coverage-table thead th:first-child {
  background: #f5ebe3;
  color: #7a6a62;
  text-align: left;
  width: 50%;
}

.coverage-table thead th.covered-col {
  background: #e6f5ec;
  color: #2e7d4f;
  text-align: center;
  width: 25%;
}

.coverage-table thead th.not-covered-col {
  background: #fce8e5;
  color: #b5412a;
  text-align: center;
  width: 25%;
}

.coverage-table tbody tr {
  border-top: 1px solid #f0e4da;
}

.coverage-table tbody tr:hover {
  background: #fef8f3;
}

.coverage-table tbody td {
  padding: 16px 24px;
  font-size: 15px;
  line-height: 1.5;
}

.coverage-table tbody td:first-child {
  color: #3a2e2a;
  font-weight: 500;
}

.table-note {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #9a8a80;
  margin-top: 2px;
}

.coverage-table tbody td:nth-child(2),
.coverage-table tbody td:nth-child(3) {
  text-align: center;
  font-size: 20px;
}

.icon-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e6f5ec;
  color: #2e7d4f;
  font-weight: 700;
  font-size: 18px;
}

.icon-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fce8e5;
  color: #b5412a;
  font-weight: 700;
  font-size: 18px;
}

.table-footer {
  padding: 14px 24px;
  background: #f9f1ea;
  border-top: 1px solid #f0e4da;
  font-size: 13px;
  color: #7a6a62;
  line-height: 1.5;
}

.table-footer a {
  color: #b5541a;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.table-footer a:hover { color: #8a3a0a; }

/* TL;DR Box */
.tldr-box {
  margin-top: 24px;
  background: #fff7ee;
  border: 2px dashed #e0c9a8;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.tldr-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #b5541a;
  margin-top: 2px;
}

.tldr-text {
  font-size: 15px;
  line-height: 1.6;
  color: #5c4a42;
}

.tldr-text strong {
  color: #2d1f1a;
}

/* FAQ Section */
.faq-section {
  margin-top: 0;
}

.faq-item {
  background: #fffaf6;
  border: 1px solid #f0e4da;
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 12px rgba(80, 50, 30, 0.06);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #2d1f1a;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question:hover { color: #b5541a; }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5ebe3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  stroke: #8a6e5e;
  transition: stroke 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: #b5541a;
}

.faq-item.open .faq-icon svg { stroke: #fff; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 0 24px 20px 24px;
  font-size: 15px;
  line-height: 1.65;
  color: #5c4a42;
}

.faq-answer-inner a {
  color: #b5541a;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.faq-answer-inner a:hover { color: #8a3a0a; }

.highlight {
  background: #fceede;
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 500;
  color: #b5541a;
}

/* Responsive FAQ — tablet */
@media (max-width: 600px) {
  .faq-container {
    padding: 0 var(--space-4) var(--space-8);
  }

  .section-header h2 {
    font-size: 22px;
  }

  .section-header p {
    font-size: 14px;
  }

  .coverage-table thead th {
    padding: 14px 12px;
    font-size: 12px;
  }

  .coverage-table tbody td {
    padding: 14px 12px;
    font-size: 14px;
  }

  .table-note {
    font-size: 12px;
  }

  .table-footer {
    padding: 12px 16px;
    font-size: 12px;
  }

  .tldr-box {
    padding: 16px 18px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
    gap: 12px;
  }

  .faq-answer-inner {
    padding: 0 18px 16px;
    font-size: 14px;
  }
}

/* Responsive FAQ — small phones */
@media (max-width: 400px) {
  .faq-container {
    padding: 0 var(--space-3) var(--space-6);
  }

  .section-header h2 {
    font-size: 20px;
  }

  .coverage-section {
    margin-bottom: 40px;
  }

  .coverage-table-wrapper {
    border-radius: 12px;
  }

  .coverage-table thead th {
    padding: 10px 8px;
    font-size: 10px;
    letter-spacing: 0.3px;
  }

  .coverage-table thead th.covered-col,
  .coverage-table thead th.not-covered-col {
    width: 22%;
  }

  .coverage-table tbody td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .coverage-table tbody td:nth-child(2),
  .coverage-table tbody td:nth-child(3) {
    font-size: 16px;
  }

  .icon-yes,
  .icon-no {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .table-note {
    font-size: 11px;
  }

  .table-footer {
    padding: 10px 12px;
    font-size: 11px;
  }

  .tldr-box {
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
  }

  .tldr-text {
    font-size: 14px;
  }

  .faq-item {
    border-radius: 12px;
    margin-bottom: 10px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 14px;
    gap: 10px;
  }

  .faq-icon {
    width: 24px;
    height: 24px;
  }

  .faq-icon svg {
    width: 12px;
    height: 12px;
  }

  .faq-answer-inner {
    padding: 0 16px 14px;
    font-size: 13px;
    line-height: 1.6;
  }

  .highlight {
    padding: 1px 5px;
    font-size: inherit;
  }
}

/* ============================================
   SERVICE CARDS - Mobile First
   ============================================ */
.services-list {
  padding: 0 var(--space-5);
  max-width: 900px;
  margin: 0 auto;
}

/* Desktop: 2-column grid */
@media (min-width: 768px) {
  .services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    max-width: 1000px;
  }
}

.service-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  min-height: auto;
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 6px 24px rgba(196, 133, 106, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);

  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s ease;
  cursor: pointer;
}

/* Desktop: Grid handles spacing */
@media (min-width: 768px) {
  .service-card {
    margin-bottom: 0;
  }
}

.service-card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 16px rgba(196, 133, 106, 0.08);
}

/* Desktop hover enhancement - gentle orange border glow */
@media (hover: hover) {
  .service-card:hover {
    border-color: rgba(255, 140, 60, 0.5);
    box-shadow:
      0 0 0 3px rgba(255, 140, 60, 0.15),
      0 8px 32px rgba(255, 140, 60, 0.12);
  }
}

/* Service card bottom glow */
.service-card::before {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 15%;
  right: 15%;
  height: 30px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 180, 120, 0.15) 0%,
    transparent 70%
  );
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .service-card:hover::before {
    opacity: 1;
  }
}

/* Ripple effect */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--tap-x, 50%) var(--tap-y, 50%),
    var(--accent-primary-light) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:active::after {
  opacity: 1;
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-1);
}

.service-title {
  font-family: var(--font-title);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
  padding-right: var(--space-2);
}

.service-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--accent-primary-light);
  padding: 3px var(--space-2);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.service-badge.covered {
  color: #2E7D32;
  background: rgba(76, 175, 80, 0.12);
}

.service-description {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

.service-warning {
  font-size: 11px;
  color: #B5765B;
  background: rgba(255, 180, 100, 0.15);
  border-left: 3px solid #C4856A;
  padding: 8px 12px;
  margin-bottom: var(--space-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.4;
}

/* Mobile: More prominent warning */
@media (max-width: 768px) {
  .service-warning {
    font-size: 12px;
    padding: 10px 12px;
    background: rgba(255, 180, 100, 0.2);
  }
}

.service-note {
  font-size: 10px;
  color: #B45309;
  background: rgba(251, 191, 36, 0.15);
  border-left: 2px solid #F59E0B;
  padding: 6px 8px;
  margin-bottom: var(--space-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.4;
}

/* Mobile: More prominent note */
@media (max-width: 768px) {
  .service-note {
    font-size: 11px;
    padding: 8px 10px;
    background: rgba(251, 191, 36, 0.2);
    border-left-width: 3px;
  }
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
}

.service-meta svg {
  flex-shrink: 0;
}

.service-duration,
.service-price {
  font-size: var(--text-xs);
  color: var(--accent-primary);
  font-weight: 500;
}

.service-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary-light);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  margin-right: calc(-1 * var(--space-1));
}

.service-arrow svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   PROGRESS HEADER
   ============================================ */
.progress-header {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.75) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: var(--space-4) var(--space-5);
  padding-top: calc(var(--space-4) + var(--safe-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.progress-steps {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.progress-step.active {
  color: var(--text-primary);
  font-weight: 500;
}

.progress-step.completed {
  color: var(--text-secondary);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 600;
  background: rgba(45, 42, 38, 0.08);
  color: var(--text-muted);
  transition: all 0.3s var(--ease-spring);
}

.progress-step.active .step-number {
  background: var(--accent-primary);
  color: var(--text-inverse);
  box-shadow: 0 2px 8px rgba(196, 133, 106, 0.3);
}

.progress-step.completed .step-number {
  background: var(--accent-success);
  color: var(--text-inverse);
}

.step-number svg {
  width: 14px;
  height: 14px;
}

.progress-arrow {
  color: var(--text-muted);
}

.progress-arrow svg {
  width: 16px;
  height: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.timer {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.timer svg {
  width: 16px;
  height: 16px;
}

.close-btn {
  width: var(--touch-min);
  height: var(--touch-min);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.close-btn:active {
  background: rgba(45, 42, 38, 0.08);
}

/* Progress Bar */
.progress-bar {
  height: 3px;
  background: rgba(196, 133, 106, 0.2);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--accent-primary);
  transition: width 0.4s var(--ease-out);
}

.progress-bar.step-1::after { width: 50%; }
.progress-bar.step-2::after { width: 100%; }

/* ============================================
   BOOKING CONTENT
   ============================================ */
.booking-page {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}

.booking-page.active {
  display: flex;
}

.booking-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.booking-main {
  flex: 1;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.75) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  margin: var(--space-4);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(196, 133, 106, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.booking-main-header {
  height: 4px;
  background: var(--accent-primary);
}

.booking-main-content {
  padding: var(--space-6) var(--space-5);
}

/* ============================================
   CALENDAR
   ============================================ */
.calendar-container {
  margin-bottom: var(--space-6);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.calendar-nav {
  width: var(--touch-comfortable);
  height: var(--touch-comfortable);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: background 0.15s ease;
}

.calendar-nav:active {
  background: rgba(45, 42, 38, 0.08);
}

.calendar-nav svg {
  width: 20px;
  height: 20px;
}

.calendar-month {
  font-family: var(--font-title);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.calendar-month svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}

.calendar-weekday {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  padding: var(--space-2) 0;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
}

.calendar-day {
  aspect-ratio: 1;
  min-height: var(--touch-comfortable);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
  cursor: pointer;
}

/* Mobile: Let calendar cells be flexible to fit container */
@media (max-width: 480px) {
  .calendar-day {
    min-height: unset;
  }
}

.calendar-day:active:not(.disabled):not(.empty) {
  background: var(--accent-primary-light);
}

.calendar-day.today {
  background: var(--accent-primary-light);
  color: var(--accent-primary);
  font-weight: 600;
}

.calendar-day.selected {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #D49578 100%);
  color: var(--text-inverse);
  font-weight: 600;
  box-shadow:
    0 4px 12px rgba(196, 133, 106, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: day-select 0.25s var(--ease-spring);
}

@keyframes day-select {
  0% { transform: scale(0.8); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.calendar-day.disabled {
  color: var(--text-muted);
  opacity: 0.4;
  cursor: not-allowed;
}

.calendar-day.empty {
  cursor: default;
}

/* Dates beyond 60-day booking limit - clickable to show popup */
.calendar-day.too-far {
  cursor: pointer;
  opacity: 0.35;
}

.calendar-day.too-far:active {
  background: rgba(45, 42, 38, 0.05);
}

/* Unavailable days (no doctor, closed, fully booked) - visually muted but clickable */
.calendar-day.unavailable {
  color: var(--text-muted);
  opacity: 0.5;
  background: rgba(156, 149, 144, 0.08);
  position: relative;
}

/* Unavailable but still selected shows the message */
.calendar-day.unavailable.selected {
  background: linear-gradient(135deg, var(--accent-secondary) 0%, #9B8B7A 100%);
  color: var(--text-inverse);
  opacity: 1;
}

/* ============================================
   TIME SLOTS
   ============================================ */
.time-section {
  display: none;
}

.time-section.visible {
  display: block;
  animation: fade-up 0.3s ease;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.time-section-header {
  margin-bottom: var(--space-5);
  text-align: center;
}

.time-date-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.time-date-day {
  font-family: var(--font-title);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.time-date-full {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-weight: 450;
}

.time-section-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-primary-light));
  border-radius: var(--radius-full);
  margin: var(--space-4) auto 0;
  opacity: 0.7;
}

.time-section-title {
  font-family: var(--font-title);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.time-section-subtitle {
  font-size: var(--text-sm);
  color: var(--accent-primary);
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.time-slot {
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(196, 133, 106, 0.06);
  transition: all 0.15s ease;
  cursor: pointer;
}

.time-slot:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(196, 133, 106, 0.3);
  box-shadow: 0 4px 12px rgba(196, 133, 106, 0.1);
}

.time-slot:active {
  transform: scale(0.96);
}

.time-slot.selected {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #D49578 100%);
  color: var(--text-inverse);
  border-color: var(--accent-primary);
  box-shadow:
    0 4px 16px rgba(196, 133, 106, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: slot-select 0.2s ease-out;
}

@keyframes slot-select {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

@media (max-width: 380px) {
  .time-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-intro {
  text-align: center;
  margin-bottom: var(--space-8);
}

.form-intro h2 {
  font-family: var(--font-title);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.form-intro p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.form-section {
  margin-bottom: var(--space-6);
}

.form-section-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.form-row {
  display: flex;
  gap: var(--space-3);
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: var(--space-4);
  position: relative;
}

.form-input-wrapper {
  position: relative;
}

/* Form field icons */
.form-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 1;
}

.form-icon svg {
  width: 100%;
  height: 100%;
}

.form-input.has-icon {
  padding-left: 48px;
}

.form-input.has-icon:focus ~ .form-icon,
.form-input.has-icon:not(:placeholder-shown) ~ .form-icon {
  color: var(--accent-primary);
}

/* Adjust label position for inputs with icons */
.form-input.has-icon + .form-label {
  left: 48px;
}

.form-input.has-icon:focus + .form-label,
.form-input.has-icon:not(:placeholder-shown) + .form-label {
  left: 48px;
}

.form-input {
  width: 100%;
  height: var(--touch-spacious);
  padding: 24px var(--space-4) 8px;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(196, 133, 106, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.9);
  border-color: var(--accent-primary);
  box-shadow:
    0 0 0 3px rgba(196, 133, 106, 0.15),
    0 4px 12px rgba(196, 133, 106, 0.08);
}

.form-input::placeholder {
  color: transparent;
}

.form-label {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-base);
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: 12px;
  transform: translateY(0);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent-primary);
}

/* Float label up when birthday display is visible */
input[type="date"].has-formatted-display + .form-label,
input[type="date"].has-icon.has-formatted-display + .form-label {
  top: 12px;
  transform: translateY(0);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent-primary);
  left: 48px;
}

.form-input.error {
  border-color: #E53935;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

.form-error {
  font-size: var(--text-xs);
  color: #E53935;
  margin-top: var(--space-1);
  padding-left: var(--space-1);
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

textarea.form-input {
  min-height: 100px;
  padding-top: 28px;
  resize: vertical;
}

/* Select dropdown styling */
select.form-input {
  padding: var(--space-4);
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239C9590'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

select.form-input:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23C4856A'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

select.form-input option {
  padding: var(--space-3);
  background: white;
  color: var(--text-primary);
}

select.form-input option[disabled] {
  color: var(--text-muted);
}

select.form-input optgroup {
  font-weight: 600;
  color: var(--text-secondary);
  background: #f5f5f5;
}

/* Other insurance input animation */
#other-insurance-group {
  animation: fade-up 0.25s ease;
  margin-top: calc(-1 * var(--space-2));
}

/* Birthday display overlay - shows formatted date */
.birthday-display {
  position: absolute;
  left: 48px;
  top: 28px;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
  pointer-events: none;
  opacity: 0;
  background: transparent;
  padding-right: var(--space-2);
  z-index: 2;
}

.birthday-display.visible {
  opacity: 1;
}

/* Hide native date input text when overlay is visible */
input[type="date"].has-formatted-display::-webkit-datetime-edit {
  color: transparent;
}

input[type="date"].has-formatted-display::-webkit-datetime-edit-fields-wrapper {
  color: transparent;
}

/* Firefox: hide the native text */
input[type="date"].has-formatted-display {
  color: transparent;
}

/* But keep the placeholder visible when empty (no date selected) */
input[type="date"]:not(.has-formatted-display) {
  color: var(--text-primary);
}

/* Self-pay checkbox option */
.self-pay-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.self-pay-option:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(196, 133, 106, 0.3);
}

.self-pay-option input[type="checkbox"] {
  display: none;
}

.self-pay-checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--text-muted);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.self-pay-option input[type="checkbox"]:checked + .self-pay-checkmark {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.self-pay-option input[type="checkbox"]:checked + .self-pay-checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.self-pay-text {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
}

/* Hide insurance dropdown when self-pay is selected */
#insurance-dropdown-group.hidden {
  display: none;
}

.form-note {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-4);
}

/* ============================================
   SUMMARY SIDEBAR (Desktop) / STICKY (Mobile)
   ============================================ */
.booking-sidebar {
  display: none;
}

.mobile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  background: var(--surface-elevated);
  border-bottom: 1px solid rgba(45, 42, 38, 0.08);
}

.summary-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-service {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.summary-datetime {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  display: none;
}

.summary-datetime.visible {
  display: block;
}

.summary-price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-primary);
}

/* Desktop: Show sidebar, hide mobile summary */
@media (min-width: 769px) {
  .booking-content {
    flex-direction: row;
    padding: var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
    gap: var(--space-8);
  }

  .booking-main {
    flex: 1;
    margin: 0;
    border-radius: 28px;
  }

  .booking-main-content {
    padding: var(--space-8) var(--space-6);
  }

  .booking-sidebar {
    display: block;
    width: 340px;
    flex-shrink: 0;
    position: relative;
  }

  .mobile-summary {
    display: none;
  }

  .summary-card {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.75) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
      0 8px 32px rgba(196, 133, 106, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 100px;
  }

  /* Bottom glow effect for summary card */
  .summary-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 40px;
    background: radial-gradient(
      ellipse at center,
      rgba(255, 180, 120, 0.25) 0%,
      transparent 70%
    );
    filter: blur(15px);
    z-index: -1;
    pointer-events: none;
  }

  .summary-title {
    font-family: var(--font-title);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(45, 42, 38, 0.08);
  }

  .summary-datetime {
    display: none;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(45, 42, 38, 0.08);
  }

  .summary-datetime.visible {
    display: flex;
  }

  .summary-datetime svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-top: 2px;
  }

  .summary-datetime-text {
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.5;
  }

  .summary-datetime-text strong {
    display: block;
    font-weight: 600;
  }

  .summary-row {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
  }

  .summary-row.total {
    font-weight: 600;
    font-size: var(--text-base);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(45, 42, 38, 0.08);
    margin-top: var(--space-3);
    margin-bottom: var(--space-6);
  }

  .summary-checkbox {
    display: none;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: var(--space-5);
  }

  .summary-checkbox.visible {
    display: flex;
  }

  .summary-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
  }
}

/* ============================================
   STICKY CTA
   ============================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-5);
  padding-bottom: calc(var(--space-4) + var(--safe-bottom));
  background: linear-gradient(to top, var(--surface-elevated) 70%, transparent);
  z-index: 100;
}

.btn-primary {
  width: 100%;
  height: var(--touch-spacious);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--accent-primary) 0%, #D49578 100%);
  border-radius: var(--radius-lg);
  box-shadow:
    0 6px 20px rgba(196, 133, 106, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.btn-primary:active {
  transform: scale(0.98);
  box-shadow:
    0 2px 10px rgba(196, 133, 106, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:disabled {
  background: rgba(45, 42, 38, 0.12);
  color: var(--text-muted);
  box-shadow: none;
}

.btn-primary.loading {
  pointer-events: none;
  color: transparent;
  position: relative;
}

.btn-primary.loading::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile: Hide Continue button (auto-advance on time select) */
@media (max-width: 768px) {
  .sticky-cta #continue-btn {
    display: none;
  }

  /* Hide floating sticky CTA entirely on mobile - use inline button instead */
  .booking-page .sticky-cta {
    display: none;
  }

  /* Inline Book Now button inside form card (mobile only) */
  .mobile-inline-book-btn {
    display: block;
    margin-top: var(--space-6);
  }
}

/* Desktop: Hide inline mobile button (sidebar has the button) */
@media (min-width: 769px) {
  .mobile-inline-book-btn {
    display: none;
  }
}

/* Desktop: CTA inside sidebar */
@media (min-width: 769px) {
  .sticky-cta {
    display: none;
  }

  .sidebar-cta {
    display: block;
  }
}

/* ============================================
   SUCCESS SCREEN
   ============================================ */
.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  padding: var(--space-10) var(--space-5);
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  animation: success-pop 0.5s var(--ease-spring);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

@keyframes success-pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.success-icon svg {
  width: 40px;
  height: 40px;
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.success-icon svg path {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: draw-check 0.4s ease-out 0.3s forwards;
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-family: var(--font-title);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
  animation: fade-up 0.4s ease-out 0.2s both;
}

.success-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 280px;
  margin-bottom: var(--space-8);
  animation: fade-up 0.4s ease-out 0.3s both;
}

.success-details {
  background: var(--surface-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  width: 100%;
  max-width: 300px;
  margin-bottom: var(--space-6);
  animation: fade-up 0.4s ease-out 0.4s both;
}

.success-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(45, 42, 38, 0.06);
  font-size: var(--text-sm);
}

.success-row:last-child {
  border-bottom: none;
}

.success-label {
  color: var(--text-muted);
}

.success-value {
  font-weight: 500;
  color: var(--text-primary);
  text-align: right;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-6) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer strong {
  color: var(--text-secondary);
}

/* Site Footer */
.site-footer {
  background-color: #2a2a2a;
  padding: var(--space-5);
  padding-bottom: calc(var(--space-5) + var(--safe-bottom));
  flex-shrink: 0;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-logo-area {
  flex-shrink: 0;
}

.footer-logo-img {
  height: 80px;
  width: auto;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.footer-section {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: #cccccc;
}

.footer-label {
  color: #ffffff;
  font-weight: 600;
  min-width: 60px;
}

.footer-value a {
  color: #cccccc;
  text-decoration: none;
}

.footer-value a:hover {
  color: #ffffff;
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
}

.footer-socials a {
  color: #ffffff;
  transition: opacity 0.2s;
}

.footer-socials a:hover {
  opacity: 0.7;
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid #444;
  font-size: var(--text-xs);
  color: #888;
}

.footer-bottom strong {
  color: #aaa;
}

/* Enhanced mobile footer - tablets and phones */
@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-section {
    flex-direction: column;
    gap: 2px;
  }
  .footer-label {
    min-width: auto;
  }
  .site-footer {
    padding: var(--space-4) var(--space-4);
    padding-bottom: calc(var(--space-4) + var(--safe-bottom));
  }
  .footer-logo-img {
    height: 65px;
  }
  .footer-bottom {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
  }
}

/* Small phones - extra compact */
@media (max-width: 400px) {
  .site-footer {
    padding: var(--space-3) var(--space-3);
    padding-bottom: calc(var(--space-3) + var(--safe-bottom));
  }

  .footer-content {
    gap: var(--space-3);
  }

  .footer-logo-img {
    height: 55px;
  }

  .footer-section {
    font-size: 11px;
  }

  .footer-bottom {
    font-size: 10px;
    margin-top: var(--space-2);
    padding-top: var(--space-2);
  }
}

/* ============================================
   SCREEN STATES
   ============================================ */
.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: screen-enter 0.3s ease;
}

/* App container and booking page screens need flex to push footer down */
.app-container.screen.active,
.booking-page.screen.active {
  display: flex;
}

@keyframes screen-enter {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   SKELETON LOADERS
   ============================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.4) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.5) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.skeleton-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.skeleton-title {
  height: 18px;
  width: 65%;
  background: linear-gradient(
    90deg,
    rgba(196, 133, 106, 0.15) 0%,
    rgba(196, 133, 106, 0.3) 50%,
    rgba(196, 133, 106, 0.15) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-badge {
  height: 22px;
  width: 60px;
  background: linear-gradient(
    90deg,
    rgba(196, 133, 106, 0.1) 0%,
    rgba(196, 133, 106, 0.25) 50%,
    rgba(196, 133, 106, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-full);
}

.skeleton-description {
  height: 12px;
  width: 90%;
  margin-bottom: var(--space-2);
  background: linear-gradient(
    90deg,
    rgba(107, 101, 96, 0.1) 0%,
    rgba(107, 101, 96, 0.2) 50%,
    rgba(107, 101, 96, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-description.short {
  width: 60%;
}

.skeleton-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-3);
}

.skeleton-duration {
  height: 14px;
  width: 50px;
  background: linear-gradient(
    90deg,
    rgba(196, 133, 106, 0.1) 0%,
    rgba(196, 133, 106, 0.2) 50%,
    rgba(196, 133, 106, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-arrow {
  width: 36px;
  height: 36px;
  background: linear-gradient(
    90deg,
    rgba(196, 133, 106, 0.1) 0%,
    rgba(196, 133, 106, 0.2) 50%,
    rgba(196, 133, 106, 0.1) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-full);
}

/* Desktop: Grid handles spacing for skeleton cards too */
@media (min-width: 768px) {
  .skeleton-card {
    margin-bottom: 0;
  }
}

/* Reduce animation for accessibility */
@media (prefers-reduced-motion: reduce) {
  .skeleton,
  .skeleton-title,
  .skeleton-badge,
  .skeleton-description,
  .skeleton-duration,
  .skeleton-arrow {
    animation: none;
    background-size: 100% 100%;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   LARGE DESKTOP ENHANCEMENTS
   ============================================ */
@media (min-width: 1024px) {
  .booking-content {
    max-width: 1200px;
    gap: var(--space-12);
  }

  .booking-sidebar {
    width: 380px;
  }

  .booking-main {
    border-radius: 32px;
  }

  .booking-main-content {
    padding: var(--space-10) var(--space-8);
  }

  /* Larger time slots grid on big screens */
  .time-slots-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* More spacious calendar */
  .calendar-day {
    min-height: 52px;
  }
}

/* ============================================
   INSURANCE DELISTING MODAL
   ============================================ */
.insurance-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: modal-fade-in 0.2s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.insurance-modal {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: var(--space-6);
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modal-slide-up 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile: Bottom sheet style */
@media (max-width: 480px) {
  .insurance-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .insurance-modal {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 85vh;
    padding: var(--space-5);
    padding-bottom: calc(var(--space-5) + var(--safe-bottom));
  }
}

.insurance-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: background 0.15s ease, color 0.15s ease;
}

.insurance-modal-close:hover {
  background: rgba(45, 42, 38, 0.08);
  color: var(--text-secondary);
}

.insurance-modal-close:active {
  background: rgba(45, 42, 38, 0.12);
}

.insurance-modal-title {
  font-family: var(--font-title);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  padding-right: var(--space-8);
  letter-spacing: -0.02em;
}

.insurance-modal-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.insurance-modal-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.insurance-modal-list {
  background: rgba(251, 191, 36, 0.1);
  border-left: 3px solid #F59E0B;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.insurance-modal-list p {
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.insurance-modal-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.insurance-modal-list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding-left: var(--space-4);
  position: relative;
  margin-bottom: var(--space-1);
  line-height: 1.5;
}

.insurance-modal-list li:last-child {
  margin-bottom: 0;
}

.insurance-modal-list li::before {
  content: '•';
  position: absolute;
  left: var(--space-1);
  color: #F59E0B;
  font-weight: bold;
}

.insurance-modal-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.insurance-modal-cta-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

.insurance-modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.insurance-modal-btn {
  text-align: center;
  text-decoration: none;
}

.insurance-modal-btn-secondary {
  width: 100%;
  height: var(--touch-comfortable);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(45, 42, 38, 0.08);
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}

.insurance-modal-btn-secondary:hover {
  background: rgba(45, 42, 38, 0.12);
}

.insurance-modal-btn-secondary:active {
  background: rgba(45, 42, 38, 0.16);
}

.insurance-modal-btn-link {
  width: 100%;
  height: var(--touch-comfortable);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  transition: color 0.15s ease;
}

.insurance-modal-btn-link:hover {
  color: var(--text-secondary);
}

.insurance-modal-btn-link:active {
  color: var(--text-primary);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(45, 42, 38, 0.95);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  z-index: 1100;
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile: position above sticky CTA */
@media (max-width: 768px) {
  .toast {
    bottom: 120px;
  }
}

/* ============================================
   BOOKING LIMIT MODAL (60-day popup)
   ============================================ */
.booking-limit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: modal-fade-in 0.2s ease;
}

.booking-limit-modal {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 420px;
  width: 100%;
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modal-slide-up 0.3s ease;
}

.booking-limit-modal h2 {
  font-family: var(--font-title);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.booking-limit-modal p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.booking-limit-modal p:last-of-type {
  margin-bottom: var(--space-6);
}

.booking-limit-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.booking-limit-actions .btn-primary {
  text-decoration: none;
}

.booking-limit-actions .btn-secondary {
  width: 100%;
  height: var(--touch-spacious);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-primary-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background 0.2s ease;
}

.booking-limit-actions .btn-secondary:hover {
  background: rgba(196, 133, 106, 0.2);
}

.booking-limit-close {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-4);
  transition: color 0.15s ease;
}

.booking-limit-close:hover {
  color: var(--text-secondary);
}

/* Mobile: Bottom sheet style */
@media (max-width: 480px) {
  .booking-limit-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .booking-limit-modal {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--space-5);
    padding-bottom: calc(var(--space-5) + var(--safe-bottom));
  }
}
/* ============================================
   ADDRESS AUTOCOMPLETE DROPDOWN
   ============================================ */

.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid rgba(45, 42, 38, 0.10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
  max-height: 260px;
  overflow-y: auto;
  display: none;
}

.address-suggestions.visible {
  display: block;
}

.address-suggestions-list {
  padding: var(--space-1) 0;
}

.address-suggestion-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: background-color 0.15s var(--ease-out);
}

.address-suggestion-item:hover,
.address-suggestion-item.highlighted {
  background-color: var(--accent-primary-light);
}

.address-suggestion-item.highlighted {
  color: var(--accent-primary-hover);
}

.suggestion-pin {
  flex-shrink: 0;
  color: var(--text-muted);
}

.address-suggestion-item.highlighted .suggestion-pin {
  color: var(--accent-primary);
}

.suggestion-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Loading state */
.address-loading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.address-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-primary-light);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: addr-spin 0.6s linear infinite;
}

@keyframes addr-spin {
  to { transform: rotate(360deg); }
}

/* Locked state pencil button */
.address-edit-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease-out), background-color 0.15s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.address-edit-btn:hover {
  color: var(--accent-primary);
  background-color: var(--accent-primary-light);
}

/* When locked, dim the input slightly */
.form-input.address-locked {
  color: var(--text-primary);
  background-color: rgba(196, 133, 106, 0.04);
}

/* deployed 04 Feb 2026 21:49:10 */
/* v2 */
