/* ==========================================================
   CANDIDATURA DA MENTORIA: estilos só desta página
   Mesma linha da página de vendas: preto, dourado, âmbar.
   ========================================================== */

/* Barra de progresso no topo */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: 4px;
  background: rgba(255, 255, 255, .06);
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold-grad);
  box-shadow: 0 0 12px rgba(217, 169, 90, .7);
  transition: width .4s ease;
}

/* ---------- Topo ---------- */
.form-hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(201, 138, 52, .22), transparent 70%),
    var(--black);
  padding-block: 40px 44px;
  border-bottom: 1px solid var(--line);
}
.form-hero__inner {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.form-hero__back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;              /* área de toque confortável */
  color: var(--text-muted);
  font-size: .85rem;
  text-decoration: none;
}
.form-hero__back:hover { color: var(--gold-light); }
.form-hero__mark { font-size: clamp(1.6rem, 7.4vw, 2.4rem); justify-items: center; }
.form-hero__title { font-size: clamp(1.6rem, 5.6vw, 2.4rem); }
.form-hero__title b { font-weight: 600; color: var(--gold); }
.form-hero__lead { color: var(--text-muted); max-width: 36em; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: .82rem;
  color: var(--text-muted);
}
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(217, 169, 90, .8);
}

/* ---------- Formulário ---------- */
.form-wrap { padding-block: 40px 120px; }
.form { display: grid; gap: 22px; }
.form[hidden] { display: none; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

.block {
  display: grid;
  gap: 22px;
  padding: 26px 20px 28px;
  background: var(--bg-1);
  border-top: 2px solid var(--gold);
}
.block__title {
  float: left;             /* faz a legenda ficar dentro do bloco */
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
}
.block__num {
  font-family: var(--font-mark);
  font-size: 1.5rem;
  color: var(--gold);
}

.field { display: grid; gap: 8px; }
.field-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 2fr; } }

.field > label,
.choice > legend {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.45;
}
.choice > legend { float: left; width: 100%; margin-bottom: 4px; }
.opcional { color: var(--text-muted); font-weight: 400; }
.hint { color: var(--text-muted); font-size: .82rem; margin-top: -4px; }

input[type="text"],
input[type="number"],
input[type="tel"],
textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid rgba(240, 220, 190, .18);
  border-radius: var(--radius);
  background: var(--bg-0);
  color: var(--text);
  font: inherit;
  font-size: 1rem;           /* 16px: evita o zoom automático no iPhone */
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 169, 90, .25);
}
input::placeholder { color: #6f665b; }

/* Opções em "cartão": a bolinha fica escondida visualmente,
   o cartão inteiro é clicável e fica dourado quando escolhido */
.choice { display: grid; gap: 10px; }
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 220, 190, .16);
  border-radius: var(--radius);
  background: var(--bg-0);
  font-size: .95rem;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .2s;
}
.opt:hover { border-color: rgba(217, 169, 90, .5); }
.opt input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid rgba(240, 220, 190, .4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.opt input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  transform: scale(0);
  transition: transform .2s;
}
.opt input:checked { border-color: var(--gold); }
.opt input:checked::before { transform: scale(1); }
.opt:has(input:checked) {
  border-color: var(--gold);
  background: rgba(217, 169, 90, .1);
  color: var(--gold-light);
}
.opt:has(input:focus-visible) { outline: 2px solid var(--gold-light); outline-offset: 2px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9rem;
  color: var(--text-muted);
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--gold);
}

/* ---------- Erros (só depois que a pessoa mexeu no campo) ---------- */
.erro {
  display: none;
  color: #ff9a7a;
  font-size: .84rem;
  font-weight: 600;
}
input:user-invalid,
textarea:user-invalid {
  border-color: #e0714f;
  box-shadow: 0 0 0 3px rgba(224, 113, 79, .18);
}
.field:has(:user-invalid) > .erro,
.choice:has(input:user-invalid) > .erro { display: block; }
.choice:has(input:user-invalid) .opt { border-color: rgba(224, 113, 79, .6); }
.block:has(.check input:user-invalid) .erro--check { display: block; }

/* ---------- Envio ---------- */
.form__submit { display: grid; gap: 12px; justify-items: center; text-align: center; }
.form__note { color: var(--text-muted); font-size: .85rem; }
.form__status { min-height: 1.4em; font-size: .9rem; font-weight: 600; color: var(--gold-light); }
.form__status.is-erro { color: #ff9a7a; }

/* Estado "carregando" do botão */
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn[aria-busy="true"] .btn__label::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Tela final ---------- */
.done {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 48px 22px;
  text-align: center;
  background: var(--bg-1);
  border-top: 2px solid var(--gold);
  color: var(--text-muted);
}
.done[hidden] { display: none; }
.done:focus { outline: none; }
.done__mark { font-size: clamp(1.5rem, 7vw, 2.2rem); justify-items: center; }
.done strong { color: var(--text); }
.done__back { color: var(--gold-light); font-size: .9rem; }

.form__aviso {
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: .8rem;
}
