*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1a2744;
  --navy-deep: #0f1a30;
  --navy-light: #2a3d5e;
  --gold: #c9a84c;
  --gold-light: #e0c878;
  --gold-muted: #a08638;
  --cream: #faf8f4;
  --cream-dark: #f0ece4;
  --warm-gray: #6b6560;
  --text: #2c2926;
  --text-light: #5a5550;
  --white: #ffffff;
  --border: #e2ddd5;
  --shadow: rgba(26, 39, 68, 0.08);
  --shadow-md: rgba(26, 39, 68, 0.12);
  --green: #2e7d4f;
  --green-light: #e8f5ec;
  --red: #c0392b;
  --red-light: #fdf0ef;
  --orange: #d4820a;
  --orange-light: #fef8ec;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px var(--shadow-md); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.nav-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.nav-brand-sub {
  font-size: 0.7rem;
  color: var(--gold-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy);
  background: var(--cream);
}
.nav-links .nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  margin-left: 8px;
}
.nav-links .nav-cta:hover {
  background: var(--navy-light);
}
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ========== PAGE SECTIONS ========== */
.page { display: none; }
.page.active { display: block; }

/* ========== HERO ========== */
.hero {
  padding: 140px 24px 80px;
  background: linear-gradient(170deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--cream), transparent);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-content { animation: fadeInUp 0.8s ease-out; }
.hero-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 4px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 500;
}
.hero-desc {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

.hero-photo {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-photo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}
.hero-photo-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.hero-stat-bar {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero-stat { text-align: left; }
.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ========== QUICK INFO BAR ========== */
.info-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.info-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: 10px;
  transition: background 0.2s;
}
.info-card:hover { background: var(--cream); }
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; color: var(--gold); }
.info-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.info-card-text {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ========== SECTION STYLES ========== */
.section {
  padding: 80px 24px;
}
.section-alt { background: var(--white); }
.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.section-header {
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  color: var(--gold-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 12px;
  max-width: 600px;
}
.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 16px 0;
}

/* ========== SERVICES GRID ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  padding: 28px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.page.active .section-alt .service-card { background: var(--cream); }
.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px var(--shadow);
  transform: translateY(-2px);
}
.service-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(201,168,76,0.1), rgba(201,168,76,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card-icon svg { width: 20px; height: 20px; color: var(--gold-muted); }
.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========== ABOUT / BIO ========== */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}
.about-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px var(--shadow-md);
}
.about-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.about-text h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}
.about-text p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}
.credential-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.credential {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}
.page.active .section-alt .credential { background: var(--white); }
.credential-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-muted);
  font-weight: 600;
}
.credential-value {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
}

/* ========== FAQ ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--gold); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  gap: 16px;
}
.faq-question:hover { color: var(--gold-muted); }
.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--gold);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ========== CONTACT / PATIENT INFO ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; color: var(--gold-muted); }
.contact-item-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-item-value {
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 500;
}
.contact-item-sub {
  font-size: 0.82rem;
  color: var(--text-light);
}
.contact-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream-dark);
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Hours table */
.hours-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
}
.hours-table td {
  padding: 8px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
}
.hours-table td:first-child {
  font-weight: 500;
  color: var(--navy);
  width: 120px;
}
.hours-table td:last-child {
  color: var(--text-light);
}
.hours-table tr:last-child td { border-bottom: none; }

/* ========== PATIENT INFO ========== */
.patient-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.patient-card {
  padding: 28px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.patient-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}
.patient-card p, .patient-card li {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.7;
}
.patient-card ul {
  list-style: none;
  padding: 0;
}
.patient-card li {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.patient-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--navy-deep);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.footer-brand .nav-brand-name { color: var(--white); }
.footer-brand .nav-brand-sub { color: var(--gold-muted); }
.footer-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  line-height: 1.6;
}
.footer-links { display: flex; gap: 32px; }
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1000px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== NOTE BANNER ========== */
.note-banner {
  padding: 20px 24px;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 20px;
}
.note-banner p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}
.note-banner strong {
  color: var(--navy);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 360px; }
  .hero h1 { font-size: 2.6rem; }
  .hero { min-height: auto; padding: 120px 24px 60px; }
  .info-bar-inner { grid-template-columns: 1fr; gap: 16px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
  .patient-cards { grid-template-columns: 1fr; }
  .hero-stat-bar { gap: 24px; }
  .footer-inner { flex-direction: column; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px var(--shadow-md);
  }
  .nav-links.mobile-open .nav-cta { margin-left: 0; text-align: center; }
  .nav-mobile-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 2rem; }
  .hero-stat-bar { flex-direction: column; gap: 16px; }
}

