/* ============================================================
   Sleep & Airway Self-Assessment — Valley Family Dental
   Shares brand vars from valley-styles.css
   ============================================================ */

:root{
  --risk-low:  #2E7D5B;
  --risk-mod:  #C98A12;
  --risk-high: #D7641C;
  --risk-sev:  #B8392B;
}

.assess-bg{
  background: linear-gradient(165deg, var(--hero-top, #F3F4F6), var(--hero-bot, #E9EBEF));
  min-height: calc(100vh - 79px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 24px 72px;
}
.assess-card{
  width: 100%;
  max-width: 680px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 40px 90px -40px rgba(17,39,72,0.45);
  border: 1px solid rgba(22,49,92,0.06);
  overflow: hidden;
}

/* top bar inside card */
.assess-top{
  height: 6px;
  background: var(--line-soft);
  position: relative;
}
.assess-progress{
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: var(--orange);
  transition: width .45s cubic-bezier(.4,0,.2,1);
}
.assess-inner{ padding: 44px 52px 48px; }

/* ---------- screens ---------- */
.a-screen{ display: none; }
.a-screen.active{ display: block; }
.a-screen.rising{ animation: aRise .4s ease both; }
@keyframes aRise{ from{ transform: translateY(10px);} to{ transform:none;} }
@media (prefers-reduced-motion: reduce){ .a-screen.rising{ animation: none; } }

/* ---------- INTRO ---------- */
.a-eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px;
}
.a-eyebrow svg{ width: 15px; height: 15px; }
.a-intro h1{
  font-family: 'Archivo', sans-serif; font-weight: 800;
  font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; line-height: 1.02;
  color: var(--navy); letter-spacing: -0.01em;
}
.a-intro .lead{
  font-size: 17px; color: var(--ink); line-height: 1.55; margin: 18px 0 28px; max-width: 540px;
  text-wrap: pretty;
}
.a-meta{
  display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 32px;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.a-meta .m{ display: flex; align-items: center; gap: 11px; }
.a-meta .m svg{ width: 26px; height: 26px; color: var(--orange); stroke-width: 1.5; flex-shrink: 0; }
.a-meta .m .mt{ font-family:'Archivo',sans-serif; font-weight: 700; font-size: 15px; color: var(--navy); line-height: 1.1; }
.a-meta .m .ms{ font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.a-start{ width: 100%; font-size: 15px; padding: 17px; }
.a-disclaimer{ font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin-top: 18px; text-align: center; }

/* ---------- QUIZ ---------- */
.q-count{
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 22px;
}
.q-count b{ color: var(--navy); }
.q-statement{
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: clamp(23px, 3.2vw, 31px); line-height: 1.12; color: var(--navy);
  letter-spacing: -0.01em; min-height: 112px; display: flex; align-items: center;
  text-wrap: balance;
}
.q-help{
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; margin: 6px 0 30px;
  padding-left: 16px; border-left: 3px solid var(--line); text-wrap: pretty;
}
.q-actions{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.q-btn{
  display: flex; align-items: center; justify-content: center; gap: 11px;
  min-height: 64px; border-radius: 10px; cursor: pointer;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 16px;
  letter-spacing: 0.02em; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
  border: 1.5px solid var(--line);
  background: #fff; color: var(--navy);
}
.q-btn svg{ width: 22px; height: 22px; stroke-width: 2; }
.q-btn:hover{ transform: translateY(-2px); }
.q-btn.yes{ border-color: rgba(215,100,28,0.4); }
.q-btn.yes:hover{ background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 12px 26px -12px rgba(215,100,28,0.7); }
.q-btn.no:hover{ background: var(--navy-deep); color: #fff; border-color: var(--navy-deep); box-shadow: 0 12px 26px -12px rgba(17,39,72,0.6); }
.q-back{
  display: inline-flex; align-items: center; gap: 7px; margin-top: 26px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; background: none; border: none;
}
.q-back:hover{ color: var(--navy); }
.q-back svg{ width: 15px; height: 15px; }
.q-back[hidden]{ display: none; }

/* ---------- RESULT ---------- */
.a-result{ text-align: center; }
.r-eyebrow{ font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; }
.gauge{ position: relative; width: 200px; height: 200px; margin: 0 auto 8px; }
.gauge svg{ width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .track{ fill: none; stroke: var(--line-soft); stroke-width: 14; }
.gauge .fill{ fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.34,1.2,.4,1), stroke .4s; }
.gauge-center{ position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-score{ font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 58px; line-height: 1; color: var(--navy); }
.gauge-of{ font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

.r-level{
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 28px; text-transform: uppercase;
  letter-spacing: 0.01em; margin: 14px 0 4px;
}
.r-level-sub{ font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

/* segmented meter */
.r-meter{ display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: 26px 0 8px; }
.r-seg{ text-align: center; }
.r-seg .bar{ height: 8px; border-radius: 4px; background: var(--line); transition: background .4s, transform .4s; }
.r-seg .sl{ font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
.r-seg .sr{ font-size: 10px; color: #aab1ba; margin-top: 1px; }
.r-seg.on .bar{ transform: scaleY(1.5); }
.r-seg.on .sl{ color: var(--navy); }

.r-msg{ font-size: 16px; color: var(--ink); line-height: 1.6; margin: 22px auto 0; max-width: 520px; text-wrap: pretty; }

.r-flagged{ text-align: left; margin: 30px 0 0; }
.r-flagged .fh{ font-family:'Archivo',sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; display:flex; align-items:center; gap:9px; }
.r-flagged .fh::after{ content:""; flex:1; height:1px; background: var(--line); }
.r-chips{ display: flex; flex-wrap: wrap; gap: 9px; }
.r-chip{ display: inline-flex; align-items: center; gap: 8px; background: #FBF4EC; border: 1px solid rgba(215,100,28,0.25); border-radius: 999px; padding: 8px 14px 8px 11px; font-size: 13px; font-weight: 600; color: var(--navy); }
.r-chip svg{ width: 14px; height: 14px; color: var(--orange); }
.r-chip.none{ background: #F0F4F1; border-color: rgba(46,125,91,0.25); }
.r-chip.none svg{ color: var(--risk-low); }

.r-connect{
  background: var(--navy-deep); color: #fff; border-radius: 12px; padding: 26px 28px;
  margin: 30px 0 0; text-align: left; position: relative; overflow: hidden;
}
.r-connect h3{ color: #fff; font-family:'Archivo',sans-serif; font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1.1; }
.r-connect p{ color: rgba(255,255,255,0.8); font-size: 14.5px; line-height: 1.55; margin: 12px 0 20px; }
.r-connect .btn{ width: 100%; }
.r-sub-actions{ display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.r-sub-actions a, .r-retake{ display:inline-flex; align-items:center; gap:8px; font-size: 13.5px; font-weight: 600; color: var(--navy); cursor: pointer; background:none; border:none; }
.r-sub-actions svg{ width: 16px; height: 16px; color: var(--orange); }
.r-retake:hover, .r-sub-actions a:hover{ color: var(--orange); }
.r-disclaimer{ font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 560px){
  .assess-inner{ padding: 32px 26px 36px; }
  .q-statement{ min-height: 90px; }
  .a-meta{ gap: 16px; flex-direction: column; }
}
