/* Tokens, tipografia e componentes tirados do site da Fernanda (mentoradas.diegocoelho.com/fernanda/grupo) */
:root{
  --indigo-deep: #080911;
  --indigo-dark: #0e1122;
  --indigo-night: #16192e;
  --amethyst-dark: #1a1426;
  --amethyst-light: #cfc2df;
  --gold: #d8b168;
  --gold-solar: #f5d996;
  --gold-light: #faeacc;
  --gold-dark: #a9833b;
  --gold-line: rgba(216,177,104,0.25);
  --alabaster: #f9f7f2;
  --body-copy: #f0ecf8;
  --text-dim: rgba(240,236,248,0.82);
  --text-faint: rgba(240,236,248,0.5);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif-display: "Cinzel", "Cormorant Garamond", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-md: 12px;
  --radius-pill: 9999px;
  --error: #e5848a;
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  background: var(--indigo-dark);
  color: var(--alabaster);
  font-family: var(--sans);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A rolagem fica só na página (html). Se o body também tivesse overflow, ele viraria uma segunda
   área rolável e faria aparecer uma barra extra quando uma animação passa da altura da tela. */
html{
  overflow-x: hidden;
  /* Barra de rolagem sempre presente: a tela não "dá um tranco" ao trocar de etapa no desktop */
  overflow-y: scroll;
}

body{
  min-height:100vh;
  position: relative;
}

/* ---------- FUNDO ---------- */
/* Capa: céu azul-noite com a nebulosa do hero. Nas perguntas o céu recua para o topo e dá lugar a um
   fundo claro e quente (alabastro e areia do site), como um amanhecer. */
.bg-layer{
  position: fixed;
  inset: 0;
  z-index: 0;
  will-change: opacity;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.bg-base{
  background:
    radial-gradient(ellipse 140% 55% at 50% 58%, rgba(245,217,150,0.42) 0%, rgba(245,217,150,0.16) 45%, rgba(245,217,150,0) 75%),
    radial-gradient(ellipse at 50% 100%, rgba(216,177,104,0.28) 0%, rgba(216,177,104,0) 62%),
    linear-gradient(180deg, #f9f7f2 0%, #f6f0e4 55%, #ede5d8 100%);
  opacity: 1;
}
body.intro-bg .bg-base{ opacity: 0; }

/* Céu: tela cheia na capa; nas perguntas a máscara desliza para cima e ele vira uma faixa que se dissolve devagar no claro */
.bg-sky{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--indigo-dark);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 25%, rgba(0,0,0,0.94) 28.5%, rgba(0,0,0,0.82) 32%, rgba(0,0,0,0.5) 36.5%, rgba(0,0,0,0.2) 41%, rgba(0,0,0,0.06) 44.5%, transparent 48%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 25%, rgba(0,0,0,0.94) 28.5%, rgba(0,0,0,0.82) 32%, rgba(0,0,0,0.5) 36.5%, rgba(0,0,0,0.2) 41%, rgba(0,0,0,0.06) 44.5%, transparent 48%);
  -webkit-mask-size: 100% 400%;
  mask-size: 100% 400%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0 0%;
  mask-position: 0 0%;
  transition: -webkit-mask-position 1.2s cubic-bezier(.4,0,.2,1), mask-position 1.2s cubic-bezier(.4,0,.2,1);
}
body:not(.intro-bg) .bg-sky{
  -webkit-mask-position: 0 30.67%;
  mask-position: 0 30.67%;
}
/* Imagem do hero do site (heo.jpg), com o mesmo tratamento: baixa opacidade sobre o azul-noite */
.sky-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.28;
  filter: saturate(1.2);
  transition: opacity 1.2s ease;
}
body:not(.intro-bg) .sky-img{ opacity: 0.55; }

