:root {
  --navy: #0f2a43;
  --navy-2: #163a5c;
  --accent: #e8730c;
  --accent-dark: #c65f05;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1c2733;
  --muted: #5b6b7b;
  --line: #d5dce4;
  --error: #b3261e;
  --error-bg: #fdecea;
  --ok: #1b6b3a;
  --ok-bg: #e6f4ea;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 700; font-size: 1.2rem; letter-spacing: .5px; }
.header-cta { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.5); padding: 6px 14px; border-radius: 999px; font-size: .9rem; }

.hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 36px 0 64px; }
.hero h1 { margin: 0 0 12px; font-size: 1.6rem; line-height: 1.25; }
.hero .lead { margin: 0; color: #d6e2ee; font-size: 1.05rem; max-width: 620px; }

.form-section { margin-top: -40px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 4px 18px rgba(15,42,67,.12); padding: 20px 16px 24px; }
.card h2 { margin: 0 0 4px; font-size: 1.3rem; }
.hint { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }

fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { font-weight: 700; color: var(--navy); font-size: 1.05rem; padding: 0; margin-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field { display: block; margin-bottom: 2px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.req { color: var(--error); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: .85rem; }

input[type=text], input[type=tel], input[type=email], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text);
  min-height: 46px; appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(232,115,12,.35); border-color: var(--accent); }
.invalid { border-color: var(--error) !important; background: #fffafa; }
.err { color: var(--error); font-size: .85rem; margin: 4px 0 0; min-height: 0; }
.err:empty { display: none; }
.counter { text-align: right; color: var(--muted); font-size: .8rem; margin: 2px 0 0; }

.consent { margin: 8px 0 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--accent); }
.check a { color: var(--navy-2); }

.btn { width: 100%; background: var(--accent); color: #fff; border: 0; border-radius: 8px; font: inherit; font-weight: 700; font-size: 1.05rem; padding: 14px; min-height: 50px; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.banner { border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; font-weight: 600; }
.banner[hidden] { display: none; }
.banner-success { background: var(--ok-bg); color: var(--ok); border: 1px solid #a9d8b8; }
.banner-error { background: var(--error-bg); color: var(--error); border: 1px solid #f3b8b3; }

/* Bot trap - off-screen, not display:none (some bots skip display:none fields) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.privacy { margin: 28px auto 40px; font-size: .88rem; color: var(--muted); }
.privacy h2 { font-size: 1rem; color: var(--text); }
.placeholder { background: #fff3cd; padding: 0 4px; border-radius: 3px; }
.site-footer { background: var(--navy); color: #b9c8d8; padding: 18px 0; font-size: .85rem; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 640px) {
  .hero h1 { font-size: 2.1rem; }
  .card { padding: 28px 28px 32px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .btn { width: auto; min-width: 240px; }
}
