/* =====================================================================
   Lifestyle Paraguay x Eleva - Funil de Captacao
   TEMA CLARO (creme)
   Cores:  marinho #13294A · dourado #B4945B · creme #FBF7F1
   Fontes: Newsreader (titulos) · Sora (textos e botoes)
   ===================================================================== */

:root {
  --navy: #13294A;
  --navy-2: #1B3A63;
  --navy-deep: #0E1E38;
  --gold: #B4945B;
  --gold-deep: #9A7C46;
  --gold-light: #C9AC74;
  --cream: #FCF8F3;
  --cream-2: #F4ECDE;
  --ink: #13294A;
  --muted: #64707F;
  --card: #FFFFFF;
  --border: rgba(19,41,74,0.14);
  --border-soft: rgba(19,41,74,0.09);
  --shadow: 0 16px 40px rgba(19,41,74,0.10);
  --raio: 16px;
  --largura: 560px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(180,148,91,0.16), transparent 62%),
    var(--cream);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  display: flex;
  justify-content: center;
  padding: 34px 20px 56px;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--largura); display: flex; flex-direction: column; }

/* ---------- Marca (Hub) ---------- */
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 30px; }
.brand__logo { width: 290px; max-width: 80%; }
.brand__logo img { width: 100%; height: auto; display: block; }
.brand__sub { font-size: 1rem; color: var(--muted); max-width: 44ch; }
.rule { width: 56px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 3px; }

/* Logo no topo de formularios / obrigado */
.brandbar { display: block; width: 230px; max-width: 66%; margin: 0 auto 22px; }
.brandbar img { width: 100%; height: auto; display: block; }

/* ---------- Botoes do Hub ---------- */
.hub-list { display: flex; flex-direction: column; gap: 14px; }
.hub-btn {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--raio);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.hub-btn:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 20px 46px rgba(19,41,74,0.14); }
.hub-btn__icon {
  flex: 0 0 46px; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 12px;
  background: rgba(180,148,91,0.14); color: var(--gold-deep);
}
.hub-btn__icon svg { width: 23px; height: 23px; }
.hub-btn__txt { display: flex; flex-direction: column; }
.hub-btn__title { font-weight: 600; font-size: 1.06rem; color: var(--navy); }
.hub-btn__desc { font-size: 0.86rem; color: var(--muted); }
.hub-btn__arrow { margin-left: auto; color: var(--gold); font-size: 1.1rem; }

/* ---------- Formularios ---------- */
.form-head { margin-bottom: 22px; text-align: center; }
.form-head .eyebrow { font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.form-head h1 { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 1.75rem; margin: 6px 0 8px; color: var(--navy); }
.form-head p { font-size: 0.96rem; color: var(--muted); max-width: 46ch; margin: 0 auto; }

.question { margin-bottom: 22px; }
.question__label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 10px; color: var(--navy); }
.question__label .num { color: var(--gold-deep); font-family: 'Newsreader', serif; margin-right: 6px; }

.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
  font-size: 0.95rem; color: var(--ink); user-select: none;
}
.option:hover { border-color: var(--gold); }
.option__dot { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(19,41,74,0.30); transition: border-color .18s ease; position: relative; }
.option.is-selected { border-color: var(--navy); background: rgba(19,41,74,0.05); box-shadow: inset 0 0 0 1px rgba(19,41,74,0.12); }
.option.is-selected .option__dot { border-color: var(--navy); }
.option.is-selected .option__dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--navy); }

/* ---------- Campos de contato ---------- */
.lead-fields { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 20px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.field input {
  font-family: 'Sora', sans-serif; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; transition: border-color .18s ease, box-shadow .18s ease; width: 100%;
}
.field input::placeholder { color: rgba(100,112,127,0.7); }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19,41,74,0.08); }
.field input.is-invalid { border-color: #C0553A; }
.field .field-error { font-size: 0.78rem; color: #C0553A; display: none; }
.field.show-error .field-error { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* ---------- Botao principal (CTA dourado) ---------- */
.cta {
  width: 100%; margin-top: 8px;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.02rem;
  color: var(--navy);
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border: none; border-radius: 14px; padding: 16px 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .15s ease, filter .2s ease, opacity .2s ease;
  box-shadow: 0 12px 28px rgba(180,148,91,0.34);
}
.cta:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.04); }
.cta:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; filter: grayscale(0.3); }
.cta svg { width: 20px; height: 20px; }

