/* Anaaht Therapy — styles */
:root {
  --blue-50:#eff6ff; --blue-100:#dbeafe; --blue-200:#bfdbfe;
  --blue-500:#3b82f6; --blue-600:#2563eb; --blue-700:#1d4ed8; --blue-800:#1e40af; --blue-900:#1e3a8a;
  --teal-100:#ccfbf1; --teal-600:#0d9488; --teal-700:#0f766e;
  --amber-50:#fffbeb; --amber-100:#fef3c7; --amber-800:#92400e;
  --red-600:#dc2626; --red-700:#b91c1c;
  --gray-50:#f9fafb; --gray-100:#f3f4f6; --gray-200:#e5e7eb; --gray-300:#d1d5db;
  --gray-400:#9ca3af; --gray-500:#6b7280; --gray-600:#4b5563; --gray-700:#374151;
  --gray-800:#1f2937; --gray-900:#111827;
  --slate-900-40: rgba(15,23,42,.4);
  --radius: 14px;
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 20px -5px rgba(30,58,138,.12), 0 4px 6px -4px rgba(30,58,138,.08);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html,body { margin:0; padding:0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--gray-800);
  background: linear-gradient(to bottom, var(--blue-50), #ffffff 60%);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.main { max-width: 960px; padding-top: 2.5rem; padding-bottom: 2rem; }
.hidden { display: none !important; }
.muted { color: var(--gray-500); }
.small { font-size: .8125rem; }
.center { text-align: center; }
.strong { color: var(--gray-700); font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.8); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(219,234,254,.6);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.25rem;
}
.logo {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--teal-700);
}
.nav { display: none; align-items: center; gap: 1.75rem; }
.nav-link {
  color: var(--gray-700); font-weight: 500; font-size: .875rem;
  transition: color .15s;
}
.nav-link:hover { color: var(--blue-700); }
.nav-link.active { color: var(--blue-700); }
.emergency { color: var(--red-600); font-weight: 600; font-size: .875rem; }
.emergency:hover { color: var(--red-700); }
.mobile-only { display: inline; }
@media (min-width: 768px) {
  .nav { display: flex; }
  .mobile-only { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem .9rem; border-radius: 8px; font-weight: 600; font-size: .875rem;
  border: 1px solid transparent; transition: background .15s, box-shadow .15s, color .15s;
}
.btn-primary { background: var(--blue-700); color: #fff; box-shadow: 0 4px 10px rgba(29,78,216,.2); }
.btn-primary:hover { background: var(--blue-800); box-shadow: 0 6px 14px rgba(29,78,216,.28); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-outline {
  background: var(--blue-50); color: var(--blue-700);
  border-color: var(--blue-100);
}
.btn-outline:hover { background: var(--blue-100); }
.btn-hero { padding: .95rem 2rem; font-size: 1rem; border-radius: 999px; }
.btn-pill { border-radius: 999px; background: #fff; border-color: var(--blue-200); }
.link-btn {
  background: none; border: 0; color: var(--gray-500); font-weight: 500;
  font-size: .875rem; padding: .5rem .75rem; border-radius: 6px;
}
.link-btn:hover { color: var(--blue-700); }
.link { color: var(--blue-700); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { text-align: center; }
.hero h1 {
  color: var(--blue-700); font-size: 2.25rem; font-weight: 700;
  letter-spacing: -.02em; margin: 0;
}
.hero .lead {
  color: var(--gray-600); font-size: 1rem; margin: .75rem auto 0;
  max-width: 640px;
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .hero .lead { font-size: 1.125rem; }
}

/* ---------- Stage ---------- */
.stage { margin-top: 2.5rem; }
.stage-panel { }
.landing-cta {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}

/* ---------- Card / Quiz ---------- */
.card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--blue-100);
}
.quiz-card { max-width: 640px; margin: 0 auto; padding: 1.75rem; }
@media (min-width: 768px) { .quiz-card { padding: 2rem; } }
.quiz-head { margin-bottom: 1.5rem; }
.quiz-meta {
  display: flex; justify-content: space-between; font-size: .875rem;
  margin-bottom: .5rem;
}
.quiz-encourage { color: var(--blue-700); font-weight: 500; }
.progress {
  height: 6px; width: 100%; background: var(--blue-100);
  border-radius: 999px; overflow: hidden;
}
.progress-bar {
  height: 100%; width: 0%; background: var(--blue-600);
  border-radius: 999px; transition: width .5s ease;
}
.quiz-question {
  font-size: 1.25rem; font-weight: 600; color: var(--gray-900); margin: 0;
}
@media (min-width:768px) { .quiz-question { font-size: 1.5rem; } }
.quiz-options {
  display: flex; flex-direction: column; gap: .625rem;
  margin-top: 1.25rem;
}
.opt {
  width: 100%; text-align: left; border-radius: 12px;
  border: 1px solid var(--blue-100); background: #fff;
  color: var(--gray-700); padding: .9rem 1rem; font-size: .95rem;
  transition: background .15s, border-color .15s, color .15s;
}
.opt:hover { border-color: var(--blue-200); background: rgba(239,246,255,.6); }
.opt.selected {
  border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-900);
}
.quiz-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.5rem;
}

/* ---------- Loader ---------- */
.loader {
  display: flex; flex-direction: column; align-items: center;
  max-width: 380px; margin: 0 auto; padding: 2.5rem 0; gap: 1rem; text-align: center;
}
.pulse { position: relative; width: 56px; height: 56px; }
.ping {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--blue-200); opacity: .6;
  animation: ping 1.4s cubic-bezier(0,0,.2,1) infinite;
}
.dot {
  position: absolute; inset: 8px; border-radius: 50%;
  background: var(--blue-600);
}
.loader-title { color: var(--blue-800); font-size: 1.125rem; font-weight: 500; margin: 0; }

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* ---------- Results ---------- */
.results { max-width: 1024px; margin: 0 auto; }
.eyebrow {
  text-align: center; text-transform: uppercase; letter-spacing: .08em;
  font-size: .8125rem; font-weight: 500; color: var(--blue-600);
  margin: 0 0 .75rem;
}
.eyebrow-teal { color: var(--teal-600); }
.result-headline {
  max-width: 640px; margin: 0 auto 1.5rem; text-align: center;
  color: var(--blue-800); font-size: 1.25rem; font-weight: 600;
}
@media (min-width:768px) { .result-headline { font-size: 1.5rem; } }
.note {
  max-width: 640px; margin: 0 auto 1.5rem; padding: .75rem 1rem;
  background: var(--amber-50); border: 1px solid var(--amber-100);
  border-radius: 10px; color: var(--amber-800); text-align: center;
  font-size: .875rem;
}
.result-grid { display: grid; gap: 1.5rem; }
.result-grid.two { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .result-grid.two { grid-template-columns: 1fr 1fr; }
}
.result-grid.one { max-width: 640px; margin: 0 auto; }

