/* ── Apply Now page ── */
.an-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 88px 0 72px;
}
.an-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.an-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(11, 42, 74, .95) 0%, rgba(16, 24, 40, .88) 45%, rgba(36, 28, 48, .92) 100%);
}
.an-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.an-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 40px;
    align-items: center;
}
.an-hero__copy { max-width: 660px; }
.an-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rsbt-gold);
}
.an-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--rsbt-gold);
}
.an-hero__title {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.02em;
}
.an-hero__title em {
    font-style: normal;
    color: #f0dca0;
}
.an-hero__subtitle {
    margin: 14px 0 0;
    font-size: 15px;
    color: #d6b565;
    font-weight: 600;
}
.an-hero__tagline {
    margin: 18px 0 0;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.55;
    color: #e5e7eb;
    font-weight: 400;
}
.an-breadcrumb {
    margin-top: 28px;
    font-size: 13px;
    color: #9ca3af;
}
.an-breadcrumb a { color: #d6b565; }
.an-breadcrumb a:hover { text-decoration: underline; }
.an-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.an-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
}
.an-badge--gold {
    background: rgba(214, 181, 101, .2);
    border: 1px solid rgba(214, 181, 101, .45);
    color: #f0dca0;
}
.an-badge--light {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #e5e7eb;
}
.an-hero__visual {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .12);
}
.an-hero__visual img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

/* ── Form shell ── */
.an-form-section {
    padding: 56px 0 80px;
    background: linear-gradient(180deg, #fbf8f2 0%, #fff 120px);
}
.an-form-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.an-steps {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 6px;
}
.an-step-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e8e0cf;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.an-step-btn:hover {
    border-color: #d6b565;
    background: #fffdf7;
}
.an-step-btn.is-active {
    border-color: #0b2a4a;
    background: #0b2a4a;
    color: #fff;
    box-shadow: 0 10px 28px -14px rgba(11, 42, 74, .65);
}
.an-step-btn.is-active .an-step-num {
    background: var(--rsbt-gold);
    color: #0b2a4a;
}
.an-step-btn.is-complete .an-step-num {
    background: #d1fae5;
    color: #065f46;
}
.an-step-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f4eee1;
    color: #0b2a4a;
    font-size: 11px;
    font-weight: 700;
}

.an-form-card {
    background: #fff;
    border: 1px solid #e8e0cf;
    border-radius: 16px;
    box-shadow: 0 18px 50px -30px rgba(11, 42, 74, .35);
    overflow: hidden;
}
.an-form-card__head {
    padding: 28px 32px 20px;
    border-bottom: 1px solid #efeae0;
    background: linear-gradient(180deg, #fff 0%, #fcfaf5 100%);
}
.an-form-card__head h2 {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: #0b2a4a;
    letter-spacing: -.01em;
}
.an-form-card__head p {
    margin: 8px 0 0;
    color: #6b7688;
    font-size: 15px;
    line-height: 1.55;
}
.an-form-card__body {
    padding: 32px 36px 36px;
}
.an-panel {
    display: none;
}
.an-panel.is-active {
    display: block;
    animation: anFadeIn .35s ease;
}
.an-panel-head {
    margin: 0 0 28px;
    padding: 0 0 20px;
    border-bottom: 1px solid #efeae0;
}
@keyframes anFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.an-panel-title {
    margin: 0 0 10px;
    padding: 0;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #0b2a4a;
}
.an-panel-title:focus {
    outline: none;
}
.an-panel-desc {
    margin: 0;
    color: #6b7688;
    font-size: 15px;
    line-height: 1.6;
}
.an-panel-subhead {
    margin: 32px 0 20px;
    padding-top: 24px;
    border-top: 1px solid #efeae0;
}
.an-panel-subhead .an-panel-title {
    margin-bottom: 0;
}
.an-field-grid {
    display: grid;
    gap: 20px;
}
.an-field-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.an-field-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.an-field label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #28313f;
}
.an-field label .req {
    color: #b45309;
    font-weight: 700;
}
.an-field > span {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #28313f;
}
.an-field input,
.an-field select,
.an-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d2c4;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    color: #1f2937;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.an-field input:focus,
.an-field select:focus,
.an-field textarea:focus {
    outline: none;
    border-color: #0b2a4a;
    box-shadow: 0 0 0 3px rgba(11, 42, 74, .1);
}
.an-field textarea { resize: vertical; min-height: 100px; }
.an-field--span2 { grid-column: span 2; }
.an-field--span3 { grid-column: span 3; }

