.js-page {
    --js-navy: #102a43;
    --js-navy-deep: #081b2c;
    --js-gold: #b58a42;
    --js-gold-soft: #f6edd9;
    --js-ink: #172b4d;
    --js-muted: #5d7086;
    --js-line: #e3ebf3;
    --js-danger: #b42318;
    max-width: 860px;
    margin: 0 auto 1.5rem;
}

.js-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.25rem;
    padding: 1.75rem 1.5rem 1.5rem;
    color: #fff;
    background:
        radial-gradient(circle at 92% 8%, rgba(181, 138, 66, .38), transparent 16rem),
        linear-gradient(145deg, #081b2c 0%, #102a43 58%, #1b3d62 100%);
    border-radius: 1.35rem;
    box-shadow: 0 18px 40px rgba(8, 27, 44, .18);
}

.js-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #8e682f, #ead7b1, #b58a42);
}

.js-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .85rem;
    padding: .35rem .75rem;
    border: 1px solid rgba(234, 215, 177, .45);
    border-radius: 999px;
    background: rgba(181, 138, 66, .16);
    color: #ead7b1;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.js-hero h1 {
    margin: 0 0 .35rem;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.js-hero .js-so {
    margin: 0 0 .75rem;
    color: #ead7b1;
    font-size: 1.05rem;
    font-weight: 600;
}

.js-hero p {
    max-width: 38rem;
    margin: 0;
    color: rgba(255, 255, 255, .78);
}

.js-points {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.15rem;
}

.js-points span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
}

.js-points i {
    color: #ead7b1;
}

.js-card {
    background: #fff;
    border: 1px solid rgba(16, 42, 67, .06);
    border-radius: 1.35rem;
    box-shadow: 0 16px 40px rgba(16, 42, 67, .08);
    overflow: hidden;
}

.js-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid var(--js-line);
    background: linear-gradient(180deg, #fff 0%, #f8f5ee 100%);
}

.js-card-head h2 {
    margin: 0 0 .2rem;
    color: var(--js-navy);
    font-size: 1.2rem;
}

.js-card-head p {
    margin: 0;
    color: var(--js-muted);
    font-size: .9rem;
}

.js-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    flex-shrink: 0;
}

.js-pill {
    display: inline-flex;
    align-items: center;
    padding: .18rem .5rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.4;
    white-space: nowrap;
}

.js-pill-req {
    background: #fde8e6;
    color: var(--js-danger);
}

.js-pill-opt {
    background: #eef3f8;
    color: #52677d;
}

.js-form {
    padding: .35rem 1.35rem 1.35rem;
}

.js-section {
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--js-line);
}

.js-section:first-child {
    margin-top: .35rem;
    padding-top: .85rem;
    border-top: 0;
}

.js-section-title {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .9rem;
}

.js-section-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: .7rem;
    background: var(--js-navy);
    color: #ead7b1;
    font-size: .95rem;
    flex-shrink: 0;
}

.js-section-title strong {
    display: block;
    color: var(--js-navy);
    font-size: 1rem;
    line-height: 1.2;
}

.js-section-title span {
    display: block;
    color: var(--js-muted);
    font-size: .8rem;
    font-weight: 500;
}

.js-field {
    margin-bottom: .9rem;
}

.js-label-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .4rem;
}

.js-page .form-label {
    display: block;
    margin: 0;
    color: var(--js-ink);
    font-weight: 700;
    line-height: 1.25;
}

.js-page .form-label small {
    display: block;
    margin-top: .12rem;
    color: var(--js-muted);
    font-size: .78rem;
    font-weight: 600;
}

.js-help {
    margin: .35rem 0 0;
    color: var(--js-muted);
    font-size: .78rem;
}

.js-page .form-control,
.js-page .form-select {
    min-height: 2.85rem;
    border: 1px solid #d5e0ea;
    border-radius: .8rem;
    background: #fbfcfe;
    color: var(--js-ink);
}

