/* Formulário de orçamento da Frutilla — uma pergunta por tela, mobile-first */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --vermelho: #E8173F;
  --vermelho-esc: #C41136;
  --grafite: #2E3A44;
  --rosa: #F7ECEC;
  --fundo: #FCF9F9;
  --borda: rgba(46, 58, 68, .13);
  --texto-fraco: #6B7A86;
  --raio: 14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  background: var(--fundo);
  color: var(--grafite);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  line-height: 1.45;
  overscroll-behavior-y: none;
}

/* ---------- progresso ---------- */
.progresso {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: rgba(46, 58, 68, .08); z-index: 50;
}
.progresso span {
  display: block; height: 100%; width: 0;
  background: var(--vermelho);
  transition: width .45s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- topo ---------- */
.topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 22px 0; max-width: 560px; width: 100%; margin: 0 auto;
}
.marca img { height: 26px; width: auto; display: block; }
.contador {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--vermelho);
  opacity: 0; transition: opacity .3s;
}
.contador.visivel { opacity: 1; }

/* ---------- palco ---------- */
.palco {
  flex: 1; width: 100%; max-width: 560px; margin: 0 auto;
  padding: 18px 22px max(28px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: flex-start;
}
/* margin-block:auto centraliza quando sobra espaço e NÃO corta o topo quando falta */
.tela { display: none; width: 100%; }
.tela.ativa { display: block; margin-block: auto; animation: entra .34s cubic-bezier(.2, .7, .3, 1); }
@keyframes entra {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.tela.saindo { animation: sai .22s ease forwards; }
@keyframes sai {
  to { opacity: 0; transform: translateY(-10px); }
}

/* ---------- intro ---------- */
.intro { text-align: center; padding: 6vh 0; }
.selo {
  font-size: 10.5px; font-weight: 800; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--vermelho); margin: 0 0 18px;
}
.intro h1 {
  font-size: clamp(30px, 8.6vw, 40px); line-height: 1.14;
  font-weight: 800; letter-spacing: -.9px; margin: 0 0 16px;
}
.intro .sub {
  font-size: 15.5px; color: var(--texto-fraco); max-width: 340px;
  margin: 0 auto 30px; line-height: 1.55;
}
.rodape-intro {
  font-size: 11.5px; color: var(--texto-fraco); margin: 18px 0 0; opacity: .85;
}

/* ---------- pergunta ---------- */
.kicker { display: none; }
.titulo {
  margin-top: 4px;
  font-size: clamp(22px, 6.1vw, 28px); line-height: 1.22;
  font-weight: 800; letter-spacing: -.5px; margin: 0 0 22px;
}
.titulo .obrig { color: var(--vermelho); }

/* opções */
.opcoes { display: flex; flex-direction: column; gap: 10px; }
.opcao {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; cursor: pointer;
  font-family: inherit; font-size: 15.5px; font-weight: 600; color: var(--grafite);
  background: #fff; border: 1.5px solid var(--borda);
  border-radius: var(--raio); padding: 17px 18px;
  transition: border-color .16s, background .16s, transform .1s;
  min-height: 56px;
}
.opcao:active { transform: scale(.985); }
.opcao .check { opacity: 0; color: var(--vermelho); font-weight: 900; transition: opacity .15s; }
.opcao.escolhida {
  border-color: var(--vermelho); background: var(--rosa);
  box-shadow: 0 0 0 3px rgba(232, 23, 63, .08);
}
.opcao.escolhida .check { opacity: 1; }

/* campos */
.campo {
  width: 100%; font-family: inherit; font-size: 17px; font-weight: 600;
  color: var(--grafite); background: #fff;
  border: 1.5px solid var(--borda); border-radius: var(--raio);
  padding: 17px 18px; min-height: 58px;
}
.campo:focus {
  outline: none; border-color: var(--vermelho);
  box-shadow: 0 0 0 4px rgba(232, 23, 63, .1);
}
.campo::placeholder { color: #A9B3BA; font-weight: 500; }
.linha-tel { display: flex; gap: 8px; align-items: stretch; }
.prefixo {
  display: flex; align-items: center; padding: 0 14px; background: #fff;
  border: 1.5px solid var(--borda); border-radius: var(--raio);
  font-weight: 700; font-size: 15px; color: var(--texto-fraco);
}
.dica { font-size: 12.5px; color: var(--texto-fraco); margin: 9px 2px 0; }
.aviso-data { font-size: 12.5px; color: var(--vermelho); margin: 9px 2px 0; font-weight: 600; }

/* navegação */
.navegacao { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.btn-principal {
  font-family: inherit; font-size: 15.5px; font-weight: 800; cursor: pointer;
  background: var(--vermelho); color: #fff; border: 0;
  border-radius: 999px; padding: 17px 26px; min-height: 56px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background .15s, transform .1s;
}
.btn-principal:active { transform: scale(.97); background: var(--vermelho-esc); }
.btn-principal:disabled { opacity: .55; cursor: wait; }
.btn-voltar {
  font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
  background: none; border: 0; color: var(--texto-fraco);
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 4px;
}
.pular {
  display: block; margin-top: 14px; background: none; border: 0;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--texto-fraco); text-decoration: underline; cursor: pointer; padding: 6px 0;
}
.erro {
  background: #FDECEF; color: #A1122C; font-size: 13px; font-weight: 600;
  padding: 10px 14px; border-radius: 10px; margin: 16px 0 0;
}

/* ---------- final ---------- */
.fim { text-align: center; padding: 4vh 0; }
.icone-fim {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--rosa); color: var(--vermelho);
  display: grid; place-items: center; font-size: 30px; font-weight: 900;
}
.fim h1 { font-size: clamp(26px, 7.4vw, 33px); font-weight: 800; letter-spacing: -.7px; margin: 0 0 12px; }
.fim .sub { font-size: 15px; color: var(--texto-fraco); margin: 0 auto 26px; max-width: 330px; }
.cartao-fim {
  background: #fff; border: 1.5px solid var(--borda); border-radius: 20px;
  padding: 24px 20px; text-align: left;
}
.rotulo {
  font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--texto-fraco); margin: 0 0 12px; text-align: center;
}
.btn-zap {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--vermelho); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 15.5px; border-radius: 999px;
  padding: 17px; min-height: 56px;
}
.previa {
  background: var(--rosa); border-radius: 12px; padding: 14px 16px;
  font-size: 13px; line-height: 1.55; color: var(--grafite);
  margin: 16px 0 0; white-space: pre-line;
}
.link-voltar-site {
  display: inline-block; margin-top: 26px; font-size: 13px;
  color: var(--texto-fraco); text-decoration: none;
}

@media (min-width: 700px) {
  .palco { padding-top: 20px; }
  .tela.ativa { max-width: 520px; margin: 0 auto; }
}
@media (max-height: 730px) {
  .palco { padding-top: 22px; }
  .opcoes { gap: 8px; }
  .opcao { padding: 14px 16px; min-height: 50px; font-size: 15px; }
  .titulo { margin-bottom: 16px; }
  .navegacao { margin-top: 18px; }
  .intro h1 { font-size: clamp(26px, 7.6vw, 34px); }
}
@media (prefers-reduced-motion: reduce) {
  .tela.ativa, .tela.saindo { animation: none; }
}
