/* ============================================================
   Form mentoriatpm — estilos
   v3 (2026-05-10) — paleta migrada para o design system Noely Alves.
   Tokens globais (cores, fontes, raios, sombras) em assets/tokens.css.
   Aqui: aliases pros nomes legados, pra não reescrever todo o CSS.
   ============================================================ */

:root {
  /* Cores — apontam para tokens globais */
  --bg:           var(--c-bg);
  --surface:      var(--c-surface);
  --text:         var(--c-ink);
  --text-soft:    var(--c-primary);
  --text-mute:    rgba(108, 116, 92, 0.65);

  /* CTA — marrom CTA do design system */
  --accent:       var(--c-cta);
  --accent-dark:  #6f4630;                    /* hover do CTA, mais escuro */
  --accent-soft:  rgba(139, 92, 60, 0.08);    /* fundo CTA suave */

  /* Estruturais */
  --border:       rgba(36, 42, 20, 0.08);
  --muted:        rgba(36, 42, 20, 0.04);
  --error:        #c44536;

  /* Raios — alias pros tokens */
  --radius:       var(--r-md);   /* 12px */
  --radius-lg:    var(--r-lg);   /* 20px */

  /* shadow-sm e shadow-md já vêm do tokens.css */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

@media (max-width: 640px) {
  .page { padding: 32px 18px 48px; }
}

/* HERO */
.hero { margin-bottom: 40px; }

.kicker {
  font-size: var(--fs-sm);
  font-weight: var(--w-semi);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--accent);
  margin: 0 0 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: var(--type-h1-weight);
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-line);
  letter-spacing: var(--type-h1-track);
  margin: 0 0 18px;
}
@media (max-width: 640px) {
  .hero h1 { font-size: var(--fs-2xl); }
}

.lede {
  font-size: var(--fs-lg);
  color: var(--text-soft);
  margin: 0;
  max-width: 580px;
}

/* PROGRESS */
.progress { margin-bottom: 32px; }

.progress-bar {
  height: 4px;
  background: var(--muted);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-label {
  font-size: var(--fs-sm);
  color: var(--text-mute);
  margin: 10px 0 0;
}

/* FORM */
form { margin: 0; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.step {
  display: none;
  border: none;
  padding: 0;
  margin: 0;
  animation: fadeIn 0.35s ease;
}

.step.active { display: block; }

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

.step > legend {
  font-family: var(--font-display);
  font-size: var(--type-h2-size);
  font-weight: var(--type-h2-weight);
  line-height: var(--type-h2-line);
  letter-spacing: var(--type-h2-track);
  margin-bottom: 24px;
  padding: 0;
  color: var(--text);
}

/* FIELDS */
.field {
  display: block;
  margin-bottom: 24px;
  border: none;
  padding: 0;
}

.field .label {
  display: block;
  font-size: var(--fs-base);
  font-weight: var(--w-medium);
  color: var(--text);
  margin-bottom: 8px;
}

.field .label small {
  font-weight: var(--w-regular);
  color: var(--text-mute);
  font-size: var(--fs-sm);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: var(--fs-base);
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea { resize: vertical; min-height: 90px; }

input.invalid,
textarea.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(196,69,54,0.10);
}

/* RADIO */
.radios > .label,
.checkboxes > .label {
  margin-bottom: 12px;
}

.radio,
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

@media (hover: hover) {
  .radio:hover,
  .check:hover { border-color: var(--accent); }
}

.radio.invalid,
.check.invalid {
  border-color: var(--error);
  background: rgba(196, 69, 54, 0.04);
}
.radio.invalid:has(input:checked),
.check.invalid:has(input:checked) {
  /* Se o user marcou, JS limpa via .change listener; mas como fallback visual sólido */
  border-color: var(--accent);
  background: var(--accent-soft);
}

.radio input,
.check input {
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
}

.radio span,
.check span {
  flex: 1;
  font-size: var(--fs-base);
  color: var(--text);
}

.radio:has(input:checked),
.check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.radio.card span strong { display: block; margin-bottom: 2px; }
.radio.card .radio-detail {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-sm);
  color: var(--text-soft);
}

/* INLINE FIELD ERROR */
.field-error {
  display: none;
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: var(--error);
  line-height: 1.4;
}

/* AVISO INLINE — rate limit, erro de envio, etc. */
.form-notice {
  display: none;
  padding: 16px 18px;
  border-radius: var(--radius);
  margin: 24px 0 0;
  border: 1px solid;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.form-notice__title {
  margin: 0 0 6px;
  font-weight: var(--w-semi);
  font-size: var(--fs-base);
  color: var(--text);
}
.form-notice__body {
  margin: 0;
  color: var(--text-soft);
}
.form-notice__body strong { color: var(--text); }
.form-notice__body a {
  color: var(--accent);
  font-weight: var(--w-semi);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.form-notice--warn {
  background: rgba(196, 144, 54, 0.08);
  border-color: rgba(196, 144, 54, 0.45);
}
.form-notice--ok {
  background: rgba(45, 126, 92, 0.08);
  border-color: rgba(45, 126, 92, 0.45);
}
.form-notice--error {
  background: rgba(196, 69, 54, 0.08);
  border-color: var(--error);
}

/* CONSENT */
.field.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--muted);
  border-radius: var(--radius);
  margin-top: 32px;
  margin-bottom: 24px;
}

.field.consent input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.field.consent span {
  font-size: var(--fs-sm);
  color: var(--text-soft);
  line-height: 1.5;
}

/* ACTIONS */
.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .actions { flex-direction: column-reverse; }
  .actions button { width: 100%; }
}

