/* ============================================================
   CARRARO — Avaliação (formulário multi-etapas)
   ============================================================ */

.form-page {
  min-height: 100svh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(110,13,31,0.45), transparent 55%),
    linear-gradient(180deg, var(--ink), var(--wine-deep) 260%);
}

/* ---------- Top bar ---------- */
.form-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.form-top .logo__name { font-size: 1.2rem; }
.form-top .logo__tag { font-size: 0.48rem; letter-spacing: 0.34em; }
.form-top__back { color: var(--cream-dim); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.form-top__back:hover { color: var(--cream); }

/* ---------- Progress ---------- */
.progress { height: 4px; background: rgba(244,241,236,0.08); width: 100%; }
.progress__bar { height: 100%; width: 0; background: var(--wine-bright); transition: width .4s ease; }

/* ---------- Shell ---------- */
.form-shell {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
}
.form-card { width: 100%; max-width: 640px; }

/* ---------- Step ---------- */
.step-screen { display: none; animation: fade .4s ease; }
.step-screen.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.step-count { font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; color: var(--wine-bright); margin-bottom: 14px; }
.step-q { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1; margin-bottom: 10px; }
.step-hint { color: var(--cream-dim); font-weight: 300; margin-bottom: 30px; }

/* ---------- Text inputs ---------- */
.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; letter-spacing: 0.02em; }
.input, .textarea, select.input {
  width: 100%; font-family: inherit; font-size: 1.05rem; color: var(--cream);
  background: rgba(244,241,236,0.04);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; transition: border-color .2s ease, background-color .2s ease;
}
.input::placeholder, .textarea::placeholder { color: rgba(201,195,186,0.5); }
.input:focus, .textarea:focus, select.input:focus {
  outline: none; border-color: var(--wine-bright); background: rgba(244,241,236,0.07);
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.5; }

/* ---------- Choice options (radio / checkbox) ---------- */
.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(244,241,236,0.03); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.option:hover { border-color: rgba(244,241,236,0.35); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__mark {
  flex: 0 0 22px; width: 22px; height: 22px;
  border: 2px solid var(--cream-dim); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, background-color .15s ease;
}
.option--check .option__mark { border-radius: 6px; }
.option__mark::after {
  content: ""; width: 10px; height: 10px; border-radius: inherit;
  background: var(--cream); transform: scale(0); transition: transform .15s ease;
}
.option input:checked ~ .option__mark { border-color: var(--wine-bright); background: var(--wine); }
.option input:checked ~ .option__mark::after { transform: scale(1); }
.option:has(input:checked) { border-color: var(--wine-bright); background: rgba(110,13,31,0.18); }
.option__label { font-size: 1.02rem; }

/* ---------- Validation ---------- */
.field-error { color: #ff8b9a; font-size: 0.85rem; margin-top: 8px; display: none; }
.field.has-error .input,
.field.has-error .textarea,
.field.has-error .options { border-color: #ff8b9a; }
.field.has-error .field-error { display: block; }

/* ---------- Nav buttons ---------- */
.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--cream-dim); }
.btn--ghost:hover { color: var(--cream); border-color: var(--cream-dim); transform: translateY(-2px); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ---------- Success screen ---------- */
.done { text-align: center; }
.done__icon {
  width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%;
  background: var(--wine); display: flex; align-items: center; justify-content: center;
}
.done__icon svg { width: 40px; height: 40px; stroke: var(--cream); }
.done__title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 14px; }
.done__txt { color: var(--cream-dim); font-weight: 300; margin-bottom: 32px; }
.done__hint { font-size: 0.85rem; color: var(--cream-dim); margin-top: 22px; }

@media (max-width: 640px) {
  .form-nav .btn { flex: 1; padding-left: 18px; padding-right: 18px; }
}