.t-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--blue-100); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.t-avatar {
  display: block; margin: 1.5rem auto 0;
  width: 160px; height: 160px; border-radius: 50%;
  object-fit: cover; background: var(--gray-50);
  border: 1px solid var(--blue-100); box-shadow: var(--shadow-md);
}
.t-initials {
  display: flex; align-items: center; justify-content: center;
  margin: 1.5rem auto 0;
  width: 160px; height: 160px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-100), var(--teal-100));
  color: var(--blue-700); font-size: 2rem; font-weight: 600;
  box-shadow: 0 0 0 4px #fff, var(--shadow-md);
}
.t-body { padding: 1.5rem; }
@media (min-width:768px) { .t-body { padding: 1.75rem; } }
.t-name {
  text-align: center; color: var(--blue-700);
  font-size: 1.25rem; font-weight: 600; margin: 0;
}
@media (min-width:768px) { .t-name { font-size: 1.5rem; } }
.t-title {
  text-align: center; color: var(--gray-500);
  font-size: .875rem; margin: .25rem 0 0;
}
.t-explain {
  max-width: 560px; margin: 1rem auto 0; text-align: center;
  color: var(--gray-700); font-size: .95rem; line-height: 1.6;
}
.t-details {
  margin: 1.25rem 0 0; padding: 1rem; display: grid; gap: .75rem;
  background: rgba(239,246,255,.6); border-radius: 12px; font-size: .875rem;
}
.t-details dt {
  font-size: .7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: rgba(29,78,216,.7); margin: 0;
}
.t-details dd { margin: .15rem 0 0; color: var(--gray-700); }
.t-book {
  display: flex; justify-content: center; margin-top: 1.5rem;
}
.t-book .btn { width: 100%; max-width: 280px; border-radius: 999px; padding: .8rem 1.5rem; }