.btn-primary,
.btn-secondary,
a.btn-primary,
a.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: var(--w-medium);
  padding: 12px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 1px solid transparent;
  /* Botões nunca têm decoração de link (sublinhado, border-bottom dotted, etc.) */
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.btn-primary:hover, .btn-primary:visited, .btn-primary:active, .btn-primary:focus,
.btn-secondary:hover, .btn-secondary:visited, .btn-secondary:active, .btn-secondary:focus {
  text-decoration: none;
}

.btn-primary svg,
.btn-secondary svg {
  flex-shrink: 0;
  display: block;
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-primary:disabled {
  background: var(--text-mute);
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text);
  background: var(--muted);
}

/* FOOTER */
.page-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--text-mute);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.page-footer p { margin: 0; color: var(--text-mute); }
.page-footer a { color: var(--text-soft); }

/* Ícones sociais — mesma estética do bio.noelyalves.com.br */
.socials { display: flex; gap: 12px; align-items: center; justify-content: center; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--text);
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.12s;
  text-decoration: none;
  border-bottom: 0;
}
@media (hover: hover) {
  .social:hover { opacity: 1; transform: translateY(-1px); }
}
.social svg { width: 22px; height: 22px; fill: currentColor; display: block; }

/* THANK YOU PAGE */
.thanks-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 24px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  .thanks-card { padding: 28px 22px; }
}

.thanks-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: var(--w-semi);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.thanks-card h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--w-semi);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.thanks-card .trail-name {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--w-semi);
  color: var(--accent-dark);
  padding: 4px 14px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.thanks-card .trail-focus {
  font-size: var(--fs-base);
  color: var(--text-soft);
  margin: 8px 0 24px;
}

.thanks-card .trail-modules {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}

.thanks-card .trail-modules h3 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin: 0 0 12px;
  font-weight: var(--w-semi);
}

.thanks-card .trail-modules ol {
  margin: 0;
  padding-left: 20px;
}

.thanks-card .trail-modules li {
  margin-bottom: 6px;
  color: var(--text);
}

.thanks-card .next-steps {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.thanks-card .next-steps h3 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin: 0 0 10px;
  font-weight: var(--w-semi);
}

.thanks-card .next-steps p {
  color: var(--text-soft);
  margin: 0 0 16px;
}

