:root {
    --navy: #020124;
    --ink: #122040;
    --muted: #717986;
    --border: #9baac2;
    --purple: #5221a8;
    --blue: #174bdc;
    --danger: #ff3b49;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--ink);
    background: var(--navy);
}

.site-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 32px 18px 78px;
    background:
        radial-gradient(circle at 92% 86%, rgba(255, 77, 104, .34), transparent 23%),
        radial-gradient(circle at 8% 84%, rgba(0, 91, 255, .34), transparent 26%),
        linear-gradient(180deg, #010022 0%, #02012d 66%, #061659 100%);
}

.site-shell::after {
    content: '';
    position: absolute;
    left: -8%; right: -8%; bottom: 0;
    height: 120px;
    background:
        repeating-linear-gradient(8deg, transparent 0 11px, rgba(15, 94, 255, .95) 12px 18px, transparent 19px 29px),
        linear-gradient(90deg, rgba(0, 94, 255, .65), rgba(171, 87, 255, .72) 58%, rgba(255, 81, 88, .92));
    filter: blur(.2px);
    transform: skewY(1deg);
    opacity: .86;
    pointer-events: none;
}

.brand-header {
    height: 92px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.brand-logo { width: 181px; height: auto; object-fit: contain; }

.provider-card {
    width: min(1040px, 100%);
    min-height: 730px;
    margin: 8px auto 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 39% 61%;
    box-shadow: 0 0 0 1px rgba(255,255,255,.42), 0 18px 45px rgba(0,0,0,.12);
    position: relative;
    z-index: 2;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: 730px;
    background:
        radial-gradient(circle at 3% 0%, rgba(215, 38, 30, .56), transparent 44%),
        linear-gradient(160deg, #751d33 0%, #67305a 35%, #2b276c 68%, #173ba8 100%);
}
.hero-lines,
.hero-lines::before,
.hero-lines::after {
    position: absolute;
    inset: 0;
    content: '';
    pointer-events: none;
}
.hero-lines {
    opacity: .25;
    background: repeating-linear-gradient(102deg, transparent 0 72px, rgba(255,255,255,.35) 73px 74px, transparent 75px 138px);
}
.hero-lines::before {
    left: -110px;
    top: 250px;
    width: 410px;
    height: 540px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 50%;
    box-shadow: 42px 0 0 -41px rgba(255,255,255,.6), 86px 0 0 -85px rgba(255,255,255,.6), 130px 0 0 -129px rgba(255,255,255,.6);
}
.hero-copy { position: relative; z-index: 1; padding: 34px 34px; max-width: 370px; }
.eyebrow { font-size: 13px; letter-spacing: .08em; opacity: .72; margin-bottom: 24px; }
.hero-copy h1 { margin: 0 0 18px; font-size: 35px; line-height: 1.16; font-weight: 400; }
.hero-copy h1 strong { display: block; font-weight: 700; }
.hero-copy p { font-size: 15px; line-height: 1.35; margin: 0; }

.form-panel { padding: 30px 38px 34px; background: #fff; }
.form-heading h2 { font-size: 24px; line-height: 1.2; margin: 0 0 10px; font-weight: 700; }
.form-heading p { font-size: 15px; line-height: 1.35; margin: 0 0 20px; max-width: 560px; }
.form-grid { --bs-gutter-x: 1.2rem; --bs-gutter-y: .95rem; }
.form-label { margin-bottom: 7px; font-weight: 700; font-size: 14px; }
.form-label em { font-weight: 400; }
.form-control, .form-select, .brand-toggle {
    min-height: 47px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #28334f;
    font-size: 14px;
    padding: .7rem 1rem;
    box-shadow: none !important;
}
.form-control:focus, .form-select:focus, .brand-toggle:focus {
    border-color: #5521a9;
    outline: 2px solid rgba(82, 33, 168, .05);
}
.form-select { background-position: right 1rem center; }
.comments-box { min-height: 80px; resize: vertical; }
.contact-options-wrap { display: flex; align-items: flex-end; padding-bottom: 5px; }
.contact-options { min-height: 47px; display: flex; align-items: center; gap: 26px; padding-left: 4px; }
.custom-check input[type="checkbox"] { width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; accent-color: #3e35b6; }
.custom-check label { font-size: 14px; }

.brand-dropdown .dropdown-menu { border: 1px solid #d3d8e3; border-radius: 7px; max-height: 260px; overflow: auto; }
.brand-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.brand-list input { margin-right: 7px; accent-color: #3e35b6; }
.brand-list label { font-size: 13px; }
.brand-toggle { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.placeholder-text { color: #7f8792; }

.field-error { color: var(--danger); font-size: 12px; margin-top: 6px; line-height: 1.25; display: block; }
.error-icon::before { content: '!'; display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1.5px solid var(--danger); border-radius: 50%; margin-right: 8px; font-weight: 700; }
.is-invalid { border-color: var(--danger) !important; }
.validation-summary { color: #9f1722; background: #fff1f2; border: 1px solid #ffc9ce; border-radius: 7px; padding: 10px 14px; margin-bottom: 12px; font-size: 12px; }
.validation-summary ul { margin: 5px 0 0; padding-left: 18px; }
.validation-summary:empty { display: none; }

.privacy-row { display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; gap: 3px; }
.privacy-check { display: inline-flex; align-items: center; }
.privacy-row a { color: #53249d; font-weight: 600; text-decoration: underline; }
.privacy-row .field-error { flex-basis: 100%; }
.submit-btn {
    min-height: 48px;
    color: #fff !important;
    font-weight: 600;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(170deg, #5a239e 0%, #154ddd 92%);
    box-shadow: none;
}
.submit-btn:hover { filter: brightness(1.06); }
.privacy-modal .modal-title { font-weight: 700; }
.privacy-modal .modal-body { color: #303a55; font-size: 14px; line-height: 1.55; }

/* Thank-you */
.thanks-shell { padding-bottom: 115px; }
.thanks-card {
    width: min(900px, calc(100% - 10px));
    min-height: 555px;
    margin: 44px auto 0;
    background: #fff;
    border-radius: 16px;
    padding: 58px 50px 54px;
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.success-check { width: 72px; height: 48px; border-left: 9px solid #2c4bc5; border-bottom: 9px solid #2c4bc5; transform: rotate(-45deg); margin: -8px 0 36px; border-radius: 2px; }
.thanks-card h1 { margin: 0 0 22px; font-size: 34px; font-weight: 700; }
.thanks-intro { font-size: 15px; line-height: 1.45; margin-bottom: 34px; }
.thanks-info { width: min(610px, 100%); margin-bottom: 44px; }
.info-block { min-height: 102px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 0 22px; gap: 3px; font-size: 14px; }
.info-block + .info-block { border-left: 1px solid #b8c0d2; }
.info-title { color: #7b818d; margin-bottom: 5px; }
.info-block strong { font-size: 15px; }
.finish-btn { width: 260px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

@media (max-width: 991.98px) {
    .site-shell { padding-top: 28px; }
    .brand-header { height: 98px; }
    .provider-card { width: min(666px, 100%); display: block; min-height: 0; }
    .hero-panel { min-height: 212px; }
    .hero-copy { max-width: 100%; padding: 34px 24px 24px; }
    .hero-copy h1 { font-size: 36px; }
    .hero-copy h1 strong { display: inline; }
    .hero-copy p { max-width: 590px; }
    .hero-lines::before { display: none; }
    .form-panel { padding: 38px 24px 38px; }
    .thanks-card { margin-top: 28px; }
}

@media (max-width: 575.98px) {
    .site-shell { padding: 18px 3px 34px; }
    .site-shell::after { display: none; }
    .brand-header { height: 112px; align-items: center; }
    .brand-logo { width: 160px; }
    .provider-card { border-radius: 16px; }
    .hero-panel { min-height: 210px; }
    .hero-copy { padding: 24px 16px 22px; }
    .eyebrow { font-size: 12px; margin-bottom: 18px; }
    .hero-copy h1 { font-size: 26px; line-height: 1.18; margin-bottom: 16px; }
    .hero-copy h1 strong { display: block; }
    .hero-copy p { font-size: 14px; }
    .form-panel { padding: 24px 16px 16px; }
    .form-heading h2 { font-size: 21px; }
    .form-heading p { font-size: 13px; margin-bottom: 15px; }
    .form-grid { --bs-gutter-y: .85rem; }
    .form-control, .form-select, .brand-toggle { min-height: 49px; }
    .contact-options-wrap { padding-top: 0; padding-bottom: 0; }
    .contact-options { min-height: 31px; padding: 0; }
    .brand-list { grid-template-columns: 1fr; }
    .comments-box { min-height: 78px; }
    .privacy-row { line-height: 1.3; }
    .submit-btn { min-height: 48px; }

    .thanks-shell { padding: 18px 12px 54px; }
    .thanks-card { margin-top: 26px; min-height: 520px; padding: 42px 20px 38px; }
    .success-check { transform: rotate(-45deg) scale(.82); margin-bottom: 28px; }
    .thanks-card h1 { font-size: 27px; }
    .thanks-intro { font-size: 14px; }
    .info-block + .info-block { border-left: 0; border-top: 1px solid #d4d9e2; padding-top: 18px; margin-top: 14px; }
    .thanks-info { margin-bottom: 28px; }
    .finish-btn { width: 100%; max-width: 260px; }
}