.js-page textarea.form-control {
    min-height: 8.5rem;
    padding-top: .8rem;
}

.js-page .form-control:focus,
.js-page .form-select:focus {
    border-color: var(--js-gold);
    background: #fff;
    box-shadow: 0 0 0 .22rem rgba(181, 138, 66, .18);
}

.js-page .location-chain {
    margin-bottom: 0;
}

.js-page .location-chain > [class*="col-"] {
    margin-bottom: .15rem;
}

.js-page .location-chain .form-label {
    font-size: .92rem;
}

.js-agree {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    margin: 1.1rem 0 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--js-line);
    border-radius: .9rem;
    background: #f8fafc;
}

.js-agree .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .15rem;
    border-color: #b7c6d6;
    flex-shrink: 0;
}

.js-agree .form-check-input:checked {
    background-color: var(--js-navy);
    border-color: var(--js-navy);
}

.js-agree .form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(181, 138, 66, .22);
}

.js-agree label {
    color: var(--js-ink);
    font-size: .88rem;
    line-height: 1.45;
}

.js-submit {
    width: 100%;
    min-height: 3.25rem;
    border: 0;
    border-radius: .9rem;
    background: linear-gradient(180deg, #1a3a5c 0%, #102a43 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 12px 24px rgba(16, 42, 67, .18);
}

.js-submit:hover,
.js-submit:focus {
    background: linear-gradient(180deg, #21486f 0%, #0d2438 100%);
    color: #fff;
}

.js-submit i {
    color: #ead7b1;
}

.js-back {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .9rem;
    color: var(--js-muted);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.js-back:hover {
    color: var(--js-navy);
}

.js-trust {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: .75rem;
    margin-top: 1rem;
}

.js-trust-intro,
.js-trust a {
    padding: .95rem 1rem;
    border: 1px solid var(--js-line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(16, 42, 67, .04);
}

.js-trust-intro strong {
    display: block;
    margin-bottom: .2rem;
    color: var(--js-navy);
}

.js-trust-intro span,
.js-trust a small {
    display: block;
    color: var(--js-muted);
    font-size: .8rem;
}

.js-trust a {
    color: var(--js-navy);
    text-decoration: none;
}

.js-trust a:hover {
    border-color: rgba(181, 138, 66, .55);
    transform: translateY(-1px);
}

.js-trust a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    margin-bottom: .45rem;
    border-radius: .55rem;
    background: var(--js-gold-soft);
    color: #8e682f;
}

.js-trust a b {
    display: block;
    font-size: .92rem;
    overflow-wrap: anywhere;
}

.public-flash-container:has(.js-page) > .alert {
    max-width: 860px;
    margin: 0 auto 1rem;
    border-left: 4px solid var(--js-danger, #b42318);
}

.js-form.is-submitted input:invalid,
.js-form.is-submitted select:invalid,
.js-form.is-submitted textarea:invalid {
    border-color: #d92d20 !important;
    background: #fff8f7 !important;
    box-shadow: 0 0 0 .18rem rgba(217, 45, 32, .12) !important;
}

.js-form.is-submitted .js-agree:has(input:invalid) {
    border-color: #d92d20;
    background: #fff8f7;
}

.js-success-hero {
    text-align: center;
}

.js-success-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.2rem;
    height: 4.2rem;
    margin-bottom: .85rem;
    border-radius: 50%;
    background: linear-gradient(180deg, #ead7b1, #b58a42);
    color: #102a43;
    font-size: 1.6rem;
    box-shadow: 0 10px 24px rgba(181, 138, 66, .35);
}

.js-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
    margin: 0;
}

.js-summary div {
    padding: .85rem .95rem;
    border: 1px solid var(--js-line);
    border-radius: .9rem;
    background: #fbfcfe;
}

.js-summary dt {
    margin: 0 0 .15rem;
    color: var(--js-muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.js-summary dd {
    margin: 0;
    color: var(--js-navy);
    font-weight: 700;
}

.js-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #fff4d6;
    color: #7a5b12;
    font-size: .82rem;
}

.js-steps {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.js-steps li {
    display: flex;
    gap: .7rem;
    margin-bottom: .7rem;
    color: var(--js-ink);
    font-size: .92rem;
}

.js-steps i {
    color: var(--js-gold);
    margin-top: .2rem;
}

.js-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.15rem;
}

.js-actions .btn {
    min-height: 2.8rem;
}

.js-btn-navy {
    background: #102a43;
    border-color: #102a43;
    color: #fff;
}

.js-btn-navy:hover {
    background: #081b2c;
    border-color: #081b2c;
    color: #fff;
}

@media (max-width: 767.98px) {
    .js-card-head,
    .js-trust {
        display: block;
    }

    .js-legend {
        margin-top: .7rem;
    }

    .js-trust-intro,
    .js-trust a {
        display: block;
        margin-top: .65rem;
    }

    .js-summary {
        grid-template-columns: 1fr;
    }

    .js-hero,
    .js-form,
    .js-card-head {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .js-trust {
        grid-template-columns: 1fr 1fr;
    }

    .js-trust-intro {
        grid-column: 1 / -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-trust a:hover,
    .js-submit:hover {
        transform: none;
    }
}

html[data-theme='dark'] .js-hero h1,
html[data-theme='dark'] .js-hero p {
    color: #fff !important;
}

html[data-theme='dark'] .js-hero .js-so,
html[data-theme='dark'] .js-kicker {
    color: #ead7b1 !important;
}

html[data-theme='dark'] .js-card,
html[data-theme='dark'] .js-card-head,
html[data-theme='dark'] .js-trust-intro,
html[data-theme='dark'] .js-trust a,
html[data-theme='dark'] .js-summary div,
html[data-theme='dark'] .js-agree {
    background: #fff !important;
    color: #172b4d !important;
    border-color: #e3ebf3 !important;
}

html[data-theme='dark'] .js-card-head {
    background: linear-gradient(180deg, #fff 0%, #f8f5ee 100%) !important;
}

html[data-theme='dark'] .js-page .js-card :is(h2, strong, label, .form-label),
html[data-theme='dark'] .js-page .js-trust :is(strong, b),
html[data-theme='dark'] .js-summary dd {
    color: #102a43 !important;
}

html[data-theme='dark'] .js-page .js-card :is(small, .js-help, .js-section-title span),
html[data-theme='dark'] .js-card-head p,
html[data-theme='dark'] .js-trust a small,
html[data-theme='dark'] .js-trust-intro span,
html[data-theme='dark'] .js-summary dt {
    color: #5d7086 !important;
}

html[data-theme='dark'] .js-page .form-control,
html[data-theme='dark'] .js-page .form-select {
    background: #fbfcfe !important;
    color: #172b4d !important;
    border-color: #d5e0ea !important;
}

html[data-theme='dark'] .js-page .form-control::placeholder {
    color: #7d8da0 !important;
}

html[data-theme='dark'] .js-page .form-control:focus,
html[data-theme='dark'] .js-page .form-select:focus {
    background: #fff !important;
    color: #172b4d !important;
    border-color: #b58a42 !important;
    box-shadow: 0 0 0 .22rem rgba(181, 138, 66, .18) !important;
}

html[data-theme='dark'] .js-trust a {
    color: #102a43 !important;
}

.js-form.is-submitted input:invalid,
.js-form.is-submitted select:invalid,
.js-form.is-submitted textarea:invalid,
html[data-theme='dark'] .js-form.is-submitted input:invalid,
html[data-theme='dark'] .js-form.is-submitted select:invalid,
html[data-theme='dark'] .js-form.is-submitted textarea:invalid {
    border-color: #d92d20 !important;
    background: #fff8f7 !important;
    box-shadow: 0 0 0 .18rem rgba(217, 45, 32, .12) !important;
}
