:root {
  --navy: #003262;
  --navy-deep: #022246;
  --navy-soft: #0a4078;
  --gold: #c9a44c;
  --bg: #f3f0e9;
  --surface: #ffffff;
  --text: #1d2b3a;
  --muted: #67788c;
  --border: #e2ddd2;
  --ring: rgba(0, 50, 98, 0.18);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 34, 70, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Hero (inspirado no site Carroll) */
.hero {
  background:
    linear-gradient(180deg, rgba(2, 34, 70, 0.0) 0%, rgba(2, 34, 70, 0.35) 100%),
    var(--navy);
  color: #fff;
  text-align: center;
  padding: 34px 20px 64px;
  padding-top: calc(34px + env(safe-area-inset-top));
}
.hero-logo {
  width: 168px;
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto 18px;
}
.hero-title {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin: 0 auto;
  max-width: 22ch;
}

.wrap {
  max-width: 540px;
  margin: -42px auto 0;
  padding: 0 16px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px 24px;
}

.title {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 4px;
  color: var(--navy-deep);
}
.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.45;
}

/* Fields */
.field { margin-bottom: 16px; }
.field.sub { margin-top: 10px; margin-bottom: 0; }
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--navy-deep);
}
.req { color: #c0392b; font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: 12.5px; }

input, textarea {
  width: 100%;
  font-size: 16px; /* evita zoom no iOS */
  font-family: inherit;
  color: var(--text);
  background: #fbfaf6;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: #9aa6b4; }
input:focus, textarea:focus {
  border-color: var(--navy-soft);
  background: #fff;
  box-shadow: 0 0 0 4px var(--ring);
}
textarea { resize: vertical; min-height: 52px; }

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.chip {
  appearance: none;
  border: 1.5px solid var(--border);
  background: #fbfaf6;
  color: var(--navy-deep);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  padding: 11px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .14s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 50, 98, 0.25);
}

/* Conditional groups */
.cond {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  margin: 4px 0 16px;
  animation: slideIn .2s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Button */
.btn {
  width: 100%;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--navy);
  border: none;
  border-radius: 12px;
  padding: 16px;
  margin-top: 6px;
  cursor: pointer;
  transition: background .15s, transform .1s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--navy-soft); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  margin-top: 16px;
}

.erro {
  color: #c0392b;
  font-size: 14px;
  margin: 12px 0 0;
  min-height: 1px;
  text-align: center;
}

/* Success */
.success { text-align: center; padding: 40px 22px; }
.success h2 {
  font-family: "Zilla Slab", Georgia, serif;
  color: var(--navy-deep);
  margin: 6px 0;
}
.success p { color: var(--muted); margin: 0 0 8px; }
.check {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #1f8a4c;
  color: #fff;
  font-size: 34px;
  line-height: 64px;
  font-weight: 700;
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: auto;
  padding-top: 22px;
  letter-spacing: .02em;
}

.hidden { display: none !important; }

/* Honeypot — fora da tela, sem display:none (para bots não detectarem) */
.hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.ts-wrap { margin: 6px 0 14px; min-height: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
