.ehbo-fit-page{
  --fit-ink:#132033;
  --fit-muted:#5b697c;
  --fit-border:rgba(19,32,51,.12);
  --fit-accent:#e63946;
  --fit-ocean:#0f5168;
  --fit-strong:#18794e;
  --fit-warm:#9a5b00;
  --fit-pause:#445066;
  background:
    radial-gradient(720px 360px at 12% 2%, rgba(214,31,38,.14), transparent 72%),
    radial-gradient(820px 420px at 92% 4%, rgba(15,81,104,.15), transparent 70%),
    linear-gradient(180deg, #f8f6f1 0%, #f6f7fb 38%, #fbfbfd 100%);
}

.ehbo-fit{
  padding:28px 0 34px;
}

.ehbo-fit [hidden]{
  display:none !important;
}

.ehbo-fit-container{
  max-width:820px;
}

.ehbo-fit-shell{
  display:grid;
  gap:12px;
}

.ehbo-fit-shell__eyebrow{
  margin:0;
  color:var(--fit-ocean);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ehbo-fit-panel{
  display:grid;
  gap:18px;
  padding:22px;
  border:1px solid var(--fit-border);
  border-radius:24px;
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 42px rgba(19,32,51,.06);
}

.ehbo-fit-panel--quiz.is-start-only{
  min-height:260px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}

.ehbo-fit-form,
.ehbo-fit-stage,
.ehbo-fit-start,
.ehbo-fit-question,
.ehbo-fit-result{
  display:grid;
  gap:18px;
}

.ehbo-fit-start.is-leaving,
.ehbo-fit-question.is-entering{
  transition:opacity .22s ease, transform .22s ease;
}

.ehbo-fit-start.is-leaving{
  opacity:0;
  transform:translateY(-8px);
}

.ehbo-fit-question.is-entering{
  opacity:0;
  transform:translateY(12px);
  animation:ehboFitQuestionIn .24s ease forwards;
}

@keyframes ehboFitQuestionIn{
  from{
    opacity:0;
    transform:translateY(12px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.ehbo-fit-start{
  min-height:220px;
  place-items:center;
  align-content:center;
}

.ehbo-fit-start.is-gone{
  display:none !important;
}

.ehbo-fit-start__button{
  min-width:220px;
  min-height:56px;
  font-size:15px;
  letter-spacing:.06em;
}

.ehbo-fit-question__meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:var(--fit-muted);
  font-size:13px;
  font-weight:800;
}

.ehbo-fit-panel--quiz.is-start-only .ehbo-fit-form{
  min-height:260px;
}

.ehbo-fit-panel--quiz.is-start-only .ehbo-fit-stage{
  min-height:260px;
}

.ehbo-fit-question__meta span,
.ehbo-fit-question__meta p{
  margin:0;
}

.ehbo-fit-question__meta span{
  color:var(--fit-accent);
  letter-spacing:.06em;
  text-transform:uppercase;
}

.ehbo-fit-progress{
  height:10px;
  border-radius:999px;
  background:rgba(19,32,51,.08);
  overflow:hidden;
}

.ehbo-fit-progress__bar{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, var(--fit-accent), #ff8d4a 65%, #ffd96a);
  box-shadow:0 6px 16px rgba(214,31,38,.2);
  transition:width .2s ease;
}

.ehbo-fit-question h2,
.ehbo-fit-result h2{
  margin:0;
  font-family:"Plus Jakarta Sans", "Nunito Sans", sans-serif;
  font-size:clamp(26px, 4vw, 40px);
  line-height:1.06;
  letter-spacing:-.04em;
  color:var(--fit-ink);
}

.ehbo-fit-question__hint,
.ehbo-fit-result > p{
  margin:0;
  color:var(--fit-muted);
  font-size:15px;
  line-height:1.65;
}

.ehbo-fit-fields{
  display:grid;
  gap:14px;
}

.ehbo-fit-field{
  display:grid;
  gap:12px;
}

.ehbo-fit-likert,
.ehbo-fit-choice-list,
.ehbo-fit-multi-list{
  display:grid;
  gap:10px;
}

.ehbo-fit-likert__option,
.ehbo-fit-choice,
.ehbo-fit-multi{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(19,32,51,.1);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,250,252,.94));
  box-shadow:0 10px 24px rgba(19,32,51,.05);
  cursor:pointer;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.ehbo-fit-likert__option:hover,
.ehbo-fit-choice:hover,
.ehbo-fit-multi:hover{
  transform:translateY(-2px);
  border-color:rgba(214,31,38,.22);
  box-shadow:0 16px 34px rgba(19,32,51,.1);
}

.ehbo-fit-likert__option.is-selected,
.ehbo-fit-choice.is-selected,
.ehbo-fit-multi.is-selected{
  border-color:rgba(214,31,38,.28);
  background:linear-gradient(180deg, rgba(255,250,248,.98), rgba(255,255,255,.96));
  box-shadow:0 18px 40px rgba(214,31,38,.12);
}

.ehbo-fit-likert__marker{
  width:18px;
  height:18px;
  flex:0 0 18px;
  border-radius:50%;
  border:2px solid rgba(19,32,51,.18);
  background:#fff;
}

.ehbo-fit-likert__option.is-selected .ehbo-fit-likert__marker{
  border-color:var(--fit-accent);
  box-shadow:inset 0 0 0 4px var(--fit-accent);
}

.ehbo-fit-likert__option strong,
.ehbo-fit-choice strong,
.ehbo-fit-multi{
  color:var(--fit-ink);
  font-size:16px;
  line-height:1.45;
}

.ehbo-fit-multi{
  justify-content:flex-start;
}

.ehbo-fit-multi__marker{
  width:20px;
  height:20px;
  flex:0 0 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  border:2px solid rgba(19,32,51,.18);
  background:#fff;
  color:transparent;
  font-size:13px;
  font-weight:900;
}

.ehbo-fit-multi__marker::before{
  content:"";
}

.ehbo-fit-multi.is-selected .ehbo-fit-multi__marker{
  border-color:var(--fit-accent);
  background:var(--fit-accent);
  color:#fff;
}

.ehbo-fit-multi.is-selected .ehbo-fit-multi__marker::before{
  content:"\2713";
}

.ehbo-fit-multi__label{
  color:var(--fit-ink);
  font-size:16px;
  line-height:1.45;
}

.ehbo-fit-textarea,
.ehbo-fit-input{
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(19,32,51,.12);
  background:#fff;
  color:var(--fit-ink);
  font:inherit;
}

.ehbo-fit-textarea{
  min-height:160px;
  resize:vertical;
}

.ehbo-fit-textarea:focus,
.ehbo-fit-input:focus{
  outline:none;
  border-color:rgba(214,31,38,.35);
  box-shadow:0 0 0 4px rgba(214,31,38,.08);
}

.ehbo-fit-validation{
  margin:0;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(214,31,38,.18);
  background:rgba(214,31,38,.06);
  color:#9f1d22;
  font-size:13px;
  font-weight:800;
}

.ehbo-fit-controls{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.ehbo-fit-controls__actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

.ehbo-fit-result__badge{
  display:inline-flex;
  width:max-content;
  align-items:center;
  min-height:36px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ehbo-fit-result__badge.tone-strong{
  background:rgba(24,121,78,.1);
  color:var(--fit-strong);
}

.ehbo-fit-result__badge.tone-warm{
  background:rgba(154,91,0,.1);
  color:var(--fit-warm);
}

.ehbo-fit-result__badge.tone-explore{
  background:rgba(15,81,104,.1);
  color:var(--fit-ocean);
}

.ehbo-fit-result__badge.tone-pause{
  background:rgba(68,80,102,.1);
  color:var(--fit-pause);
}

.ehbo-fit-result__meta{
  display:grid;
  gap:16px;
  grid-template-columns:1fr;
}

@media (min-width:760px){
  .ehbo-fit-result__meta{
    grid-template-columns:220px 1fr;
    align-items:start;
  }
}

.ehbo-fit-result__score,
.ehbo-fit-result__traits{
  display:grid;
  gap:10px;
  padding:16px;
  border-radius:18px;
  background:rgba(246,247,251,.8);
  border:1px solid rgba(19,32,51,.08);
}

.ehbo-fit-result__score span,
.ehbo-fit-result__traits > span{
  color:var(--fit-muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ehbo-fit-result__score strong{
  font-family:"Plus Jakarta Sans", "Nunito Sans", sans-serif;
  font-size:42px;
  line-height:1;
  color:var(--fit-ink);
}

.ehbo-fit-analysis-grid{
  display:grid;
  gap:10px;
}

.ehbo-fit-analysis-card{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(19,32,51,.08);
}

.ehbo-fit-analysis-card strong{
  color:var(--fit-ink);
  font-size:14px;
}

.ehbo-fit-analysis-card span{
  color:var(--fit-muted);
  font-size:14px;
  font-weight:800;
}

@media (max-width:699px){
  .ehbo-fit{
    padding:20px 0 24px;
  }

  .ehbo-fit-panel{
    padding:18px;
    border-radius:22px;
  }

  .ehbo-fit-controls{
    flex-direction:column;
    align-items:stretch;
  }

  .ehbo-fit-controls__actions{
    width:100%;
  }

  .ehbo-fit-controls .btn,
  .ehbo-fit-controls__actions .btn{
    width:100%;
  }
}

@media (prefers-reduced-motion:reduce){
  .ehbo-fit-progress__bar,
  .ehbo-fit-likert__option,
  .ehbo-fit-choice,
  .ehbo-fit-multi{
    transition:none !important;
  }
}
