@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');
:root {
    --ink: #142337;
    --muted: #66758a;
    --line: #dce5ef;
    --surface: #ffffff;
    --background: #f4f8fc;
    --primary: #1769e0;
    --primary-dark: #0f4fae;
    --secondary: #e9f1fb;
    --success: #177a55;
    --danger: #b53b4b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: radial-gradient(circle at 50% -20%, #e6f0fc 0, var(--background) 44%, #eef3f8 100%);
    font-family: "Google Sans Flex", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "slnt" 0,
    "wdth" 100,
    "GRAD" 0,
    "ROND" 0;
}

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }
.hero { width: min(720px, calc(100% - 36px)); margin: auto; padding: 90px 0 42px; text-align: center; }
.eyebrow { color: var(--primary); font-size: .74rem; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 18px 0 18px; font-size: clamp(2.4rem, 7vw, 4.65rem); line-height: .98; letter-spacing: -.065em; }
.hero-copy { max-width: 520px; margin: 0 auto 34px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.card { position: relative; padding: 30px; text-align: left; background: rgba(255,255,255,.92); border: 1px solid rgba(220,229,239,.9); border-radius: 22px; box-shadow: 0 24px 70px rgba(41, 71, 106, .12); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin-bottom: 8px; color: #34465c; font-size: .82rem; font-weight: 750; }
.field input { width: 100%; padding: 14px 15px; color: var(--ink); background: #fbfdff; border: 1px solid var(--line); border-radius: 0; outline: none; font: inherit; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(23,105,224,.12); }
.field-error { display: block; min-height: 18px; margin-top: 5px; color: var(--danger); font-size: .75rem; }
.cta-group { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; margin-top: 10px; }
.button { min-height: 50px; padding: 12px 16px; border: 0; border-radius:0; font: inherit; font-size: .88rem; font-weight: 800; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(24, 62, 108, .16); }
.button:focus-visible { outline: 3px solid rgba(23,105,224,.35); outline-offset: 3px; }
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { color: var(--primary-dark); background: var(--secondary); }
.form-note { margin: 18px 0 0; color: var(--muted); font-size: .76rem; text-align: center; }
.form-note span { color: var(--primary); font-size: .66rem; }
.message-region { min-height: 0; margin-bottom: 18px; }
.message { margin: 0; padding: 13px 16px; border-radius: 10px; font-size: .9rem; animation: appear .35s ease both; }
.feedback-enter { animation: feedback-in .3s ease both; }
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .65s linear infinite; }
.confetti-canvas { position: fixed; inset: 0; z-index: 20; width: 100vw; height: 100vh; pointer-events: none; }
.button:disabled { cursor: wait; }
.card.submitted { border-color: #bce7d2; }

.message-success { color: var(--success); background: #eaf8f1; border: 1px solid #bce7d2; }
.message-error { color: var(--danger); background: #fff0f2; border: 1px solid #f2c5cd; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer { padding: 0 20px 26px; color: #8a98aa; font-size: .76rem; text-align: center; }
.is-loading { opacity: .7; pointer-events: none; }

@keyframes appear { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes feedback-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
    .hero { padding-top: 58px; }
    .card { padding: 22px; border-radius: 18px; }
    .field-grid, .cta-group { grid-template-columns: 1fr; gap: 8px; }
    .cta-group { margin-top: 12px; }
    .button { width: 100%; }
}
