:root {
    --navy-deep: #071127;
    --navy-soft: #0B1B3D;
    --navy-line: rgba(255, 255, 255, 0.14);
    --gold: #C9954B;
    --gold-light: #E7C083;
    --gold-dim: rgba(201, 149, 75, 0.18);
    --rose: #7E0000;
    --cream: #F6F1E7;
    --cream-dim: #EFE6D5;
    --ink: #1B2A4A;
    --ink-soft: #6E7690;
    --ok: #2E7D53;
    --err: #7E0000;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'Urbanist', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
}

/* ================= LEFT PANEL ================= */
.panel {
    background:
        radial-gradient(120% 90% at 15% 0%, #0F1B40 0%, var(--navy-deep) 55%),
        var(--navy-deep);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 56px 52px 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
}

.brand .brand-logo {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
}

.vein {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    opacity: 0.55;
}

.panel-copy {
    position: relative;
    z-index: 2;
    margin-top: 44px;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-light);
    font-weight: 700;
    margin: 0 0 18px;
}

.headline {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.22;
    margin: 0 0 20px;
}

.headline em {
    font-style: normal;
    color: var(--gold-light);
    font-weight: 700;
}

.sub {
    font-size: 14.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    max-width: 38ch;
    margin: 0 0 34px;
    font-weight: 400;
}

.pillars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.pillar {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--navy-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.pillar .ic {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pillar .ic svg {
    width: 17px;
    height: 17px;
    stroke: var(--gold-light);
}

.pillar h4 {
    margin: 0 0 3px;
    font-size: 14.5px;
    font-weight: 700;
}

.pillar p {
    margin: 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.5;
    font-weight: 400;
}

.panel-foot {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid var(--navy-line);
}

.foot-row {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.foot-row svg {
    width: 15px;
    height: 15px;
    stroke: var(--gold-light);
    flex-shrink: 0;
}

.foot-row a {
    color: #fff;
    text-decoration: none;
}

.foot-note {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
}

/* ================= RIGHT PANEL / FORM ================= */
.form-side {
    padding: 56px 64px 56px;
    display: flex;
    align-items: center;
}

.form-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.form-head {
    margin-bottom: 30px;
}

.form-head .step-eyebrow {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rose);
    font-weight: 700;
    margin: 0 0 10px;
}

.form-head h1 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: var(--navy-deep);
    margin: 0 0 10px;
    line-height: 1.25;
}

.form-head p {
    margin: 0;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.65;
    max-width: 46ch;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.field label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: 0.01em;
}

.field label .opt {
    color: var(--ink-soft);
    font-weight: 400;
}

.field input,
.field select,
.field textarea {
    font-family: 'Urbanist', sans-serif;
    font-size: 14.5px;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid #E4DFD2;
    border-radius: 10px;
    padding: 13px 15px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
}

.field textarea {
    resize: vertical;
    min-height: 96px;
    line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-dim);
}

.field input.err,
.field select.err,
.field textarea.err {
    border-color: var(--err);
}

.field .msg {
    font-size: 11.5px;
    color: var(--err);
    min-height: 14px;
}

#err-form:not(:empty) {
    background: rgba(126, 0, 0, 0.08);
    border: 1px solid rgba(126, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.phone-field {
    display: flex;
    gap: 8px;
}

.phone-field select {
    width: 98px;
    flex-shrink: 0;
}

.phone-field input {
    flex: 1;
}

.gender-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gender-pill {
    border: 1.5px solid #E4DFD2;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    background: #fff;
    transition: all .15s ease;
    user-select: none;
}

.gender-pill input {
    display: none;
}

.gender-pill.active {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: #fff;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    margin-top: -3px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--ink-soft);
    border-bottom: 1.5px solid var(--ink-soft);
    transform: rotate(45deg);
    pointer-events: none;
}

.select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 38px;
}

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-top: 2px;
}

.consent input {
    margin-top: 3px;
    accent-color: var(--gold);
    flex-shrink: 0;
}

.consent a {
    color: var(--navy-deep);
}

.submit-btn {
    margin-top: 6px;
    background: linear-gradient(135deg, var(--gold), #A9762F);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 16px 24px;
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 24px -10px rgba(169, 118, 47, 0.55);
    transition: transform .15s ease, box-shadow .15s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -10px rgba(169, 118, 47, 0.65);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn svg {
    width: 16px;
    height: 16px;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.trust-line {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 11.5px;
    color: var(--ink-soft);
    margin-top: 16px;
}

.trust-line svg {
    width: 13px;
    height: 13px;
    stroke: var(--ink-soft);
}

/* success state */
.success {
    display: none;
    text-align: center;
    padding: 40px 10px;
}

.success.show {
    display: block;
}

.success .ic {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}

.success .ic svg {
    width: 28px;
    height: 28px;
    stroke: var(--gold);
}

.success h2 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--navy-deep);
    margin: 0 0 10px;
}

.success p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.7;
    max-width: 40ch;
    margin: 0 auto;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
    .wrap {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 40px 28px 32px;
    }

    .headline {
        font-size: 26px;
    }

    .pillars {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .pillar {
        min-width: 210px;
    }

    .panel-foot {
        display: none;
    }

    .form-side {
        padding: 36px 24px 60px;
    }
}

@media (max-width: 560px) {
    .row2 {
        grid-template-columns: 1fr;
    }

    .phone-field {
        flex-wrap: wrap;
    }

    .phone-field select {
        width: 100%;
    }
}