/* Brilho ambiente estático (mesmo do bloco de relatos do site) */
.ambient-glow{
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  max-width: 100vw;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(216,177,104,0.12) 0%, rgba(143,123,167,0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#cover-screen, #wizard{
  position: relative;
  z-index: 1;
}

/* ---------- COVER ---------- */
#cover-screen{
  min-height: 100vh;
  overflow: hidden;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 56px 24px;
}
.cover-inner{
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-badge{
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: rgba(30,34,61,0.72);
  border: 1px solid rgba(216,177,104,0.4);
  border-radius: var(--radius-pill);
  margin-bottom: 26px;
}
.hero-badge span{
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.kicker{
  margin-bottom: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

.cover-inner h1{
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.hero-title-main{
  display: block;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  color: var(--alabaster);
}
.hero-title-accent{
  display: block;
  margin-top: 10px;
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  font-style: italic;
  color: var(--gold);
  line-height: 1.12;
}
.cover-inner .sub{
  max-width: 480px;
  margin: 24px auto 0;
  font-size: 1rem;
  color: var(--body-copy);
}
.cover-meta{
  margin-top: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}
.cover-inner .btn-wrapper{ margin-top: 30px; }

/* ---------- BOTÕES ---------- */
.btn-primary, .btn-ghost{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 11px 26px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  transition: transform .38s cubic-bezier(0.16,1,0.3,1), box-shadow .38s cubic-bezier(0.16,1,0.3,1), background .38s ease, color .38s ease, border-color .38s ease;
}
/* Botão dourado solar do site (btn-premium) */
.btn-primary{
  background: linear-gradient(135deg, #f5d996 0%, #d8b168 50%, #be9242 100%);
  color: #0b0c16;
  border: 1px solid rgba(255,245,220,0.7);
  box-shadow:
    0 0 25px rgba(216,177,104,0.45),
    0 8px 30px rgba(11,12,22,0.35),
    inset 0 1px 2px rgba(255,255,255,0.8),
    inset 0 -1px 2px rgba(0,0,0,0.15);
}
/* Feixe de luz que atravessa o botão */
.btn-primary::before{
  content:"";
  position: absolute;
  top: 0; left: -130%;
  width: 70%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  transform: skewX(-24deg);
  animation: lightSweep 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes lightSweep{
  0%{ left: -130%; }
  35%{ left: 140%; }
  100%{ left: 140%; }
}
.btn-primary:hover{
  background: linear-gradient(135deg, #fce9bc 0%, #e0bc75 50%, #c89c4b 100%);
  color: #05060a;
  box-shadow:
    0 0 40px rgba(216,177,104,0.75),
    0 12px 38px rgba(216,177,104,0.35),
    inset 0 1px 3px rgba(255,255,255,0.95);
  transform: translateY(-3px) scale(1.02);
}
.btn-primary:active{ transform: scale(0.97); }
.btn-primary:disabled{ opacity:0.5; cursor:not-allowed; transform:none; }
.btn-primary:disabled:hover{
  background: linear-gradient(135deg, #f5d996 0%, #d8b168 50%, #be9242 100%);
  color: #0b0c16;
  box-shadow: 0 0 25px rgba(216,177,104,0.45), 0 8px 30px rgba(11,12,22,0.35), inset 0 1px 2px rgba(255,255,255,0.8), inset 0 -1px 2px rgba(0,0,0,0.15);
}
.btn-primary:disabled::before{ animation: none; opacity: 0; }

/* Com o círculo da seta, ele fica concentrico à pílula: a folga à direita é igual à de cima e de baixo */
.btn-primary:has(.btn-icon-circle){ padding: 11px 11px 11px 24px; }
.btn-icon-circle{
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(11,12,22,0.14);
  display: grid;
  place-items: center;
  margin-left: 2px;
  transition: transform .22s ease, background .22s ease;
}
.btn-primary:hover .btn-icon-circle{ transform: translateX(4px); background: rgba(11,12,22,0.3); }
.btn-arrow{
  display: block;
  width: 10px;
  height: 10px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
  position: relative;
}
.btn-arrow::after{
  content:"";
  position: absolute;
  right: 0; top: 50%;
  width: 5px; height: 5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.btn-ghost{
  color: var(--alabaster);
  background: transparent;
  border: 1px solid rgba(249,247,242,0.35);
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold-solar); transform: translateY(-2px); }
.btn-ghost:active{ transform: scale(0.97); }

/* ---------- WIZARD SHELL ---------- */
#wizard{ display:none; }

.progress-shell{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 6px;
  z-index: 50;
}
.progress-track{
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(249,247,242,0.16);
}
.progress-fill{
  position: absolute;
  top: 0; left: 0;
  height: 6px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-solar) 100%);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(216,177,104,0.6);
  transition: width .6s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}
.question-marker{
  position: absolute;
  top: 50%;
  width: 2px;
  height: 2.7px;
  transform: translateY(-50%);
  background: rgba(249,247,242,0.28);
  opacity: 0.7;
  transition: background .25s ease, opacity .25s ease;
}
.question-marker.active{
  background: var(--gold);
  opacity: 1;
}
.block-marker{
  position: absolute;
  top: 0;
  width: 4px;
  height: 6px;
  background: rgba(249,247,242,0.55);
  transform-origin: center center;
  transition: background .3s ease;
}
.block-marker.active{
  background: var(--gold-light);
  box-shadow: 0 0 8px rgba(216,177,104,0.9), 0 0 14px rgba(216,177,104,0.55);
}
.block-marker.pulse{ animation: pulseMarker .6s ease; }
@keyframes pulseMarker{
  0%{ transform: scale(1); }
  50%{ transform: scale(2.5); }
  100%{ transform: scale(1); }
}

/* Cabeçalho da caixa: bloco à esquerda (estilo "eyebrow" do site), contador à direita */
.panel-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--gold-line);
}
.panel-block{
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.panel-count{
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.steps-viewport{
  max-width: 720px;
  margin: 0 auto;
  padding: 46px 24px;
  min-height: 100vh;
  display:flex;
  align-items:center;
}

#stepsContainer{ width: 100%; }

.step{
  display:none;
  width:100%;
}
.step.active{ display:block; }

/* Caixa no estilo dos cards escuros do site */
.panel{
  background: rgba(22,25,46,0.72);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  padding: 30px clamp(20px, 4vw, 44px) 34px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.q label{
  display:block;
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.9vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--alabaster);
}
/* o número da pergunta já aparece no cabeçalho da caixa ("3 / 7"): some com ele e com a quebra de linha que vem depois */
.q label .qnum,
.q label br{ display: none; }
.q label .intro{
  display: block;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-dim);
}
.q label .optional{
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0;
  color: var(--text-faint);
}

textarea,
input[type="text"],
input[type="email"]{
  width: 100%;
  background: rgba(8,9,17,0.45);
  border: 1px solid rgba(216,177,104,0.3);
  border-radius: var(--radius-md);
  color: var(--alabaster);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  padding: 14px 16px;
  transition: border-color .22s ease, box-shadow .22s ease;
}
textarea{
  line-height: 1.7;
  resize: none;
  min-height: 96px;
}
textarea::placeholder,
input::placeholder{ color: var(--text-faint); font-style: normal; }
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus{
  outline:none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216,177,104,0.16);
}

/* Escolhas */
.choice-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 0;
}
.choice-grid.single{ grid-template-columns: 1fr; }
.choice-card{
  display: flex;
  align-items: center;
  min-height: 50px;
  text-align: left;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-line);
  background: rgba(8,9,17,0.35);
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color .22s ease, background .22s ease, transform .22s ease, color .22s ease, box-shadow .22s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
.choice-card:hover{ border-color: var(--gold); transform: translateY(-2px); }
.choice-card:active{ transform: scale(0.985); }
.choice-card.selected{
  border-color: var(--gold);
  background: rgba(216,177,104,0.12);
  color: var(--alabaster);
  box-shadow: 0 0 0 1px var(--gold) inset, 0 0 24px rgba(216,177,104,0.22);
}

/* Erros */
textarea.invalid, input.invalid{
  border-color: var(--error);
  animation: shakeField .35s ease;
}
.q.has-invalid .choice-card{ border-color: rgba(229,132,138,0.6); }
.q.has-invalid .choice-card.selected{ border-color: var(--gold); }
@keyframes shakeField{
  0%, 100%{ transform: translateX(0); }
  25%{ transform: translateX(-5px); }
  75%{ transform: translateX(5px); }
}
.field-error{
  display:none;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--error);
  font-weight: 500;
}
.field-error.show{ display:block; animation: fadeIn .25s ease; }

.submit-status{
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 1.2em;
  color: var(--text-dim);
}
.submit-status.success{ color: var(--gold-solar); }
.submit-status.error{ color: var(--error); }

/* ---------- OVERLAY DE ENVIO ---------- */
.submit-overlay{
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8,9,17,0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.submit-overlay.active{
  opacity: 1;
  pointer-events: all;
}
.submit-icon{ position: relative; width: 52px; height: 52px; }
.submit-spinner{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(249,247,242,0.14);
  border-top-color: var(--gold);
  animation: submitSpin .85s linear infinite;
  transition: opacity .25s ease, transform .25s ease;
}
@keyframes submitSpin{ to{ transform: rotate(360deg); } }
.submit-overlay-text{
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 500;
}
.submit-overlay-text.success{ color: var(--gold-solar); }
.submit-overlay-text.error{ color: var(--error); }

/* o spinner vira um check animado quando conclui */
.submit-overlay.done .submit-spinner{ opacity: 0; transform: scale(0.6); animation: none; }
.submit-check{
  position: absolute;
  inset: -6px;
  width: 64px;
  height: 64px;
  overflow: visible;
}
.submit-check-circle, .submit-check-mark{
  fill: none;
  stroke: var(--gold-solar);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
}
.submit-check-mark{ stroke-dasharray: 40; stroke-dashoffset: 40; }
.submit-overlay.done .submit-check-circle{ animation: drawLine .6s ease .1s forwards; }
.submit-overlay.done .submit-check-mark{ animation: drawLine .4s ease .55s forwards; }
@keyframes drawLine{ to{ stroke-dashoffset: 0; } }

/* ---------- STEP NAV ---------- */
.step-nav{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-top: 26px;
}

/* Aviso rápido (ex.: bloco concluído), no formato da "pílula" do hero do site */
.toast{
  position: fixed;
  left: 50%;
  top: 26px;
  z-index: 150;
  max-width: calc(100vw - 32px);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: rgba(30,34,61,0.94);
  border: 1px solid rgba(216,177,104,0.4);
  color: var(--gold-light);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, -14px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
.toast.show{
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
  transition: opacity .25s ease, transform .25s ease, visibility 0s;
}

/* ---------- OBRIGADO ---------- */
.thank-you-note{
  max-width: 480px;
  margin: 24px auto 0;
  font-size: 1rem;
  color: var(--body-copy);
}
.thank-sign{
  margin-top: 26px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--gold);
}

/* ---------- TRANSIÇÕES ---------- */

/* Troca de etapa: a atual sai e a nova entra pelo lado, conforme avança ou volta */
/* A caixa inteira anima: a atual sai com fade + leve deslize e a nova entra pelo lado, conforme avança ou volta. */
.step.from-right{ animation: slideInRight .42s cubic-bezier(.2,.7,.2,1) both; }
.step.from-left{ animation: slideInLeft .42s cubic-bezier(.2,.7,.2,1) both; }
.step.leaving{
  opacity: 0;
  transform: translateX(var(--out, -14px));
  pointer-events: none;
  animation: none;
  transition: opacity .15s ease, transform .15s ease;
}
@keyframes slideInRight{ from{ opacity: 0; transform: translateX(22px); } to{ opacity: 1; transform: none; } }
@keyframes slideInLeft{ from{ opacity: 0; transform: translateX(-22px); } to{ opacity: 1; transform: none; } }

/* Capa e formulário: transição entre os dois */
#cover-screen{ transition: opacity .3s ease, transform .3s ease; }
#cover-screen.leaving{ opacity: 0; transform: translateY(-12px); pointer-events: none; }
/* Só opacidade: um deslize para baixo aumentaria a altura da página por um instante e faria a barra piscar */
#cover-screen.entering{ animation: fadeIn .5s ease both; }
#wizard{ transition: opacity .25s ease; }
#wizard.leaving{ opacity: 0; pointer-events: none; }
@keyframes fadeIn{ from{ opacity: 0; } to{ opacity: 1; } }

/* Entrada escalonada dos elementos da capa e da página de obrigado */
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(14px); }
  to{ opacity:1; transform: translateY(0); }
}
.cover-inner > *{ animation: fadeUp .7s ease backwards; }
.cover-inner > :nth-child(1){ animation-delay: .05s; }
.cover-inner > :nth-child(2){ animation-delay: .15s; }
.cover-inner > :nth-child(3){ animation-delay: .25s; }
.cover-inner > :nth-child(4){ animation-delay: .35s; }
.cover-inner > :nth-child(5){ animation-delay: .45s; }
.cover-inner > :nth-child(6){ animation-delay: .55s; }
.cover-inner > :nth-child(7){ animation-delay: .65s; }
.choice-card{ animation: fadeUp .4s ease backwards; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }

/* Emblema da VYDA: as linhas se desenham, a luz percorre as ondas, as esferas orbitam em pulso e as estrelas cintilam */
.vyda-mark-wrap{
  width: clamp(112px, 33vw, 150px);
  margin: 0 auto 18px;
}
.vyda-mark{
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: saturate(.85) drop-shadow(0 0 5px rgba(245,217,150,0.25));
  animation: vmBreath 8s ease-in-out 4s infinite;
}
.vm-line{
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: vmDraw 2.2s cubic-bezier(.4,0,.2,1) var(--d, 0s) forwards;
}
.vm-flow{
  stroke: #fff4c8;
  stroke-dasharray: 0.12 1;
  stroke-dashoffset: 0.12;
  opacity: 0;
  animation: vmFlow 6s linear var(--f, 4s) infinite;
}
.vm-dots{
  stroke: #e9b94f;
  opacity: 0;
  animation: vmFade 1.6s ease 1.6s forwards, vmShimmer 6s ease-in-out 3.4s infinite;
}
.vm-halo{
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: vmFade 2s ease 1s forwards, vmHalo 7s ease-in-out 3s infinite;
}
.vm-node{
  fill: url(#vmSphere);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: vmNodeIn .7s ease-out var(--d, 2s) forwards, vmPulse 5.4s ease-in-out var(--p, 4s) infinite;
}
.vm-pearl{
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: vmNodeIn 1s ease-out 1.6s forwards, vmPulse 6s ease-in-out 3.2s infinite;
}
.vm-star{
  opacity: 0;
  animation: vmFade .9s ease var(--d, 2.4s) forwards, vmTwinkle 5s ease-in-out calc(var(--d, 2.4s) + 1.2s) infinite;
}
.vm-spark{
  opacity: 0;
  animation: vmSpark 4.2s ease-in-out var(--d, 3.4s) infinite;
}
@keyframes vmDraw{ to{ stroke-dashoffset: 0; } }
@keyframes vmFade{ to{ opacity: 1; } }
@keyframes vmFlow{
  0%{ stroke-dashoffset: 0.12; opacity: 0; }
  8%{ opacity: 0.95; }
  92%{ opacity: 0.95; }
  100%{ stroke-dashoffset: -1; opacity: 0; }
}
@keyframes vmNodeIn{
  from{ opacity: 0; transform: scale(0); }
  to{ opacity: 1; transform: scale(1); }
}
@keyframes vmPulse{
  0%, 100%{ opacity: 1; transform: scale(1); }
  50%{ opacity: 1; transform: scale(1.08); }
}
@keyframes vmShimmer{
  0%, 100%{ opacity: 1; }
  50%{ opacity: .5; }
}
@keyframes vmHalo{
  0%, 100%{ opacity: .35; transform: scale(.96); }
  50%{ opacity: .8; transform: scale(1.04); }
}
@keyframes vmTwinkle{
  0%, 100%{ opacity: 1; }
  50%{ opacity: .6; }
}
@keyframes vmSpark{
  0%, 100%{ opacity: 0; }
  18%{ opacity: 0.95; }
  40%{ opacity: 0; }
}
@keyframes vmBreath{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.03); }
}