.form-hint { text-align: center; font-size: 0.82rem; color: var(--muted); margin-top: 12px; min-height: 1.2em; }

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 0.85rem; margin: 0 auto 16px; transition: color .2s ease; }
.back:hover { color: var(--gold-deep); }

/* ---------- Obrigado ---------- */
.thanks { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 2vh; }
.thanks__check { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: rgba(180,148,91,0.14); border: 2px solid var(--gold); }
.thanks__check svg { width: 42px; height: 42px; color: var(--gold-deep); }
.thanks h1 { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 2rem; color: var(--navy); }
.thanks p { color: var(--muted); max-width: 40ch; }
.spinner { width: 26px; height: 26px; border: 3px solid rgba(180,148,91,0.25); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.manual-link { margin-top: 6px; opacity: 0; transition: opacity .4s ease; }
.manual-link.show { opacity: 1; }
.manual-link a { color: var(--gold-deep); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(154,124,70,0.4); }
.notice { margin-top: 10px; font-size: 0.82rem; color: #8a5a20; background: rgba(180,148,91,0.10); border: 1px solid rgba(180,148,91,0.35); border-radius: 10px; padding: 10px 14px; max-width: 46ch; }

/* ---------- Rodape ---------- */
.footer { margin-top: 34px; text-align: center; font-size: 0.75rem; color: rgba(100,112,127,0.75); }

/* ---------- Responsivo ---------- */
@media (max-width: 420px) {
  body { padding: 24px 16px 44px; }
  .form-head h1 { font-size: 1.5rem; }
  .thanks h1 { font-size: 1.7rem; }
  .hub-btn { padding: 16px; }
  .brand__logo { width: 240px; }
}

/* ---------- Seletor de país no campo WhatsApp ---------- */
.phone-group { display: flex; align-items: stretch; gap: 8px; position: relative; }
.phone-group input { flex: 1 1 auto; min-width: 0; }
.country-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 0 12px; cursor: pointer; font-family: 'Sora', sans-serif;
  font-size: 0.95rem; color: var(--ink); flex: 0 0 auto; transition: border-color .18s ease;
}
.country-btn:hover { border-color: var(--gold); }
.country-btn .flag { width: 24px; height: 17px; border-radius: 3px; overflow: hidden; line-height: 0; display: inline-block; box-shadow: 0 0 0 1px rgba(19,41,74,.08); }
.country-btn .flag svg { display: block; width: 100%; height: 100%; }
.country-btn .ddi { font-weight: 600; }
.country-btn .caret { color: var(--muted); font-size: 0.7rem; margin-left: 1px; }

.country-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(19,41,74,.16); padding: 6px; min-width: 210px;
  list-style: none; margin: 0;
}
.country-menu[hidden] { display: none; }
.country-menu li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 0.93rem; color: var(--ink); }
.country-menu li:hover { background: rgba(19,41,74,.05); }
.country-menu li .flag { width: 24px; height: 17px; border-radius: 3px; overflow: hidden; line-height: 0; box-shadow: 0 0 0 1px rgba(19,41,74,.08); }
.country-menu li .flag svg { display: block; width: 100%; height: 100%; }
.country-menu li .nm { font-weight: 500; }
.country-menu li .ddi { margin-left: auto; color: var(--muted); font-weight: 600; }

/* ---------- Bandeirinhas do Hub (BR + PY) ---------- */
.hub-flags { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 2px; }
.hub-flags .flag { width: 34px; height: 24px; border-radius: 4px; overflow: hidden; line-height: 0; display: inline-block; box-shadow: 0 0 0 1px rgba(19,41,74,.10), 0 4px 10px rgba(19,41,74,.12); }
.hub-flags .flag svg { display: block; width: 100%; height: 100%; }