/* ========== COMING SOON OVERLAY (Feature Flag) ========== */
.coming-soon-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 24px;
}
.coming-soon-card {
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 480px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.coming-soon-icon { font-size: 48px; margin-bottom: 12px; }
.coming-soon-card h2 { margin: 0 0 8px; color: var(--primary); }
.coming-soon-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 16px;
}
.coming-soon-desc { color: #555; line-height: 1.6; margin-bottom: 24px; }
.coming-soon-desc a { color: var(--primary); font-weight: 600; }
.coming-soon-staff { font-size: .85rem; opacity: .5; }
.coming-soon-staff:hover { opacity: 1; }

/* PIN Modal */
.pin-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; justify-content: center; align-items: center;
  z-index: 9999;
}
.pin-modal {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.pin-modal h3 { margin: 0 0 8px; }
.pin-modal p { color: #555; margin: 0 0 16px; }
.pin-modal .form-input { width: 100%; text-align: center; font-size: 1.2rem; letter-spacing: 4px; }

/* ========== SCHEDULING WIZARD STYLES ========== */
.sched-container { max-width: 800px; margin: 0 auto; padding: 16px 24px 60px; }
/* Progress bar */
.progress-bar { display: flex; align-items: center; gap: 4px; margin-bottom: 32px; padding: 0 4px; }
.progress-step { flex: 1; height: 4px; border-radius: 4px; background: var(--border); transition: background 0.4s; }
.progress-step.active { background: var(--gold); }
.progress-step.done { background: var(--green); }

/* Step labels */
.progress-labels { display: flex; justify-content: space-between; margin-bottom: 32px; padding: 0 4px; }
.progress-label { font-size: 0.68rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.5; transition: all 0.3s; text-align: center; flex: 1; }
.progress-label.active { opacity: 1; color: var(--navy); font-weight: 600; }
.progress-label.done { opacity: 0.7; color: var(--green); }

/* Step panels */
.step-panel { display: none; animation: fadeIn 0.35s ease-out; }
.step-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Section styling */
.step-title { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.step-subtitle { font-size: 0.9rem; color: var(--text-light); margin-bottom: 28px; line-height: 1.6; }
.divider { width: 40px; height: 2px; background: var(--gold); margin: 12px 0 20px; }

/* Selection cards */
.choice-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.choice-card { padding: 28px 24px; background: var(--white); border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.25s; text-align: center; }
.choice-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px var(--shadow); transform: translateY(-2px); }
.choice-card.selected { border-color: var(--navy); background: linear-gradient(135deg, rgba(26,39,68,0.03), rgba(201,168,76,0.05)); box-shadow: 0 4px 16px var(--shadow-md); }
.choice-card-icon { font-size: 2rem; margin-bottom: 12px; }
.choice-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.choice-card-desc { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }

/* Calendar */
.calendar { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--navy); color: var(--white); }
.cal-header h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; }
.cal-nav { background: none; border: none; color: var(--white); cursor: pointer; padding: 4px 8px; font-size: 1.1rem; opacity: 0.7; transition: opacity 0.2s; }
.cal-nav:hover { opacity: 1; }
.cal-nav:disabled { opacity: 0.2; cursor: default; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--cream); border-bottom: 1px solid var(--border); }
.cal-weekday { padding: 8px; text-align: center; font-size: 0.7rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-day { padding: 10px 8px; text-align: center; border: 1px solid var(--border); min-height: 72px; transition: all 0.2s; position: relative; }
.cal-day.empty { background: var(--cream-dark); border-color: transparent; }
.cal-day.past { background: var(--cream-dark); opacity: 0.5; }
.cal-day.unavailable { background: var(--cream-dark); }
.cal-day.available { cursor: pointer; }
.cal-day.available:hover { background: rgba(201,168,76,0.08); border-color: var(--gold); }
.cal-day.selected { background: rgba(26,39,68,0.06); border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.cal-day-num { font-size: 0.85rem; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.cal-day.past .cal-day-num, .cal-day.unavailable .cal-day-num { color: var(--text-light); opacity: 0.5; }
.cal-day-slots { font-size: 0.68rem; color: var(--green); font-weight: 600; }
.cal-day.unavailable .cal-day-slots { color: var(--red); }
.cal-day-label { font-size: 0.62rem; color: var(--text-light); }
.cal-legend { padding: 12px 20px; display: flex; gap: 20px; border-top: 1px solid var(--border); font-size: 0.72rem; color: var(--text-light); }
.cal-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Time slots */
.time-slots-container { margin-top: 20px; }
.time-slots-header { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--navy); margin-bottom: 12px; font-weight: 600; }
.time-period { margin-bottom: 16px; }
.time-period-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-muted); font-weight: 600; margin-bottom: 8px; }
.time-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.time-slot { padding: 10px 18px; background: var(--white); border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 500; color: var(--navy); transition: all 0.2s; }
.time-slot:hover { border-color: var(--gold); background: rgba(201,168,76,0.06); }
.time-slot.selected { border-color: var(--navy); background: var(--navy); color: var(--white); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 0.78rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.06em; }
.form-label .optional { font-weight: 400; color: var(--text-light); text-transform: none; letter-spacing: 0; font-size: 0.75rem; }
.form-input, .form-select, .form-textarea {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; color: var(--text); background: var(--white); transition: border-color 0.2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--navy); }
.form-input.error, .form-select.error { border-color: var(--red); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-error { font-size: 0.75rem; color: var(--red); display: none; }
.form-error.show { display: block; }

/* Insurance */
.insurance-entry { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 12px; }
.insurance-entry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.insurance-entry-title { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.remove-insurance { background: none; border: none; color: var(--red); cursor: pointer; font-size: 0.8rem; padding: 4px 8px; border-radius: 4px; }
.remove-insurance:hover { background: var(--red-light); }

/* Alert boxes */
.alert { padding: 16px 20px; border-radius: 10px; margin: 16px 0; font-size: 0.88rem; line-height: 1.6; }
.alert-warning { background: var(--orange-light); border: 1px solid rgba(212,130,10,0.2); color: #8a5a00; }
.alert-error { background: var(--red-light); border: 1px solid rgba(192,57,43,0.2); color: var(--red); }
.alert-success { background: var(--green-light); border: 1px solid rgba(46,125,79,0.2); color: var(--green); }
.alert-info { background: #eef6ff; border: 1px solid rgba(40,100,180,0.2); color: #1a5276; }
.alert strong { display: block; margin-bottom: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-size: 0.88rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: all 0.25s; border: none; font-family: 'DM Sans', sans-serif; letter-spacing: 0.02em; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: var(--white); color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--navy); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-row { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Radio/checkbox styled */
.radio-group { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.radio-option { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--white); border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.radio-option:hover { border-color: var(--gold); }
.radio-option.selected { border-color: var(--navy); background: rgba(26,39,68,0.03); }
.radio-option input { display: none; }
.radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; }
.radio-option.selected .radio-dot { border-color: var(--navy); }
.radio-option.selected .radio-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.radio-text { font-size: 0.88rem; color: var(--text); }
.radio-text-sub { font-size: 0.78rem; color: var(--text-light); }

/* Referral section */
.referral-section { background: var(--orange-light); border: 1px solid rgba(212,130,10,0.15); border-radius: 10px; padding: 20px; margin: 16px 0; }
.referral-title { font-weight: 600; color: #8a5a00; font-size: 0.9rem; margin-bottom: 8px; }

/* Confirmation */
.confirm-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 32px; text-align: center; }
.confirm-icon { font-size: 3rem; margin-bottom: 16px; }
.confirm-title { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--navy); margin-bottom: 8px; }
.confirm-subtitle { font-size: 0.92rem; color: var(--text-light); margin-bottom: 24px; }
.confirm-details { text-align: left; background: var(--cream); border-radius: 8px; padding: 20px; margin: 20px 0; }
.confirm-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.88rem; }
.confirm-row-label { color: var(--text-light); }
.confirm-row-value { color: var(--navy); font-weight: 500; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }

/* Responsive */
@media (max-width: 640px) {
  .choice-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .time-slots { gap: 6px; }
  .time-slot { padding: 8px 12px; font-size: 0.8rem; }
  .btn-row { flex-direction: column; gap: 12px; }
  .step-title { font-size: 1.5rem; }
}

/* page transition */
.page-enter { animation: fadeInUp 0.4s ease-out; }

/* ========== PATIENT SIGN-IN FORM ========== */
.signin-container { max-width: 800px; margin: 0 auto; }
.signin-section { background: var(--white); border-radius: 14px; border: 1px solid var(--border); padding: 28px; margin-bottom: 20px; }
.signin-section-header { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.signin-section-header h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--navy); font-weight: 600; }
.signin-section-header .toggle-icon { font-size: 1.2rem; color: var(--text-light); transition: transform 0.3s; }
.signin-section-header .toggle-icon.collapsed { transform: rotate(-90deg); }
.signin-section-body { margin-top: 20px; }
.signin-section-body.collapsed { display: none; }
.signin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.signin-form-grid .full { grid-column: 1 / -1; }
.signin-form-grid .third { grid-column: span 1; }
.signin-form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.medical-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.medical-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.medical-item label { font-size: 0.85rem; color: var(--text); min-width: 140px; }
.medical-item .radio-group { display: flex; gap: 12px; align-items: center; }
.medical-item .radio-group label { min-width: auto; font-size: 0.82rem; display: flex; align-items: center; gap: 4px; }
.medical-item .when-field { width: 80px; padding: 4px 8px; font-size: 0.8rem; border: 1px solid var(--border); border-radius: 6px; font-family: 'DM Sans', sans-serif; }
.allergy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.allergy-item { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.allergy-item label { font-size: 0.85rem; color: var(--text); min-width: 110px; }
.medication-row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 10px; align-items: end; margin-bottom: 8px; }
.medication-row .remove-btn { background: none; border: none; color: var(--red); cursor: pointer; font-size: 1.1rem; padding: 8px; border-radius: 6px; }
.medication-row .remove-btn:hover { background: var(--red-light); }
.surgery-row { display: grid; grid-template-columns: 120px 1fr 40px; gap: 10px; align-items: end; margin-bottom: 8px; }
.add-row-btn { background: none; border: 1px dashed var(--border); color: var(--navy); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 0.82rem; font-family: 'DM Sans', sans-serif; width: 100%; margin-top: 4px; }
.add-row-btn:hover { border-color: var(--navy); background: var(--cream); }
.sig-pad-wrapper { border: 2px solid var(--border); border-radius: 10px; background: var(--white); position: relative; overflow: hidden; }
.sig-pad-wrapper canvas { display: block; width: 100%; cursor: crosshair; }
.sig-pad-label { position: absolute; bottom: 8px; left: 12px; font-size: 0.72rem; color: var(--text-light); pointer-events: none; }
.sig-pad-clear { position: absolute; top: 8px; right: 8px; background: var(--cream); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 0.75rem; cursor: pointer; font-family: 'DM Sans', sans-serif; color: var(--text-light); }
.sig-pad-clear:hover { background: var(--cream-dark); }
.consent-text { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; padding: 16px; background: var(--cream); border-radius: 8px; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.consent-check input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); }
.consent-check label { font-size: 0.85rem; color: var(--text); line-height: 1.5; }
.signin-progress { display: flex; gap: 6px; margin-bottom: 24px; }
.signin-progress-step { flex: 1; height: 4px; border-radius: 2px; background: var(--border); transition: background 0.3s; }
.signin-progress-step.completed { background: var(--green); }
.signin-progress-step.active { background: var(--navy); }
.height-weight-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }
.smoking-row { display: flex; gap: 32px; align-items: center; margin-top: 8px; }
.smoking-row label { font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
/* ========== HIPAA PRIVACY NOTICE ========== */
.hipaa-notice-text {
  max-height: 500px;
  overflow-y: auto;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}
.hipaa-notice-text p { margin-bottom: 12px; }
.hipaa-notice-text ol { padding-left: 20px; margin-bottom: 16px; }
.hipaa-notice-text li { margin-bottom: 10px; }
.hipaa-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 24px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.hipaa-notice-text .hipaa-section-title:first-child { border-top: none; padding-top: 0; margin-top: 0; }

@media (max-width: 768px) {
  .signin-form-grid, .signin-form-grid-3, .medical-grid, .allergy-grid { grid-template-columns: 1fr; }
  .height-weight-row { grid-template-columns: 1fr 1fr; }
  .medication-row { grid-template-columns: 1fr 1fr 40px; }
  .surgery-row { grid-template-columns: 100px 1fr 40px; }
  .signin-section { padding: 20px 16px; }
  .hipaa-notice-text { max-height: 350px; padding: 16px; }
}