@media (max-width: 640px){
  #cover-screen{ padding: 44px 20px; }
  .steps-viewport{ padding: 34px 16px; }
  .panel{ padding: 24px 18px 26px; }
  .panel-head{ padding-bottom: 12px; margin-bottom: 18px; }
  .q label{ margin-bottom: 18px; }
  .step-nav{ margin-top: 22px; flex-wrap: wrap; }
  .choice-card{ min-height: 48px; }
  .choice-grid{ grid-template-columns: 1fr; }
  .btn-primary, .btn-ghost{ padding: 11px 22px; }
  .btn-primary:has(.btn-icon-circle){ padding: 11px 11px 11px 22px; }
  .toast{ top: 22px; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn-primary::before{ display: none; }
}

/* ---------- PERGUNTAS NO TEMA CLARO ---------- */
/* Tons claros e quentes do site: alabastro e areia (#fdfbf7 / #f6f0e4), tinta marrom-escura e dourado escuro */
:root{
  --paper: #fdfbf7;
  --paper-soft: #f6f0e4;
  --paper-line: rgba(169,131,59,0.24);
  --ink: #2b261d;
  --ink-soft: #231f17;
  --muted: #6e6758;
  --gold-ink: #755819;
}

#wizard{ color: var(--ink); }

/* Caixa: card claro, flutuando sobre o céu que se dissolve */
#wizard .panel{
  background: rgba(253,251,247,0.82);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 14px 44px rgba(8,10,24,0.22), inset 0 1px 0 rgba(255,255,255,0.7);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#wizard .panel-head{ border-bottom-color: var(--paper-line); }
#wizard .panel-block,
#wizard .panel-count{ color: var(--gold-ink); }
#wizard .q label{ color: var(--ink); }
#wizard .q label .intro,
#wizard .q label .optional{ color: var(--muted); }

/* Campos */
#wizard textarea,
#wizard input[type="text"],
#wizard input[type="email"]{
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(169,131,59,0.35);
  color: var(--ink);
}
#wizard textarea::placeholder,
#wizard input::placeholder{ color: rgba(110,103,88,0.7); }
#wizard textarea:focus,
#wizard input[type="text"]:focus,
#wizard input[type="email"]:focus{
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(216,177,104,0.28);
}

