:root {
    --blue: #1f3c88;
    --blue-dark: #12265a;
    --orange: #f47b20;
    --text: #182033;
    --muted: #687187;
    --line: #e7eaf0;
    --soft: #f6f8fc;
    --white: #fff;
    --danger: #b42318;
    --danger-bg: #fff2f0;
    --success: #12805c;
    --shadow: 0 24px 70px rgba(18, 38, 90, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #eef2f8;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.page-shell {
    width: min(1440px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(390px, .85fr) minmax(560px, 1.15fr);
    background: var(--white);
    box-shadow: var(--shadow);
}

.intro-panel {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 54px clamp(34px, 5vw, 76px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background:
      radial-gradient(circle at 85% 13%, rgba(244,123,32,.28), transparent 22%),
      radial-gradient(circle at 5% 90%, rgba(255,255,255,.08), transparent 30%),
      linear-gradient(145deg, #0d1d49 0%, #12265a 48%, #1f3c88 100%);
}
.intro-panel::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -220px;
    bottom: 8%;
    border: 70px solid rgba(255,255,255,.035);
    border-radius: 50%;
}
.brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    text-decoration: none;
}
.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    background: var(--orange);
    box-shadow: 0 12px 24px rgba(244,123,32,.22);
}
.brand strong { display: block; font-size: 15px; letter-spacing: .02em; }
.brand small { display: block; margin-top: 2px; color: rgba(255,255,255,.58); font-size: 10px; letter-spacing: .13em; }

.intro-copy {
    position: relative;
    z-index: 1;
    margin: auto 0 54px;
    max-width: 580px;
}
.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--orange);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
}
.intro-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 4.5vw, 68px);
    line-height: 1.02;
    letter-spacing: -.055em;
    font-weight: 850;
}
.intro-copy h1 em { color: #ffad71; font-style: normal; }
.intro-copy p {
    margin: 0;
    max-width: 510px;
    color: rgba(255,255,255,.72);
    line-height: 1.75;
    font-size: 15px;
}
.feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}
.feature-list > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: start;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.feature-list span { color: #ffad71; font-size: 11px; font-weight: 800; padding-top: 3px; }
.feature-list p { margin: 0; color: rgba(255,255,255,.62); font-size: 12.5px; line-height: 1.55; }
.feature-list strong { color: #fff; font-size: 13px; }
.intro-footer {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,.55);
    font-size: 12px;
}
.intro-footer a { color: #fff; text-decoration: none; font-weight: 700; }

.form-panel {
    min-height: 100vh;
    padding: 70px clamp(28px, 5vw, 78px);
    background: #fff;
}
.form-wrap { width: min(720px, 100%); margin: 0 auto; }
.form-heading { margin-bottom: 36px; }
.step-pill {
    display: inline-flex;
    padding: 7px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(31,60,136,.08);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .09em;
}
.form-heading h2 {
    margin: 0 0 8px;
    color: var(--blue-dark);
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.12;
    letter-spacing: -.035em;
}
.form-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.form-heading b, label b { color: var(--orange); }

.section-label {
    margin: 34px 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.section-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.section-label span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #fff;
    background: var(--blue);
    font-size: 11px;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { margin-bottom: 16px; }
.field label {
    display: block;
    margin-bottom: 8px;
    color: #313b50;
    font-size: 12.5px;
    font-weight: 700;
}
.field label span { color: #8a93a6; font-weight: 500; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.counter { color: #9aa2b1; font-size: 10px; white-space: nowrap; }
input, select, textarea {
    width: 100%;
    border: 1px solid #dce1ea;
    border-radius: 13px;
    outline: none;
    color: var(--text);
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input, select { height: 51px; padding: 0 14px; }
textarea { padding: 14px; resize: vertical; min-height: 128px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #a6adba; }
input:focus, select:focus, textarea:focus {
    border-color: rgba(31,60,136,.65);
    box-shadow: 0 0 0 4px rgba(31,60,136,.08);
}
.was-validated :invalid:not(fieldset) { border-color: #d92d20; background: #fffafa; }

.consent {
    margin: 12px 0 22px;
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 11px;
    align-items: start;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.55;
    cursor: pointer;
}
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }

.submit-btn {
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    border: 0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    box-shadow: 0 13px 28px rgba(31,60,136,.18);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(31,60,136,.22); }
.submit-btn:disabled { cursor: wait; opacity: .72; transform: none; }
.submit-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.submit-btn.is-loading svg { animation: nudge .8s ease infinite alternate; }
@keyframes nudge { to { transform: translateX(4px); } }
.form-note { margin: 14px auto 0; max-width: 560px; color: #9299a8; text-align: center; font-size: 10.5px; line-height: 1.55; }

.alert {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 12.5px;
    line-height: 1.55;
}
.alert-error { color: var(--danger); background: var(--danger-bg); border: 1px solid #ffd7d2; }
.alert ul { margin: 8px 0 0; padding-left: 18px; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Confirmation */
.success-page {
    display: grid;
    place-items: center;
    padding: 24px;
    background:
      radial-gradient(circle at 15% 20%, rgba(31,60,136,.12), transparent 25%),
      radial-gradient(circle at 90% 75%, rgba(244,123,32,.12), transparent 24%),
      #f4f7fb;
}
.success-shell { width: min(660px, 100%); }
.success-card {
    padding: clamp(32px, 6vw, 60px);
    text-align: center;
    border: 1px solid rgba(18,38,90,.06);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
}
.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: #fff;
    background: var(--success);
    box-shadow: 0 18px 32px rgba(18,128,92,.18);
}
.success-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.success-card h1 { margin: 0 0 14px; color: var(--blue-dark); font-size: clamp(34px, 7vw, 52px); letter-spacing: -.045em; }
.success-card > p { margin: 0 auto; max-width: 520px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.reference-box { margin: 28px 0; padding: 16px; border-radius: 14px; background: var(--soft); }
.reference-box span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.reference-box strong { color: var(--blue); font-size: 16px; letter-spacing: .04em; }
.success-actions { margin-top: 28px; }
.button-link { text-decoration: none; }
.secondary-link { display: inline-block; margin-top: 18px; color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; }

@media (max-width: 980px) {
    .page-shell { display: block; }
    .intro-panel { position: relative; min-height: auto; padding: 38px 28px 42px; }
    .intro-copy { margin: 70px 0 44px; max-width: 680px; }
    .intro-copy h1 { font-size: clamp(42px, 9vw, 64px); }
    .feature-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .feature-list > div { display: block; }
    .feature-list span { display: block; margin-bottom: 6px; }
    .form-panel { min-height: auto; padding: 54px 28px 70px; }
}

@media (max-width: 640px) {
    body { background: #fff; }
    .intro-panel { padding: 28px 20px 34px; }
    .brand-mark { width: 40px; height: 40px; }
    .intro-copy { margin: 58px 0 36px; }
    .intro-copy h1 { font-size: 43px; }
    .intro-copy p { font-size: 14px; }
    .feature-list { grid-template-columns: 1fr; }
    .feature-list > div { display: grid; }
    .intro-footer { margin-top: 26px; }
    .form-panel { padding: 42px 18px 54px; }
    .grid-2 { grid-template-columns: 1fr; gap: 0; }
    .form-heading h2 { font-size: 33px; }
    .section-label { margin-top: 30px; }
    input, select { height: 52px; }
    .success-page { padding: 14px; }
    .success-card { border-radius: 24px; }
}

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