/* Estrutura da referência (uma coluna) com a linguagem do formulário da primeira versão. */
@font-face { font-family: 'Anton'; src: url('fonts/anton-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('fonts/archivo-latin.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --red: #d7191f;
  --red-dark: #a8121a;
  --ink: #17120f;
  --ground: #f4f4f4;
  --card: #fff;
  --muted: #5c5c5c;
  --hover: #f0f0f0;
  --error: #b00d14;
  --whatsapp: #0e7a35;
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--body);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
button, input, select { font: inherit; color: inherit; }
button, a, label { touch-action: manipulation; }
[hidden] { display: none !important; }
p { text-wrap: pretty; }
::selection { background: var(--red); color: #fff; }
input { caret-color: var(--red); }

/* Página: uma coluna, como a referência */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px) 20px clamp(56px, 9vw, 96px);
}
.intro { margin-bottom: clamp(32px, 6vw, 48px); }
.intro::before {
  content: '';
  display: block;
  width: 64px;
  height: 8px;
  margin-bottom: 24px;
  background: var(--red);
}
.headline {
  margin: 0 0 26px;
  font-family: var(--display);
  font-size: clamp(38px, 8.4vw, 72px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.headline-accent { display: block; color: var(--red); }
.intro-copy { max-width: 36em; }
.intro-copy p { margin: 0 0 14px; }
.intro-copy p:last-child { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.intro-copy .lead { font-size: clamp(19px, 2.6vw, 22px); font-weight: 700; line-height: 1.38; letter-spacing: -.005em; }

/* Formulário */
.form-card {
  min-width: 0;
  padding: clamp(22px, 5vw, 40px);
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  scroll-margin-top: 16px;
}
.card-title {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 400;
  line-height: 1.18;
  text-transform: uppercase;
  text-wrap: balance;
}
.field { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
label, .field-label { display: block; margin: 0 0 7px; padding: 0; font-size: 15px; font-weight: 700; line-height: 1.35; }
input:not([type=checkbox]):not([type=radio]), select {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 2px;
  font-size: 16px;
}
select {
  appearance: none;
  padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' fill='none' stroke='%2317120f' stroke-width='2.6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  cursor: pointer;
}
input:disabled, select:disabled { background-color: #efefef; color: #666; cursor: not-allowed; }
input:not([type=checkbox]):not([type=radio]):focus-visible, select:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.field-error { margin: 7px 0 0; color: var(--error); font-size: 14px; font-weight: 700; line-height: 1.4; }
.field-error:empty, .form-error:empty { display: none; }
input[aria-invalid=true]:not([type=checkbox]):not([type=radio]), select[aria-invalid=true] { border-color: var(--error); background-color: #fff3f2; }

/* Telefone: seletor de país (intl-tel-input), no desenho dos outros campos */
.iti { display: block; width: 100%; }
.iti__flag-container { padding: 2px; }
.iti--separate-dial-code .iti__selected-flag { padding: 0 10px 0 12px; background-color: var(--ground); border-right: 2px solid var(--ink); }
.iti--separate-dial-code .iti__selected-dial-code { margin-left: 8px; color: var(--ink); font-weight: 700; }
.iti__selected-flag:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.iti__arrow { border-top-color: var(--ink); }
.iti__arrow--up { border-bottom-color: var(--ink); }
.iti__country-list {
  margin-top: 6px;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--ink);
  font-size: 15px;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) var(--hover);
}
.iti__country { padding: 9px 12px; }
.iti__country.iti__highlight { background-color: var(--hover); }
.iti__divider { border-bottom: 2px solid var(--ink); }

/* UF e cidade na mesma linha */
.place { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; }
.combo { position: relative; min-width: 0; }
.combo-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(300px, 46vh);
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  scrollbar-width: thin;
  scrollbar-color: var(--ink) var(--hover);
}
.combo-options li { padding: 11px 14px; line-height: 1.3; cursor: pointer; }
.combo-options li[aria-selected=true] { background: var(--hover); font-weight: 700; }
@media (hover: hover) { .combo-options li:hover { background: var(--hover); } }
.combo-options .combo-empty { color: var(--muted); cursor: default; background: none; }
#city { scroll-margin-top: 90px; }

/* Escolhas em pílula */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; margin: 0; font-weight: 600; }
.choice input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 16px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 24px;
  font-size: 15px;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color .12s, color .12s, transform .12s;
}
.choice input[type=radio] + span { min-width: 92px; justify-content: center; }
.choice input:checked + span { color: #fff; background: var(--red); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.choice input[type=checkbox]:checked + span::before {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 6px;
  margin: -4px 2px 0 0;
  border: solid currentColor;
  border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg);
}
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .choice span:hover { background: var(--hover); } .choice input:checked + span:hover { background: var(--red-dark); } }
.choice-group.is-invalid .choice span { border-color: var(--error); background-color: #fff3f2; }

.form-error {
  margin: 4px 0 16px;
  padding: 11px 14px;
  color: var(--error);
  background: #fff3f2;
  border: 2px solid var(--error);
  font-size: 15px;
  font-weight: 700;
}
.primary-button {
  display: block;
  width: 100%;
  min-height: 60px;
  margin-top: 8px;
  padding: 12px 18px 10px;
  color: #fff;
  background: var(--red);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background-color .12s;
}
.primary-button:hover { background: var(--red-dark); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.primary-button:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.primary-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.primary-button:disabled { opacity: .75; cursor: wait; transform: none; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Depois do envio */
.success { outline: none; }
.success-detail { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.45; }
.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 12px 18px 10px;
  color: #fff;
  background: var(--whatsapp);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
}
.whatsapp-button:hover { background: #0b6a2d; }
.whatsapp-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.thanks-page { max-width: 680px; margin: 0 auto; padding: 48px 20px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .headline { line-height: 1.25; }
  .form-card { margin: 0 -6px; box-shadow: 6px 6px 0 var(--ink); }
  .place { grid-template-columns: 92px minmax(0, 1fr); }
  .primary-button { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