/* Opções de resposta */
#wizard .choice-card{
  background: rgba(246,240,228,0.55);
  border: 1px solid var(--paper-line);
  color: var(--ink-soft);
}
#wizard .choice-card:hover{
  border-color: var(--gold-dark);
  box-shadow: 0 8px 22px rgba(216,177,104,0.22);
}
#wizard .choice-card.selected{
  border-color: var(--gold-dark);
  background: rgba(216,177,104,0.2);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--gold-dark) inset, 0 8px 22px rgba(216,177,104,0.25);
}

/* Erros e status */
#wizard textarea.invalid,
#wizard input.invalid{ border-color: #b3404a; }
#wizard .q.has-invalid .choice-card{ border-color: rgba(179,64,74,0.55); }
#wizard .q.has-invalid .choice-card.selected{ border-color: var(--gold-dark); }
#wizard .field-error{ color: #b3404a; }
#wizard .submit-status{ color: var(--muted); }
#wizard .submit-status.success{ color: var(--gold-ink); }
#wizard .submit-status.error{ color: #b3404a; }

/* Botões: o dourado do site, com brilho mais leve sobre fundo claro */
#wizard .btn-primary{
  box-shadow: 0 8px 22px rgba(169,131,59,0.35), inset 0 1px 2px rgba(255,255,255,0.8), inset 0 -1px 2px rgba(0,0,0,0.12);
}
#wizard .btn-primary:hover{
  box-shadow: 0 12px 28px rgba(169,131,59,0.45), 0 0 24px rgba(216,177,104,0.5), inset 0 1px 3px rgba(255,255,255,0.95);
}
#wizard .btn-primary:disabled:hover{
  box-shadow: 0 8px 22px rgba(169,131,59,0.35), inset 0 1px 2px rgba(255,255,255,0.8), inset 0 -1px 2px rgba(0,0,0,0.12);
}
#wizard .btn-ghost{
  color: var(--ink);
  border-color: rgba(43,38,29,0.3);
}
#wizard .btn-ghost:hover{ border-color: var(--gold-dark); color: var(--gold-ink); }

