/* ─────────────────────────────────────────────────────────────────────────────
   Box de Ofertas — Landing page
   Paleta: laranja #ff8c64, vermelho-laranja #d64522, amarelo #ffd54a,
           papelão #c9a574, azul-petróleo #0f3d4a / #1a5c6e
   Layout: mobile-first coluna única → desktop duas colunas (≥ 768 px)
───────────────────────────────────────────────────────────────────────────── */

:root {
  --brand-orange: #ff8c64;
  --brand-orange-deep: #d64522;
  --brand-yellow: #ffd54a;
  --brand-cardboard: #c9a574;
  --brand-cream: #fffaf3;
  --complement-deep: #0f3d4a;
  --complement-mid: #1a5c6e;
  --complement-light: #2a7d8f;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe57;
  --text: #1c1917;
  --text-muted: #57534e;
  --shadow-soft: 0 18px 50px rgba(15, 61, 74, 0.18);
  --shadow-card: 0 8px 32px rgba(15, 61, 74, 0.12);
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
}

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

html {
  min-height: 100svh;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100svh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 140% 60% at 50% -10%, rgba(255, 140, 100, 0.32), transparent 52%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(26, 92, 110, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 90%, rgba(255, 213, 74, 0.13), transparent 45%),
    linear-gradient(165deg, var(--brand-cream) 0%, #f0ebe3 45%, #e8f4f6 100%);
  background-attachment: fixed;
}

/* ── Estrutura principal ─────────────────────────────────────────────────── */

.page {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 0;
  z-index: 1;
}

.glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 100%,
    rgba(37, 211, 102, 0.05) 0%,
    transparent 45%
  );
  z-index: 0;
}

/* ── Layout: coluna única no mobile ─────────────────────────────────────── */

.layout {
  width: 100%;
  max-width: 480px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vmin, 2.5rem);
  padding-bottom: clamp(1rem, 3vmin, 2rem);
}

/* ── Coluna da marca (logo + textos) ─────────────────────────────────────── */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.5rem, 2vmin, 1rem);
}

.logo {
  width: min(220px, 58vw);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 24px rgba(214, 69, 34, 0.22));
}

.tagline {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(0.975rem, 2.6vmin, 1.15rem);
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
}

.brand-detalhe {
  margin: 0;
  font-size: clamp(0.8rem, 2vmin, 0.9rem);
  color: var(--complement-mid);
  opacity: 0.8;
  /* Oculto no mobile para não poluir */
  display: none;
}

/* ── Coluna do formulário ─────────────────────────────────────────────────── */

.main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2.8vmin, 1.4rem);
}

/* ── Passos da seleção ───────────────────────────────────────────────────── */

.step {
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 1.2vmin, 0.55rem);
}

.step--hidden {
  display: none;
}

/* ── Labels, selects, botão ──────────────────────────────────────────────── */

.field-label {
  font-size: clamp(0.72rem, 2vmin, 0.825rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--complement-deep);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--complement-mid);
  pointer-events: none;
}

.select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: clamp(0.975rem, 2.5vmin, 1.05rem);
  font-weight: 500;
  color: var(--text);
  padding: 0.875rem 2.75rem 0.875rem 1.1rem;
  border: 2px solid var(--complement-mid);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.select:hover {
  border-color: var(--brand-orange-deep);
}

.select:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-soft), 0 0 0 3px rgba(255, 140, 100, 0.35);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: clamp(0.9rem, 2.5vmin, 1.1rem) clamp(1.2rem, 3vmin, 1.5rem);
  font: inherit;
  font-size: clamp(1rem, 2.7vmin, 1.1rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #2fe677 0%, var(--whatsapp) 45%, var(--whatsapp-hover) 100%);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s, filter 0.2s;
}

.btn-whatsapp:hover:not([aria-disabled="true"]) {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-whatsapp:active:not([aria-disabled="true"]) {
  transform: translateY(0);
}

.btn-whatsapp[aria-disabled="true"] {
  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.85;
  pointer-events: none;
}

.btn-whatsapp__icon {
  display: flex;
  flex-shrink: 0;
}

.btn-whatsapp__icon svg {
  width: clamp(22px, 5vmin, 26px);
  height: clamp(22px, 5vmin, 26px);
}

/* ── Hint e avisos ───────────────────────────────────────────────────────── */

.hint {
  margin: 0;
  font-size: clamp(0.8rem, 2.1vmin, 0.9rem);
  color: var(--text-muted);
  text-align: center;
  min-height: 1.2em;
  line-height: 1.45;
}

.hint.is-ok    { color: var(--complement-mid); }
.hint.is-error { color: #9a3412; }

/* ── Texto legal ─────────────────────────────────────────────────────────── */

.legal-inline {
  margin: 0;
  font-size: clamp(0.73rem, 1.9vmin, 0.82rem);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.legal-inline a {
  color: var(--complement-mid);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  width: 100%;
  max-width: 960px;
  text-align: center;
  padding: clamp(1rem, 3vmin, 1.5rem) 0 clamp(1rem, 3vmin, 1.5rem);
  border-top: 1px solid rgba(15, 61, 74, 0.08);
  margin-top: auto;
}

.footer small {
  font-size: clamp(0.72rem, 1.9vmin, 0.8rem);
  color: var(--text-muted);
  opacity: 0.85;
}

.footer-links {
  margin-top: 0.4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
}

.footer-links a {
  font-size: clamp(0.72rem, 1.9vmin, 0.8rem);
  color: var(--complement-mid);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ── Desktop: duas colunas (≥ 768 px) ───────────────────────────────────── */

@media (min-width: 768px) {
  .page {
    padding: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 4vw, 4rem) 0;
    justify-content: center;
  }

  .layout {
    max-width: 960px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(2.5rem, 5vw, 5rem);
    flex: 1;
  }

  /* Coluna da marca — ocupa metade e centraliza conteúdo */
  .brand {
    flex: 1;
    align-items: flex-start;
    text-align: left;
    max-width: 400px;
  }

  .logo {
    width: min(280px, 40vw);
  }

  .tagline {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
  }

  .brand-detalhe {
    display: block; /* visível só no desktop */
  }

  /* Coluna do formulário — largura fixa com card visual */
  .main {
    flex: 0 0 auto;
    width: clamp(320px, 40vw, 420px);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 165, 116, 0.25);
    border-radius: calc(var(--radius) * 1.5);
    box-shadow: var(--shadow-card);
    padding: clamp(1.5rem, 3vw, 2rem);
    gap: clamp(1rem, 2vmin, 1.4rem);
  }
}

/* ── Telas muito largas ──────────────────────────────────────────────────── */

@media (min-width: 1200px) {
  .layout {
    max-width: 1100px;
    gap: clamp(4rem, 6vw, 7rem);
  }

  .brand {
    max-width: 480px;
  }

  .logo {
    width: min(320px, 30vw);
  }
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .btn-whatsapp {
    transition: none;
  }
}
