.apply-page {
    background: var(--sa-mist, #f4f6fa);
}

.apply-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 1.75rem 0 1.85rem;
    background: var(
        --gradient-hero,
        linear-gradient(125deg, var(--sa-green-dark, #001a33) 0%, var(--primary, #002d58) 58%, var(--sa-green-light, #1a4d7a) 100%)
    );
}

.apply-hero::after {
    content: "";
    position: absolute;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    bottom: -10rem;
    inset-inline-end: -6rem;
    background: radial-gradient(circle, color-mix(in srgb, var(--secondary, #c5a572) 32%, transparent) 0%, transparent 70%);
    pointer-events: none;
}

.apply-hero .container {
    position: relative;
    z-index: 1;
}

.apply-hero__crumb .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.45);
    background: none;
    padding: 0;
    margin-bottom: 0.85rem;
}

.apply-hero__crumb .breadcrumb-item,
.apply-hero__crumb .breadcrumb-item a,
.apply-hero__crumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
}

.apply-hero__crumb .breadcrumb-item a:hover {
    color: #fff;
}

.apply-hero__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary, #c5a572);
    margin-bottom: 0.35rem;
}

.apply-hero__title {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.45rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.apply-hero__lead {
    max-width: 40rem;
    margin: 0 0 1.1rem;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
    font-size: 0.95rem;
}

.apply-paths {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.apply-paths__item {
    display: inline-flex;
    align-items: center;
    min-height: 2.15rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
}

.apply-paths__item:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.apply-paths__item.is-active {
    background: #fff;
    color: var(--primary, #002d58);
    border-color: #fff;
}

.apply-form-page {
    padding: 1.75rem 0 3.5rem;
}

.apply-form-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 1.1rem;
    box-shadow: 0 18px 48px color-mix(in srgb, var(--sa-green-dark, #001a33) 8%, transparent);
    padding: 1.75rem 1.85rem;
}

.apply-form-section {
    margin-bottom: 1.75rem;
}

.apply-form-section:last-of-type {
    margin-bottom: 0.35rem;
}

.apply-form-section__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eef2f6;
}

.apply-form-section__num {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--primary, #002d58);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.apply-form-section__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--sa-green-dark, #001a33);
}

.apply-form-field .form-label {
    font-weight: 600;
    color: var(--sa-ink, #1a1a1a);
    margin-bottom: 0.4rem;
}

.apply-form-field .form-control,
.apply-form-field .form-select,
.apply-tel .form-control,
.apply-tel .input-group-text {
    border-radius: 0.7rem;
    border-color: #d5dde6;
    min-height: 2.8rem;
}

.apply-tel .input-group-text {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
}

.apply-tel .form-control {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
}

.apply-form-field .form-control:focus,
.apply-form-field .form-select:focus,
.apply-tel .form-control:focus {
    border-color: var(--primary, #002d58);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary, #002d58) 16%, transparent);
}

.apply-form-field__hint {
    font-size: 0.8rem;
    color: var(--sa-muted, #5c6b64);
    margin-top: 0.35rem;
}

.apply-tel {
    direction: ltr;
}

.apply-tel__prefix {
    background: var(--sa-mist, #f7faf8);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--sa-ink, #1a1a1a);
}

.apply-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.55rem;
}

.apply-choice {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.apply-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.apply-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sa-ink, #1a1a1a);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.apply-choice:hover span {
    border-color: color-mix(in srgb, var(--primary, #002d58) 35%, #e2e8f0);
}

.apply-choice input:checked + span {
    border-color: var(--primary, #002d58);
    background: color-mix(in srgb, var(--primary, #002d58) 7%, #fff);
    color: var(--primary, #002d58);
    box-shadow: inset 0 0 0 1px var(--primary, #002d58);
}

.apply-course-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: color-mix(in srgb, var(--primary, #002d58) 5%, #fff);
    border: 1px solid color-mix(in srgb, var(--primary, #002d58) 14%, transparent);
    border-radius: 0.95rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
}

.apply-course-card__img {
    width: 72px;
    height: 72px;
    border-radius: 0.65rem;
    object-fit: cover;
    background: #e5e7eb;
    flex-shrink: 0;
}

.apply-course-card__title {
    font-weight: 800;
    color: var(--sa-green-dark, #001a33);
    margin: 0 0 0.25rem;
}

.apply-course-card__meta {
    font-size: 0.875rem;
    color: var(--sa-muted, #5c6b64);
    margin: 0;
}

.apply-sidebar {
    position: sticky;
    top: 6.5rem;
}

.apply-sidebar-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 1.05rem;
    padding: 1.25rem 1.3rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.apply-sidebar-card--soft {
    background: color-mix(in srgb, var(--primary, #002d58) 5%, #fff);
    border-color: color-mix(in srgb, var(--primary, #002d58) 12%, transparent);
}

.apply-sidebar-card h3 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.95rem;
    color: var(--sa-green-dark, #001a33);
}

.apply-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.apply-steps li {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.55;
}

.apply-steps li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.apply-steps__icon {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: var(--primary, #002d58);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.apply-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.apply-sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.7rem;
    background: #f8fafc;
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.apply-sidebar-links a i {
    width: 1rem;
    color: var(--primary, #002d58);
    text-align: center;
}

.apply-sidebar-links a:hover {
    background: color-mix(in srgb, var(--primary, #002d58) 8%, #fff);
    color: var(--primary, #002d58);
}

.apply-org-points {
    list-style: none;
    margin: 0;
    padding: 0;
}

.apply-org-points li {
    position: relative;
    padding: 0.55rem 0 0.55rem 0;
    padding-inline-start: 1.35rem;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.55;
}

.apply-org-points li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.apply-org-points li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.95rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--secondary, #c5a572);
}

.apply-success-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.apply-success-card__icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary, #002d58) 10%, #fff);
    color: var(--primary, #002d58);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.apply-success-card__ref {
    display: inline-block;
    background: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.4rem 0.9rem;
    font-family: ui-monospace, monospace;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    margin: 0.5rem 0 1rem;
}

.apply-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-top: 0.85rem;
    border-top: 1px solid #eef2f6;
    margin-top: 1.15rem;
}

.apply-submit {
    min-width: 11rem;
    border: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.7rem 1.15rem;
    background: var(
        --gradient-hero,
        linear-gradient(135deg, var(--sa-green-dark, #001a33) 0%, var(--primary, #002d58) 55%, var(--sa-green-light, #1a4d7a) 100%)
    );
}

.apply-form-terms {
    background: var(--sa-mist, #f7faf8);
    border: 1px solid #e8eef3;
    border-radius: 0.85rem;
    padding: 1rem 1.15rem;
    margin-top: 0.5rem;
}

.apply-secure {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0.85rem 0 0;
    font-size: 0.75rem;
    color: var(--sa-muted, #5c6b64);
}

.apply-secure i {
    margin-top: 0.12rem;
    color: var(--primary, #002d58);
}

@media (max-width: 991.98px) {
    .apply-sidebar {
        position: static;
    }

    .apply-form-card {
        padding: 1.25rem;
    }

    .apply-hero {
        padding-top: 1.25rem;
    }
}
