
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

:root {
  --orange: #f5821f;
  --orange-dark: #d96c0c;
  --orange-light: #ff9d3f;
  --orange-soft: #fff4e8;
  --orange-glow: rgba(245, 130, 31, 0.35);
  --white: #ffffff;
  --ink: #2b1a0c;
  --ink-soft: #6b5a48;
  --line: rgba(245, 130, 31, 0.22);

  --font-body: 'Rubik', sans-serif;
  --font-head: 'Poppins', sans-serif;

  --radius: 18px;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { font-size: 20px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: linear-gradient(180deg, #ffe9d2 0%, #ffd6a8 45%, #ffbf7d 100%);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff8f0 0%, #ffe3c2 50%, #ffca8c 100%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.preloader__logo {
  width: 180px;
  max-width: 60vw;
  height: auto;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%      { transform: scale(1.06); opacity: 0.75; }
}
.preloader__spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 4px solid rgba(245, 130, 31, 0.25);
  border-top-color: var(--orange);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.preloader__text {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--orange-dark);
}
@media (prefers-reduced-motion: reduce) {
  .preloader__logo, .preloader__spinner { animation: none; }
}

.hero-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;

  background: linear-gradient(180deg, #fff8f0 0%, #ffe3c2 35%, #ffca8c 70%, #ffb366 100%);
}

.parallax-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-position: bottom left;
  background-repeat: repeat-x;
  animation-name: parallax_fg;
  animation-timing-function: linear;
  animation-iteration-count: infinite;

  filter: sepia(0.85) saturate(3.2) hue-rotate(-18deg) brightness(1.02);
}

.bike-1, .bike-2 { animation-name: parallax_bike; }

.layer-6 { background-image: url(../assets/images/parallax/6.png); animation-duration: 120s; background-size: auto 222px; z-index: 1; }
.layer-5 { background-image: url(../assets/images/parallax/5.png); animation-duration: 95s;  background-size: auto 311px; z-index: 1; }
.layer-4 { background-image: url(../assets/images/parallax/4.png); animation-duration: 75s;  background-size: auto 468px; z-index: 1; }
.bike-1  { background-image: url(../assets/images/parallax/bike.png); animation-duration: 10s; background-size: auto 75px; z-index: 2; bottom: 100px; background-repeat: no-repeat; }
.bike-2  { background-image: url(../assets/images/parallax/bike.png); animation-duration: 15s; background-size: auto 75px; z-index: 2; bottom: 100px; background-repeat: no-repeat; }
.layer-3 { background-image: url(../assets/images/parallax/3.png); animation-duration: 55s;  background-size: auto 158px; z-index: 3; }
.layer-2 { background-image: url(../assets/images/parallax/2.png); animation-duration: 30s;  background-size: auto 145px; z-index: 4; }
.layer-1 { background-image: url(../assets/images/parallax/1.png); animation-duration: 20s;  background-size: auto 136px; z-index: 5; }

@keyframes parallax_fg {
  0%   { background-position: 2765px 100%; }
  100% { background-position: 550px 100%; }
}

@keyframes parallax_bike {
  0%   { background-position: -300px 100%; }
  100% { background-position: 2000px 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer { animation: none; }
}

.form-page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.form-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 157, 63, 0.10) 0%, rgba(255, 255, 255, 0) 55%),
    rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 100%;
  background: linear-gradient(180deg, var(--orange-light), var(--orange), var(--orange-dark));
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 26px 14px 30px;
}
.card-head__brand { display: inline-flex; align-items: center; }
.card-head__logo { height: 34px; width: auto; }

.card-head__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: statusPulse 1.8s ease-out infinite;
}
@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.pill {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
}
.pill b { color: var(--orange); font-size: 0.85rem; }

.progress {
  height: 4px;
  background: var(--orange-soft);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  box-shadow: 0 0 12px var(--orange-glow);
  transition: width 0.55s var(--transition);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 30px 18px;
  border-top: 1px solid var(--line);
  background: linear-gradient(to top, var(--orange-soft), rgba(255, 255, 255, 0));
}
.card-foot__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.card-foot__hint .ico { width: 14px; height: 14px; color: var(--orange); flex-shrink: 0; }
.card-foot kbd {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 7px;
}
@media (max-width: 540px) {
  .card-foot__hint span,
  .card-foot .status { font-size: 0.72rem; }
  .card-head__meta .status { display: none; }
}