.an-level-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}
.an-level-option {
    position: relative;
}
.an-level-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.an-level-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #d8d2c4;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.an-level-option input:checked + span {
    border-color: #0b2a4a;
    background: #0b2a4a;
    color: #fff;
}
.an-level-option input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(11, 42, 74, .15);
}

.an-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.an-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #d8d2c4;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.an-radio-pill:has(input:checked) {
    border-color: #0b2a4a;
    background: #f4f7fb;
}
.an-radio-pill input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #0b2a4a;
}

.an-qual-block {
    padding: 24px;
    border: 1px solid #efeae0;
    border-radius: 12px;
    background: #fcfaf5;
    margin-bottom: 20px;
}
.an-qual-block h3 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #0b2a4a;
}

.an-pdf-link {
    margin: 18px 0 0;
}
.an-pdf-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #f0dca0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.an-pdf-link a:hover {
    color: #fff;
}
.an-panel-sublabel {
    margin: 22px 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #0b2a4a;
}
.an-supporting-docs {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}
.an-doc-upload {
    padding: 14px 16px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #f8fafc;
}
.an-doc-upload__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0b2a4a;
}
.an-doc-upload__hint {
    margin: 6px 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}
.an-doc-upload input[type="file"] {
    display: block;
    width: 100%;
    font-size: 13px;
}
.an-declaration-box--confirm {
    background: #eef4fb;
    border-color: #c5d4e8;
}
.an-submit-note {
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid #c9a24a;
    border-radius: 10px;
    background: #fbf7ef;
    font-size: 14px;
    line-height: 1.5;
    color: #334155;
}
.an-submit-note strong {
    display: block;
    margin-bottom: 6px;
    color: #0b2a4a;
}
.an-submit-note a {
    color: #0b2a4a;
    font-weight: 600;
    text-decoration: underline;
}
.an-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.an-checklist li {
    font-size: 14px;
    color: #374151;
    line-height: 1.45;
}
.an-checklist li label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}
.an-checklist input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #0b2a4a;
}

.an-declaration-box {
    padding: 18px 20px;
    border: 1px solid #e8e0cf;
    border-radius: 10px;
    background: #fffdf7;
    margin-bottom: 16px;
}
.an-declaration-box p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
}
.an-declaration-box p:last-child { margin-bottom: 0; }

