/* Estilos do formulário V3 publicado no Cloudflare Pages. */
:root {
  --orange: #e76a26;
  --orange-dark: #b7470e;
  --ink: #24272b;
  --muted: #657078;
  --border: #e6e8e9;
  --background: #f7f7f5;
  --white: #fff;
  --soft-orange: #fff4ec;
  --focus: #bd4c11;
  --danger: #a02b16;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
}

.site-header { background: var(--white); border-bottom: 1px solid var(--border); }
.topbar {
  max-width: 910px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand { color: var(--orange-dark); font-size: 14px; font-weight: 850; letter-spacing: .05em; }
.internal-label { color: var(--muted); font-size: 12px; }

.page-main { max-width: 910px; margin: 34px auto 60px; padding: 0 18px; }
.intro { margin: 0 0 24px; }
.eyebrow { margin: 0; color: var(--orange-dark); font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.intro h1 { margin: 8px 0 10px; font-size: clamp(29px, 4.2vw, 42px); line-height: 1.1; letter-spacing: -.045em; }
.intro > p:last-child { margin: 0; color: var(--muted); font-size: 16px; }

.form-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 13px 38px #151a1e0a;
}
.progress { padding: 22px 28px; border-bottom: 1px solid var(--border); }
.step-labels { display: flex; justify-content: space-between; gap: 7px; margin-bottom: 12px; }
.step-labels span { color: var(--muted); font-size: 12px; font-weight: 650; }
.step-labels .active { color: var(--orange-dark); }
.progress-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress-bars i { height: 6px; border-radius: 100px; background: #eceeed; }
.progress-bars i.done { background: var(--orange); }

#requestForm { padding: 30px 28px 26px; }
.step { display: none; }
.step.active { display: block; }
.step h2 { margin: 0 0 5px; font-size: 23px; letter-spacing: -.03em; }
.step-hint { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { min-width: 0; margin: 0 0 21px; }
.main-label,
.choice-group legend { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 720; }
.choice-group { min-width: 0; padding: 0; border: 0; }
.required { color: var(--orange-dark); }

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #cfd4d5;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
textarea { min-height: 85px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #90989c; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, .choice:focus-within {
  outline: 3px solid #f3aa70;
  outline-offset: 2px;
}

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choice {
  position: relative;
  display: flex;
  min-height: 47px;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #daddde;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  user-select: none;
}
.choice:has(input:checked) { border-color: var(--orange); background: var(--soft-orange); color: #8e380e; }
.choice input { width: 16px; height: 16px; flex: none; margin: 0; accent-color: var(--orange); }
.inline-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-choices .choice { min-width: 145px; }
.helper { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.url-preview { display: block; overflow-wrap: anywhere; color: var(--orange-dark); font-size: 14px; font-weight: 650; }
.conditional { margin-bottom: 19px; padding: 5px 0 3px 18px; border-left: 3px solid #f0c5a6; }
.hidden { display: none !important; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.note, .summary-placeholder {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f6f7f7;
  color: #57636b;
  font-size: 13px;
}
.summary-placeholder { margin: 0; padding: 20px; border: 1px dashed #cfd4d5; text-align: center; }
.summary { display: grid; gap: 15px; }
.summary-section { padding: 16px; border: 1px solid var(--border); border-radius: 11px; }
.summary-section h3 { margin: 0 0 9px; font-size: 15px; }
.summary-list { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 6px 13px; margin: 0; font-size: 14px; }
.summary-list dt { color: var(--muted); }
.summary-list dd { min-width: 0; margin: 0; font-weight: 550; overflow-wrap: anywhere; }
#risk:empty { display: none; }
.risk-flag { margin: 0 0 15px; padding: 13px 15px; border: 1px solid #efc48d; border-radius: 10px; background: #fff5e6; font-size: 14px; }
.send-status { min-height: 0; margin: 10px 0 0; font-size: 14px; }
.send-status:empty { display: none; }
.send-status.error { color: var(--danger); }
.send-status.success { color: #236b3c; font-weight: 650; }
.send-status.info { color: var(--muted); }
.error { min-height: 0; margin: 8px 0 0; color: var(--danger); font-size: 13px; }
.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.button {
  min-height: 46px;
  padding: 12px 19px;
  border: 1px solid #d5d8d8;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}
.button.primary { border-color: var(--orange); background: var(--orange); color: var(--white); }
.button.primary:hover:not(:disabled) { border-color: var(--orange-dark); background: var(--orange-dark); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.page-footer { margin: 16px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.confirmation-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.confirmation-card {
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 13px 38px #151a1e0a;
  text-align: center;
}
.confirmation-kicker {
  margin: 0 0 16px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.confirmation-card h1 {
  margin: 0 0 18px;
  font-size: clamp(29px, 4.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.confirmation-text {
  max-width: 60ch;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.confirmation-link { display: inline-block; text-decoration: none; }

@media (max-width: 620px) {
  .page-main { margin: 21px auto 40px; }
  .topbar { padding: 15px 18px; }
  .internal-label { display: none; }
  .progress { padding: 18px; }
  .step-labels span { font-size: 11px; }
  #requestForm { padding: 22px 18px; }
  .confirmation-page { padding: 18px; }
  .confirmation-card { border-radius: 14px; }
  .two-columns, .choices { grid-template-columns: 1fr; }
  .summary-list { grid-template-columns: 1fr; gap: 2px; }
  .summary-list dt:not(:first-child) { margin-top: 8px; }
  .navigation .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