.form-card__body {
  position: relative;
  padding: 34px 40px 36px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step { display: none; animation: stepIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.step.is-active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.step__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 14px;
}
.step__eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.step__question {
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 4.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.step__question .req {
  color: var(--orange);
  font-weight: 800;
}

.step__hint {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orange-dark);
  background: var(--orange-soft);
  padding: 7px 14px;
  border-radius: 999px;
}
.step__hint::before {
  content: '✓';
  font-weight: 800;
}

.intro {
  text-align: center;
  padding: 6px 0 4px;
}
.intro__badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.intro__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.intro__title span { color: var(--orange); }
.intro__sub {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.field {
  position: relative;
  margin-top: 28px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
  padding: 12px 2px;
  border: none;
  border-bottom: 2px solid var(--line);
  background: transparent;
  outline: none;
}
.field input::placeholder { color: #cdbdac; font-weight: 400; }

.field::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--transition);
}
.field:focus-within::after { transform: scaleX(1); }

/* dois campos rotulados na mesma tela (CPF / CNPJ) */
.field--labeled { margin-top: 20px; }
.field__label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 2px;
}

/* selects de Estado/Cidade — mesmo visual dos inputs (linha embaixo + seta) */
.field__select {
  width: 100%;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
  padding: 12px 26px 12px 2px;
  border: none;
  border-bottom: 2px solid var(--line);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23c07a3a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.field__select:disabled { color: #cdbdac; cursor: not-allowed; opacity: 0.75; }
.field__select option { color: #222; background: #fff; }

/* status da verificação do CNPJ (BrasilAPI / Receita) */
.cnpj-status {
  margin: 8px 0 0;
  font-family: var(--font-body, sans-serif);
  font-size: 0.86rem;
  line-height: 1.35;
  min-height: 1.1em;
  transition: color 0.2s;
}
.cnpj-status.is-loading { color: #9a8a78; }
.cnpj-status.is-ok      { color: #1a8f4c; }
.cnpj-status.is-warn    { color: #c0392b; }

/* botão "Enviando… X%" */
.btn.is-sending { cursor: progress; opacity: 0.95; }

/* página de sucesso: WhatsApp + voltar */
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25d366;
  color: #fff;
  border: 2px solid #25d366;
}
.btn--whatsapp:hover { background: #1eb257; border-color: #1eb257; color: #fff; }
.btn--whatsapp svg { flex: none; }

/* aviso "estamos quase lá" perto do final */
.almost-there {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  animation: almostPop 0.5s var(--transition) both;
}
@keyframes almostPop {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .almost-there { animation: none; }
}

.options {
  margin-top: 24px;
  display: grid;
  gap: 10px;
  counter-reset: opt;
}
.option {
  counter-increment: opt;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  background: var(--white);
  transition: border-color var(--transition), background var(--transition),
              transform var(--transition), box-shadow var(--transition);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
}
.option:hover {
  border-color: var(--orange-light);
  background: var(--orange-soft);
  transform: translateX(4px);
}
.option input { position: absolute; opacity: 0; pointer-events: none; }

.option__mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: var(--orange-soft);
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-dark);
  transition: all var(--transition);
}
.option__mark::after {
  content: counter(opt, upper-alpha);
}

.option input:checked ~ .option__mark {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}
.option input:checked ~ .option__mark::after { content: '✓'; }

.option:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: 0 8px 22px var(--orange-glow);
  transform: translateX(4px);
}

.actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.actions--center { justify-content: center; }

.btn {
  font-family: var(--font-head);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn--primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  box-shadow: 0 10px 26px var(--orange-glow);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px var(--orange-glow); }
.btn--primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost {
  background: transparent;
  color: var(--orange-dark);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--orange-soft); }
.btn--lg { font-size: 1.05rem; padding: 16px 42px; }

.error-msg {
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #d93025;
  min-height: 1.1em;
}

.thanks { text-align: center; padding: 24px 0; }
.thanks__icon {
  width: 84px; height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  box-shadow: 0 12px 30px var(--orange-glow);
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.thanks__icon svg { width: 44px; height: 44px; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.thanks__title {
  font-family: var(--font-head);
  font-size: 1.7rem; font-weight: 800; color: var(--ink);
}
.thanks__text { margin-top: 10px; color: var(--ink-soft); }

@media (max-width: 540px) {
  .form-card__body { padding: 22px 22px 28px; }
  .card-head { padding: 14px 18px 12px 22px; }
  .card-foot { padding: 12px 22px 14px; }
  .btn { padding: 13px 22px; }
  .btn--lg { padding: 15px 30px; }
  .actions { flex-direction: column-reverse; }
  .actions .btn { width: 100%; justify-content: center; }
  .actions--center { flex-direction: column; }
}