.an-form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #efeae0;
}
.an-btn-prev {
    padding: 11px 20px;
    border: 1px solid #d8d2c4;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.an-btn-prev:hover:not(:disabled) {
    border-color: #0b2a4a;
    background: #f8fafc;
}
.an-btn-prev:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.an-btn-next,
.an-form-card button[type="submit"] {
    padding: 12px 24px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #0b2a4a, #1a3d5c);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
}
.an-btn-next:hover,
.an-form-card button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(11, 42, 74, .55);
}
.an-form-card button[type="submit"] {
    background: linear-gradient(135deg, #c6a15b, #d8b978);
    color: #0b2a4a;
}

.an-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 18px;
}
.an-side-card {
    padding: 22px 24px;
    border: 1px solid #e8e0cf;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 34px -24px rgba(11, 42, 74, .4);
}
.an-side-card h3 {
    margin: 0 0 12px;
    font-family: "Poppins", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #0b2a4a;
}
.an-side-card p,
.an-side-card li {
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
}
.an-side-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.an-side-card li {
    position: relative;
    padding-left: 16px;
}
.an-side-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rsbt-gold);
}
.an-side-card a { color: #0b2a4a; font-weight: 600; }
.an-side-card a:hover { text-decoration: underline; }
.an-side-card--navy {
    background: linear-gradient(160deg, #0b2a4a, #071d34);
    border-color: #0b2a4a;
    color: #dde6f0;
}
.an-side-card--navy h3 { color: #f0dca0; }
.an-side-card--navy p,
.an-side-card--navy li { color: #c8d3e2; }
.an-side-card--navy a { color: #f0dca0; }

.an-success {
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 14px;
    font-weight: 500;
}
.an-form-error {
    margin: 4px 0 0;
    font-size: 12px;
    color: #b91c1c;
    font-weight: 500;
}
.an-conditional {
    display: none;
    margin-top: 12px;
}
.an-conditional.is-visible { display: block; }

.an-photo-upload {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 20px;
    border: 1px dashed #d8d2c4;
    border-radius: 10px;
    background: #fcfaf5;
    margin-bottom: 22px;
}
.an-photo-upload__frame {
    flex-shrink: 0;
    width: 88px;
    height: 113px;
    border: 1px solid #d8d2c4;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    display: grid;
    place-items: center;
    position: relative;
}
.an-photo-upload__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.an-photo-upload__placeholder {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.35;
    padding: 8px;
}
.an-photo-upload__body {
    flex: 1;
    min-width: 0;
}
.an-photo-upload__label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0b2a4a;
}
.an-photo-upload__hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6b7688;
    line-height: 1.45;
}
.an-photo-upload__body input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8d2c4;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}
.an-photo-upload__body input[type="file"]:focus {
    outline: none;
    border-color: #0b2a4a;
    box-shadow: 0 0 0 3px rgba(11, 42, 74, .1);
}
.an-photo-upload__meta {
    margin: 8px 0 0;
    font-size: 12px;
    color: #065f46;
    font-weight: 500;
}
.an-photo-upload__error {
    margin: 8px 0 0;
}
.an-photo-upload.is-invalid {
    border-color: #fca5a5;
    background: #fff7f7;
}

.an-cv-upload {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 20px 22px;
    margin-top: 24px;
    border: 1px dashed #d8d2c4;
    border-radius: 10px;
    background: #fcfaf5;
}
.an-cv-upload__icon {
    flex-shrink: 0;
    width: 56px;
    height: 68px;
    border: 1px solid #d8d2c4;
    border-radius: 6px;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #0b2a4a;
}
.an-cv-upload__body {
    flex: 1;
    min-width: 0;
}
.an-cv-upload__label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0b2a4a;
}
.an-cv-upload__hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #6b7688;
    line-height: 1.5;
}
.an-cv-upload__body input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d2c4;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}
.an-cv-upload__body input[type="file"]:focus {
    outline: none;
    border-color: #0b2a4a;
    box-shadow: 0 0 0 3px rgba(11, 42, 74, .1);
}
.an-cv-upload__meta {
    margin: 10px 0 0;
    font-size: 12px;
    color: #065f46;
    font-weight: 500;
}
.an-cv-upload.is-invalid {
    border-color: #fca5a5;
    background: #fff7f7;
}
.an-city-status {
    margin: 8px 0 0;
    font-size: 12px;
    color: #6b7688;
}
.an-field select:disabled {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .an-form-layout {
        grid-template-columns: 1fr;
    }
    .an-steps {
        position: static;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .an-sidebar {
        position: static;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}
@media (max-width: 768px) {
    .an-hero__inner { grid-template-columns: 1fr; }
    .an-hero__visual { display: none; }
    .an-field-grid--2,
    .an-field-grid--3,
    .an-level-grid {
        grid-template-columns: 1fr;
    }
    .an-field--span2,
    .an-field--span3 { grid-column: span 1; }
    .an-form-card__head,
    .an-form-card__body { padding-left: 20px; padding-right: 20px; }
    .an-photo-upload { flex-direction: column; align-items: stretch; }
    .an-photo-upload__frame { margin: 0 auto; }
    .an-cv-upload { flex-direction: column; align-items: stretch; }
    .an-cv-upload__icon { margin: 0 auto; }
    .an-form-nav { flex-direction: column-reverse; align-items: stretch; }
    .an-btn-prev,
    .an-btn-next,
    .an-form-card button[type="submit"] { width: 100%; text-align: center; }
}
