/* ==========================================================================
   Vet Empreenda — Formulário das mentoradas
   Mesma identidade do link na bio: rosa / preto / branco, Cormorant Garamond
   nos títulos e Inter no texto. Tom acolhedor, mobile primeiro.
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --cream-soft: #FDF1F4;
  --pink-600: #D11756;
  --pink-700: #B01248;
  --pink-100: #FBDCE6;
  --black: #111111;
  --ink-900: #1A1614;
  --ink-700: #4A4340;
  --ink-500: #706A67;
  --error: #B3261E;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w: 600px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 20px 50px -28px rgba(17, 17, 17, 0.4);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream-soft);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; display: block; }
h1, h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; color: var(--black); }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 18px; }

/* ---------- topo + progresso ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 241, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pink-100);
}
.brand { display: block; text-align: center; padding: 14px 18px; font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--black); }
.brand span { color: var(--pink-600); font-style: italic; }
.progress { height: 3px; background: var(--pink-100); }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--pink-600), #FF8A3D); transition: width .4s ease; }

.page { flex: 1; padding: 28px 0 40px; }

/* ---------- boas-vindas ---------- */
.welcome { text-align: center; display: flex; flex-direction: column; align-items: center; animation: rise .5s ease; }
.avatar-ring {
  width: 116px; height: 116px; border-radius: 50%; padding: 3px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--pink-600), #FF8A3D 55%, var(--pink-600));
}
.avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--cream-soft); background: var(--pink-100); }
.welcome-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--pink-600); margin-bottom: 10px; }
.welcome h1 { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 16px; }
.welcome-text { color: var(--ink-700); max-width: 460px; margin-bottom: 12px; }
.welcome-meta { font-size: 13px; color: var(--ink-500); margin: 6px 0 22px; max-width: 420px; }

/* ---------- cartão do formulário ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 5vw, 38px);
}
.step { animation: rise .4s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step, .welcome { animation: none; } .progress-bar { transition: none; } }

.step-eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--pink-600); margin-bottom: 8px; }
.step h2 { font-size: clamp(1.7rem, 5.5vw, 2.2rem); margin-bottom: 10px; }
.step-note {
  color: var(--ink-700); font-style: italic; margin-bottom: 26px;
  padding-left: 14px; border-left: 3px solid var(--pink-100);
}

/* ---------- campos ---------- */
.field { margin-bottom: 24px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 15px; color: var(--black); margin-bottom: 6px; padding: 0; }
.field-hint { font-size: 13px; color: var(--ink-500); margin: -2px 0 8px; }
.req { color: var(--pink-600); }

input[type="text"], input[type="tel"], textarea {
  width: 100%;
  font: inherit; font-size: 16px; /* 16px evita zoom automático no iPhone */
  color: var(--ink-900);
  background: var(--cream-soft);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #A59D99; }
input:focus, textarea:focus { outline: none; background: var(--white); border-color: var(--pink-600); box-shadow: 0 0 0 4px rgba(209, 23, 86, .12); }
.is-invalid { border-color: var(--error) !important; background: #FFF6F5; }
.field-error { color: var(--error); font-size: 13px; font-weight: 600; margin-top: 6px; }

/* ---------- opções em "pílulas" ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; font-weight: 500 !important; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 10px 16px; border-radius: 999px;
  background: var(--cream-soft); border: 1.5px solid var(--pink-100);
  font-size: 14.5px; color: var(--ink-700); line-height: 1.3;
  transition: all .15s ease;
}
.chip:hover span { border-color: var(--pink-600); }
.chip input:checked + span { background: var(--pink-600); border-color: var(--pink-600); color: var(--white); font-weight: 600; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(209, 23, 86, .22); }

/* ---------- autorização ---------- */
.check-line { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 500 !important; font-size: 14.5px !important; color: var(--ink-700) !important; cursor: pointer; }
.check-line input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--pink-600); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 12px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-pink { background: var(--pink-600); color: var(--white); }
.btn-pink:hover { background: var(--pink-700); transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(209, 23, 86, .55); }
.btn-ghost { background: transparent; border-color: var(--pink-100); color: var(--ink-700); }
.btn-ghost:hover { border-color: var(--pink-600); color: var(--pink-600); }
.btn-large { padding: 16px 38px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.step-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--pink-100); }
.step[data-step="1"] .step-nav { justify-content: flex-end; }
.step[data-step="1"] [data-back] { display: none; }
.step-nav .btn-pink { flex: 1; max-width: 280px; }

/* ---------- estados: enviando / erro / obrigada ---------- */
.state { text-align: center; padding-top: 44px; padding-bottom: 44px; animation: rise .4s ease; }
.state h2 { font-size: 2rem; margin-bottom: 12px; }
.state p { color: var(--ink-700); max-width: 440px; margin: 0 auto 14px; }
.state .btn { margin-top: 8px; }
.spinner { width: 42px; height: 42px; margin: 0 auto 18px; border-radius: 50%; border: 4px solid var(--pink-100); border-top-color: var(--pink-600); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.thanks-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--pink-600); color: var(--white); display: flex; align-items: center; justify-content: center; }
.thanks-icon svg { width: 30px; height: 30px; }
.thanks-sign { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; color: var(--pink-600) !important; }

/* ---------- rodapé ---------- */
.site-footer { padding: 6px 18px 28px; text-align: center; font-size: 12px; color: var(--ink-500); }

@media (max-width: 420px) {
  .step-nav { flex-direction: column-reverse; }
  .step-nav .btn-pink { max-width: none; }
  .step-nav .btn { width: 100%; }
}
