:root {
  --navy: #1f3471;
  --navy-deep: #0f2a57;
  --teal: #1d5b86;
  --wave: #2a6fdb;
  --ink: #1b2740;
  --muted: #5b6b82;
  --line: #d6e1ee;
  --field: #f7fafd;
  --error: #b42318;
  --ok: #157f4f;
  --card: rgba(255, 255, 255, 0.94);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #cfe3f6 url("bg-wide.webp") center bottom / cover no-repeat fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 760px) {
  body { background-image: url("bg-tall.webp"); background-attachment: scroll; background-position: center bottom; }
}

.page { min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px 64px; }
.card {
  width: 100%; max-width: 760px;
  background: var(--card);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(15, 42, 87, 0.18), 0 2px 6px rgba(15, 42, 87, 0.08);
  overflow: hidden;
}

.card-head { text-align: center; padding: 32px 32px 8px; }
.eyebrow { margin: 0 0 14px; font-style: italic; color: var(--muted); font-size: 15px; }
.logo { width: 100%; max-width: 480px; height: auto; display: block; margin: 0 auto; mix-blend-mode: multiply; filter: contrast(1.06) brightness(1.04); }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--teal); margin: 18px auto 12px; }
.divider span { height: 1px; width: 110px; background: #8fb0cc; }
.meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--navy); font-weight: 600; font-size: 15px; }
.meta li { display: inline-flex; align-items: center; gap: 7px; }
.meta svg { width: 18px; height: 18px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

section { padding: 18px 32px 28px; }
.form-title { font-size: 22px; color: var(--navy); margin: 10px 0 4px; text-align: center; letter-spacing: -0.2px; }
.form-sub { margin: 0 0 20px; text-align: center; color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .card-head, section { padding-left: 20px; padding-right: 20px; }
  .page { padding-top: 16px; }
  .divider span { width: 60px; }
}

.field label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #3b4d6e; margin: 0 0 7px 2px; }
.req { color: var(--error); }
.input-wrap { position: relative; }
.input-wrap .ico {
  position: absolute; left: 14px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%);
  fill: none; stroke: #8aa0bd; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none; transition: stroke .2s;
}
.field input {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--ink);
  padding: 13px 14px 13px 44px;
  border: 1.5px solid #dbe5f1; border-radius: 12px;
  background: linear-gradient(#fff, #f8fbfe);
  box-shadow: 0 1px 2px rgba(15, 42, 87, .05), inset 0 1px 0 #fff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #a4b3c7; }
.field input:hover { border-color: #b9cbe2; }
.field input:focus {
  outline: none; border-color: var(--wave); background: #fff;
  box-shadow: 0 0 0 4px rgba(42, 111, 219, .14), 0 6px 16px rgba(31, 52, 113, .08);
}
.input-wrap:focus-within .ico { stroke: var(--wave); }
.field.has-error input { border-color: var(--error); background: #fff8f7; }
.field.has-error input:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }
.field.has-error .ico { stroke: var(--error); }
.err { color: var(--error); font-size: 13px; margin: 6px 0 0 2px; }
.grid { gap: 20px 20px; }
.alert { background: #fdecea; color: var(--error); border: 1px solid #f6c7c1; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit {
  margin-top: 24px; width: 100%; border: 0; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .2px; color: #fff;
  padding: 14px 18px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  box-shadow: 0 8px 20px rgba(31, 52, 113, 0.28);
  transition: transform .1s, box-shadow .15s, opacity .15s;
}
.btn-submit:hover { box-shadow: 0 10px 26px rgba(31, 52, 113, 0.36); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: .7; cursor: progress; }
.btn-submit:focus-visible, .btn-ghost:focus-visible { outline: 3px solid rgba(42, 111, 219, .45); outline-offset: 2px; }

.thanks { text-align: center; padding: 28px 32px 36px; }
.thanks h1 { color: var(--navy); font-size: 24px; margin: 14px 0 10px; }
.thanks p { margin: 6px auto; max-width: 480px; line-height: 1.6; font-size: 15.5px; }
.thanks .small { color: var(--muted); font-size: 13.5px; }
.tick { width: 68px; height: 68px; border-radius: 50%; margin: 6px auto 0; background: #e3f5ec; display: grid; place-items: center; animation: pop .35s ease-out; }
.tick svg { width: 36px; height: 36px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tick { animation: none; } }
.btn-ghost { display: inline-block; margin-top: 18px; padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 600; font-size: 14px; }
.btn-ghost:hover { border-color: var(--teal); }

.card-foot { background: var(--navy-deep); color: #dce6f4; text-align: center; padding: 18px 24px 20px; font-size: 13.5px; line-height: 1.6; }
.card-foot p { margin: 2px 0; }
.card-foot .theme { font-style: italic; font-size: 14.5px; color: #fff; margin-bottom: 6px; }
.card-foot a { color: #fff; }