/* Aviso de bloco concluído e tela de envio */
#wizard .toast{
  background: var(--paper);
  border-color: rgba(169,131,59,0.55);
  color: var(--gold-ink);
  box-shadow: 0 10px 28px rgba(43,38,29,0.25);
}
#wizard .submit-overlay{ background: rgba(249,247,242,0.97); }
#wizard .submit-spinner{ border-color: rgba(169,131,59,0.18); border-top-color: var(--gold-dark); }
#wizard .submit-overlay-text{ color: var(--ink); }
#wizard .submit-overlay-text.success{ color: var(--gold-ink); }
#wizard .submit-overlay-text.error{ color: #b3404a; }
#wizard .submit-check-circle,
#wizard .submit-check-mark{ stroke: var(--gold-dark); }

/* ---------- WHATSAPP (intl-tel-input, igual ao form da Gabi) ---------- */
.iti{ width: 100%; display: block; }
#wizard input[type="tel"]{
  width: 100%;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(169,131,59,0.35);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  padding: 14px 16px;
  transition: border-color .22s ease, box-shadow .22s ease;
}
#wizard input[type="tel"]::placeholder{ color: rgba(110,103,88,0.7); }
#wizard input[type="tel"]:focus{
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(216,177,104,0.28);
}
#wizard .q.has-invalid .iti input{ border-color: #b3404a; }
.iti__flag-container{ border-top-left-radius: var(--radius-md); border-bottom-left-radius: var(--radius-md); }
.iti--separate-dial-code .iti__selected-flag{
  background: rgba(43,38,29,0.05);
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}
.iti--separate-dial-code .iti__selected-flag:hover,
.iti--separate-dial-code .iti__selected-flag:focus{ background: rgba(216,177,104,0.22); }
.iti__selected-dial-code{ color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: 15px; }
.iti__arrow{ border-top-color: var(--muted); }
.iti__arrow--up{ border-bottom-color: var(--muted); }
.iti__country-list{
  background: #fffdf8;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(43,38,29,0.28);
  font-family: var(--sans);
  color: var(--ink);
  width: 320px;
  max-width: calc(100vw - 56px);
  overflow-x: hidden;
  white-space: normal;
}
.iti__country{ font-size: 14px; padding: 9px 12px; }
.iti__country-name{ margin-right: 6px; overflow-wrap: anywhere; }
.iti__country.iti__highlight{ background: rgba(216,177,104,0.22); }
.iti__country .iti__dial-code{ color: var(--muted); }
.iti__divider{ border-bottom: 1px solid var(--paper-line); }