/* ---------- Confirmation ---------- */
.confirmation {
  max-width: 600px; margin: 0 auto; text-align: center;
  padding: 1.5rem .5rem;
}
.check-badge {
  margin: 0 auto 1.5rem;
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal-100), var(--blue-100));
  color: var(--teal-600);
  box-shadow: 0 0 0 4px #fff, var(--shadow-lg);
}
.check-badge svg { width: 40px; height: 40px; }
.confirm-title {
  color: var(--blue-800); font-size: 1.75rem; font-weight: 600;
  margin: .75rem 0 0;
}
@media (min-width:768px) { .confirm-title { font-size: 2.25rem; } }
.confirm-body {
  max-width: 420px; margin: 1rem auto 0;
  color: var(--gray-600); font-size: .95rem; line-height: 1.65;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem; border-top: 1px solid var(--blue-100);
  background: rgba(255,255,255,.6);
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: 1.5rem 1.25rem; font-size: .875rem; color: var(--gray-500);
  text-align: center;
}
@media (min-width:768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute; inset: 0;
  background: var(--slate-900-40);
  animation: fade-in .18s ease;
}
.modal-card {
  position: relative;
  width: 100%; max-width: 440px;
  background: #fff; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-xl);
}
@media (min-width:768px) { .modal-card { padding: 1.75rem; } }
.modal-title { color: var(--blue-700); font-size: 1.25rem; margin: 0 0 .25rem; }
#booking-form { display: flex; flex-direction: column; gap: .875rem; margin-top: 1rem; }
#booking-form label {
  display: flex; flex-direction: column; gap: .3rem;
  font-size: .875rem; font-weight: 500; color: var(--gray-700);
}
#booking-form input {
  font: inherit; padding: .65rem .85rem; border-radius: 8px;
  border: 1px solid var(--gray-200); background: #fff; color: var(--gray-800);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
#booking-form input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.modal-actions {
  display: flex; justify-content: flex-end; align-items: center;
  gap: .5rem; margin-top: 1.25rem;
}

/* ---------- Animations ---------- */
.fade-in { animation: fade-in .35s ease both; }
.fade-in-up { animation: fade-in-up .35s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

        /* Fallback safety styles ensuring the booking modal display functions perfectly with custom CSS classes */
        .modal {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            z-index: 1050;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: rgba(0, 0, 0, 0.5);
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        .modal.hidden {
            display: none !important;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .modal-content {
            background: #ffffff;
            border-radius: 8px;
            padding: 24px;
            max-width: 500px;
            width: 100%;
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
            position: relative;
            margin: 15px;
        }
        .close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: transparent;
            border: none;
            font-size: 24px;
            cursor: pointer;
            line-height: 1;
        }
        .modal-form-group {
            margin-bottom: 16px;
        }
        .modal-form-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
        }
        .modal-form-group input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }

