/* American hospital clinical aesthetic */
:root {
  --navy: #0b3d5c;
  --navy-soft: #1a5a7a;
  --teal: #2a7f9e;
  --teal-light: #4a9bb8;
  --sky: #e8f3f7;
  --sky-mid: #d4e8f0;
  --mint: #f0f7fa;
  --white: #ffffff;
  --ink: #1c2b36;
  --muted: #5a6d7a;
  --line: rgba(11, 61, 92, 0.12);
  --ok: #2d8a6e;
  --warn: #c47a2c;
  --shadow: 0 12px 40px rgba(11, 61, 92, 0.08);
  --radius: 14px;
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--mint);
  -webkit-font-smoothing: antialiased;
}

html.landing-html,
html:has(.landing-body) {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

html:has(.home-body) {
  height: auto;
  overflow: auto;
}

a { color: var(--teal); text-decoration: none; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== Home (trust-first mobile funnel) ===== */
.home-body {
  margin: 0;
  background: #e4eef4;
  overflow-x: hidden;
}

.clinic-bar {
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(90deg, #0b3d5c 0%, #14506f 100%);
  color: #fff;
}

.clinic-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.clinic-bar__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.clinic-bar strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.clinic-bar em {
  display: block;
  font-style: normal;
  font-size: 11px;
  opacity: 0.78;
  margin-top: 1px;
  letter-spacing: 0.04em;
}

.hero {
  max-width: 560px;
  margin: 0 auto;
  background: #0b3d5c;
  display: flex;
  flex-direction: column;
}

.hero__media {
  position: relative;
  display: block;
  line-height: 0;
  background: #0b3d5c;
}

.hero__poster {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

/* Soft cover over legacy "Dr. Max" text area + correct name */
.hero__nameplate {
  position: absolute;
  top: 3.5%;
  left: 3.5%;
  right: 38%;
  z-index: 2;
  padding: 10px 12px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(8, 36, 54, 0.78) 0%, rgba(11, 61, 92, 0.55) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  line-height: 1.2;
}

.hero__name {
  font-family: var(--serif);
  font-size: clamp(22px, 6.2vw, 34px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 2px;
}

.hero__role {
  font-size: clamp(10px, 2.6vw, 12px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #7ec8e3;
  margin: 0 0 6px;
}

.hero__tag {
  font-size: clamp(10px, 2.5vw, 12px);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
  margin: 0;
}

.hero__cta {
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #0f4a66 0%, #0b3d5c 100%);
}

.hero__cta-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 10px;
}

.credential-row {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(11, 61, 92, 0.12);
}

.credential-row__item {
  background: #0f4a66;
  color: #fff;
  text-align: center;
  padding: 12px 6px;
}

.credential-row__item strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.credential-row__item span {
  font-size: 10px;
  opacity: 0.75;
}

.trust-strip {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(11, 61, 92, 0.14);
  border-bottom: 1px solid rgba(11, 61, 92, 0.1);
}

.trust-strip__item {
  background: #f7fbfd;
  padding: 16px 8px;
  text-align: center;
}

.trust-strip__item strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 3px;
  font-weight: 700;
}

.trust-strip__item span {
  font-size: 11px;
  color: var(--muted);
}

.cred-section {
  max-width: 560px;
  margin: 0 auto;
  padding: 34px 18px 30px;
  background: #f7fbfd;
}

.cred-section--alt {
  background: linear-gradient(180deg, #e8f2f7 0%, #f4fafc 100%);
}

.cred-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.cred-title {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 4px;
}

.cred-sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.cred-lead {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.cred-photo {
  margin: 0 0 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(11, 61, 92, 0.1);
  box-shadow: 0 14px 36px rgba(11, 61, 92, 0.1);
  background: #d9e8f0;
}

.cred-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.cred-meta h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 10px;
}

.cred-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cred-badges span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: rgba(42, 127, 158, 0.1);
  border: 1px solid rgba(42, 127, 158, 0.2);
  padding: 6px 10px;
  border-radius: 999px;
}

.cred-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.cred-list li {
  position: relative;
  padding: 8px 0 8px 18px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.45;
  border-bottom: 1px solid rgba(11, 61, 92, 0.06);
}

.cred-list li:last-child { border-bottom: none; }

.cred-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.cred-quote {
  margin-top: 12px;
  padding: 14px 14px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  font-style: italic;
  background: rgba(255, 255, 255, 0.8);
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
}

.home-bottom-cta {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 18px 28px;
  text-align: center;
  background: linear-gradient(180deg, #0f4d6e 0%, #0b3d5c 100%);
  color: #fff;
}

.home-bottom-cta__kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 8px;
}

.home-bottom-cta h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin-bottom: 8px;
  font-weight: 700;
}

.home-bottom-cta > p {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 18px;
}

.home-bottom-cta .btn-start {
  max-width: 360px;
  margin: 0 auto;
}

.site-footer {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: #082f47;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 4px;
}

.site-footer span {
  font-size: 11px;
  letter-spacing: 0.04em;
}

/* ===== Landing (legacy helpers kept) ===== */
.landing-body {
  margin: 0;
  background: #cfe3ee;
  overflow: hidden;
  height: 100%;
  height: 100dvh;
}

.landing {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 48px;
  background: linear-gradient(180deg, #f7fbfd 0%, #eaf3f7 100%);
}

.landing--hero {
  max-width: 640px;
  width: 100%;
  height: 100%;
  height: 100dvh;
  padding: 0;
  background: #cfe3ee;
  overflow: hidden;
}

.poster-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 18%, #eef6fa 0%, #d4e6ef 55%, #bfd7e4 100%);
}

.poster-frame {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 8px 0;
  overflow: hidden;
}

.poster-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.landing-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 20px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(
    180deg,
    rgba(11, 61, 92, 0) 0%,
    rgba(11, 61, 92, 0.35) 28%,
    rgba(11, 61, 92, 0.72) 100%
  );
}

.landing-overlay--compact {
  position: relative;
  flex: 0 0 auto;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(
    180deg,
    rgba(8, 40, 58, 0.05) 0%,
    rgba(8, 40, 58, 0.55) 35%,
    rgba(8, 40, 58, 0.82) 100%
  );
  pointer-events: none;
}

.landing-overlay--compact .btn,
.landing-overlay--compact .clinic-note {
  pointer-events: auto;
}

.privacy-bar-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.privacy-bar-box--glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.btn-start {
  position: relative;
  overflow: hidden;
  font-size: 18px;
  padding: 16px 18px;
  letter-spacing: 0.08em;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a8fb0 0%, #0f4d6e 55%, #0b3d5c 100%);
  box-shadow:
    0 0 0 0 rgba(74, 185, 210, 0.55),
    0 10px 28px rgba(8, 40, 58, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: start-pulse 1.8s ease-in-out infinite;
}

.btn-start__text {
  position: relative;
  z-index: 2;
}

.btn-start__shine {
  position: absolute;
  z-index: 1;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: start-shine 2.4s ease-in-out infinite;
}

.btn-start:not(:disabled):active {
  transform: scale(0.98);
}

@keyframes start-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(74, 185, 210, 0.5),
      0 10px 28px rgba(8, 40, 58, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(74, 185, 210, 0),
      0 14px 32px rgba(8, 40, 58, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: scale(1.02);
  }
}

@keyframes start-shine {
  0% { left: -45%; }
  55%, 100% { left: 120%; }
}

.clinic-note--on-image {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.poster-wrap {
  width: 100%;
  background: #dfeaf0;
  line-height: 0;
  position: relative;
}

.poster-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.landing-panel {
  padding: 28px 22px 8px;
}

.freq-field.hidden {
  display: none;
}

.privacy-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.privacy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(45, 138, 110, 0.5);
  animation: pulse-dot 1.6s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(45, 138, 110, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(45, 138, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 138, 110, 0); }
}

.progress-track {
  height: 8px;
  background: var(--sky-mid);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--navy-soft) 100%);
  transition: width 0.15s linear;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(180deg, #1f6f8f 0%, #0b3d5c 100%);
  color: #fff;
  padding: 16px 20px;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(11, 61, 92, 0.28);
}

.btn-primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 61, 92, 0.34);
}

.btn-primary:not(:disabled):active {
  transform: translateY(0);
}

.clinic-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ===== Assess ===== */
.assess-body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #d9eaf2;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(255, 255, 255, 0.75) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(74, 155, 184, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 85%, rgba(45, 138, 110, 0.12) 0%, transparent 50%),
    linear-gradient(165deg, #eaf4f8 0%, #d5e8f1 42%, #cfe3ee 100%);
  overflow-x: hidden;
}

/* Soft clinical cross / grid pattern (US hospital feel) */
.assess-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(11, 61, 92, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 61, 92, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.assess-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%232a7f9e' stroke-width='1.2' opacity='0.55'%3E%3Cpath d='M60 28v20M50 38h20'/%3E%3Ccircle cx='60' cy='38' r='14'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.assess-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 18px 60px;
  position: relative;
  z-index: 1;
}

.assess-trust {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 14px 18px 0 88px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(11, 61, 92, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: auto;
}

.assess-trust img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid rgba(42, 127, 158, 0.35);
  flex-shrink: 0;
}

.assess-trust strong {
  display: block;
  font-size: 13px;
  color: var(--navy);
}

.assess-trust span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.privacy-badge {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 40;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(45, 138, 110, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(11, 61, 92, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: badge-glow 2.4s ease-in-out infinite;
}

.privacy-badge::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(45, 138, 110, 0.45);
  animation: spin-slow 10s linear infinite;
}

.privacy-badge .shield {
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
}

.privacy-badge span {
  font-size: 9px;
  font-weight: 700;
  color: var(--ok);
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  padding: 0 4px;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(11, 61, 92, 0.1), 0 0 0 0 rgba(45, 138, 110, 0.2); }
  50% { box-shadow: 0 8px 24px rgba(11, 61, 92, 0.1), 0 0 0 6px rgba(45, 138, 110, 0); }
}

.assess-clinic-line {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-soft);
  text-align: center;
  margin: 0 0 10px;
  opacity: 0.85;
}

.assess-card {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 24px 20px 22px;
  box-shadow:
    0 16px 40px rgba(11, 61, 92, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.step-progress .fraction {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.step-bar {
  flex: 1;
  height: 6px;
  background: rgba(11, 61, 92, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.step-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-light), var(--navy));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.q-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 8px;
}

.q-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  user-select: none;
}

.opt:hover {
  border-color: rgba(42, 127, 158, 0.45);
}

.opt.selected {
  border-color: var(--teal);
  background: rgba(232, 243, 247, 0.95);
  box-shadow: inset 0 0 0 1px rgba(42, 127, 158, 0.2);
}

.opt input {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
}

.opt .label-text {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.input, .textarea, .select-input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.select-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: block;
  width: 100%;
  min-height: 52px;
  line-height: 1.4;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%230b3d5c' d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 9px;
  padding: 14px 44px 14px 14px;
  cursor: pointer;
  border: 1.5px solid rgba(11, 61, 92, 0.22);
  box-shadow: 0 2px 8px rgba(11, 61, 92, 0.06);
}

.input:focus, .textarea:focus, .select-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42, 127, 158, 0.15);
}

.textarea {
  min-height: 88px;
  resize: vertical;
}

.input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-row .input { flex: 1; }

.unit {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
}

.actions .btn { flex: 1; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
  border: 1.5px solid var(--line);
  padding: 14px 16px;
  font-size: 15px;
}

.btn-ghost:hover {
  background: #fff;
}

.cond-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.error-tip {
  color: #b42318;
  font-size: 13px;
  margin-top: 10px;
  display: none;
}

.error-tip.show { display: block; }

/* encrypt overlay */
.encrypt-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(240, 247, 250, 0.92);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.encrypt-overlay.show { display: flex; }

.encrypt-box {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--line);
}

.encrypt-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-bottom: 18px;
  padding: 10px;
  border-radius: 12px;
  background: var(--sky);
}

.encrypt-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid rgba(42, 127, 158, 0.3);
}

.encrypt-brand strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
}

.encrypt-brand span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.encrypt-box h3 {
  color: var(--navy);
  font-size: 18px;
  margin-bottom: 8px;
}

.encrypt-box p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.encrypt-track {
  height: 10px;
  background: var(--sky-mid);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.encrypt-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ok), var(--teal));
  border-radius: 999px;
}

.encrypt-pct {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
}

/* ===== Result ===== */
.result-body {
  background: linear-gradient(180deg, #e8f2f7 0%, #f4fafc 45%, #fff 100%);
}

.result-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
}

.result-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 22px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}

.result-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, #0b3d5c 0%, #14506f 100%);
  color: #fff;
}

.result-brand .clinic-bar__mark {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
}

.result-brand strong {
  display: block;
  font-size: 14px;
}

.result-brand em {
  display: block;
  font-style: normal;
  font-size: 11px;
  opacity: 0.78;
  margin-top: 2px;
}

.result-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3aa884, #2d8a6e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
  box-shadow: 0 10px 24px rgba(45, 138, 110, 0.3);
}

.result-card h1 {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 700;
}

.result-card .lead {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
  line-height: 1.5;
}

.id-box {
  background: var(--sky);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.id-box .k {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.id-box .v {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.08em;
}

.fee {
  font-size: 18px;
  color: var(--ink);
  margin: 18px 0 22px;
}

.fee strong {
  color: var(--navy);
  font-size: 22px;
}

.btn-share {
  background: linear-gradient(180deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  padding: 18px 16px;
  font-size: 16px;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(18, 140, 126, 0.28);
  margin-bottom: 14px;
}

.btn-share:hover {
  transform: translateY(-1px);
}

.result-tip {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.result-doctor {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px;
  margin: 0 0 16px;
  background: var(--sky);
  border-radius: 12px;
  border: 1px solid rgba(11, 61, 92, 0.08);
}

.result-doctor img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid rgba(42, 127, 158, 0.35);
  flex-shrink: 0;
}

.result-doctor strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 2px;
}

.result-doctor span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.result-team {
  margin: 0 0 18px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(11, 61, 92, 0.1);
  background: #e8f1f6;
}

.result-team img {
  display: block;
  width: 100%;
  height: auto;
}

.result-team figcaption {
  padding: 8px 10px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.result-fallback {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.result-fallback code {
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  color: var(--navy);
  background: var(--sky);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ===== Admin ===== */
.admin-body {
  background: #f3f6f8;
  min-height: 100vh;
  padding: 28px 16px 48px;
  font-family: var(--font);
}

.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.admin-login {
  max-width: 380px;
  margin: 80px auto;
  background: #fff;
  padding: 28px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.admin-login h1 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 16px;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.admin-top h1 {
  font-size: 22px;
  color: var(--navy);
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.admin-table th,
table.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

table.admin-table th {
  background: var(--sky);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

table.admin-table tr:hover td {
  background: #fafcfd;
}

.tag-yes {
  color: #fff;
  background: var(--ok);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.tag-no {
  color: var(--muted);
  background: #eef1f3;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.answers-block {
  max-width: 320px;
  white-space: pre-wrap;
  line-height: 1.45;
  color: var(--ink);
}

.muted { color: var(--muted); font-size: 12px; }

@media (max-width: 480px) {
  .privacy-badge {
    width: 64px;
    height: 64px;
    top: 10px;
    left: 10px;
  }
  .q-title { font-size: 18px; }
  .assess-card { margin-top: 12px; padding: 20px 16px; }
  .assess-trust { margin-top: 10px; }
  .hero__nameplate {
    top: 2.5%;
    left: 3%;
    right: 34%;
    padding: 8px 10px 10px;
  }
  .credential-row__item strong { font-size: 11px; }
}
