/* ==========================================================================
   Apply journey: Ankodi therapist application
   Landing page (apply/index.php) + scoped polish for the onboarding-layout
   pages (apply/form.php, apply/thank_you.php via .ob-apply-page).
   Palette: --auth/--ob purple #5b4b8a · dark #3d3161 · accent pink #e8788a
   ========================================================================== */

:root {
    --apply-primary: #5b4b8a;
    --apply-primary-dark: #3d3161;
    --apply-primary-light: #7c6bae;
    --apply-accent: #e8788a;
    --apply-accent-deep: #d95f76;
    --apply-ink: #23283b;
    --apply-muted: #6b7280;
    --apply-border: #e8e3f0;
    --apply-surface: rgba(255, 255, 255, 0.92);
    --apply-shadow-sm: 0 1px 3px rgba(61, 49, 97, 0.06);
    --apply-shadow-md: 0 12px 34px rgba(61, 49, 97, 0.12);
    --apply-shadow-lg: 0 24px 60px rgba(61, 49, 97, 0.16);
    --apply-grad: linear-gradient(135deg, #5b4b8a 0%, #7c6bae 60%, #e8788a 130%);
}

/* ==========================================================================
   1 · Landing page
   ========================================================================== */

/* --- Hero --- */
.apply-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    padding: 2.75rem 0 4rem;
}

.apply-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--apply-primary);
    padding-bottom: 0.45rem;
    margin-bottom: 1.15rem;
    border-bottom: 2px solid rgba(232, 120, 138, 0.55);
}

.apply-eyebrow i { font-size: 1.05rem; }

.apply-hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--apply-primary-dark);
    margin: 0 0 1.1rem;
    letter-spacing: -0.01em;
}

.apply-accent { color: var(--apply-accent-deep); }

.apply-hero-lead {
    font-size: 1.02rem;
    line-height: 1.65;
    color: #565d6d;
    max-width: 32rem;
    margin: 0 0 1.6rem;
}

.apply-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.6rem;
}

.apply-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    background: var(--apply-grad);
    background-size: 150% 150%;
    box-shadow: 0 10px 26px rgba(91, 75, 138, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-position 0.3s ease;
}

.apply-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(91, 75, 138, 0.42);
    background-position: 100% 100%;
}

.apply-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--apply-primary-dark);
    text-decoration: none;
    background: var(--apply-surface);
    border: 1px solid var(--apply-border);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.apply-btn-ghost:hover {
    color: var(--apply-primary);
    border-color: rgba(91, 75, 138, 0.4);
    transform: translateY(-1px);
}

.apply-trust-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    margin: 0;
    padding: 0;
}

.apply-trust-row li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4b5563;
}

.apply-trust-row li i {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    background: rgba(91, 75, 138, 0.1);
    color: var(--apply-primary);
    flex-shrink: 0;
}

/* --- Hero visual --- */
.apply-hero-visual {
    position: relative;
    min-height: 520px;
}

.apply-hero-photo {
    position: relative;
    z-index: 1;
    margin: 0;
    height: 520px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--apply-shadow-lg);
}

.apply-hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}

.apply-blob {
    position: absolute;
    inset: -8% -6% auto auto;
    width: 78%;
    height: 82%;
    background: linear-gradient(135deg, rgba(91, 75, 138, 0.16), rgba(232, 120, 138, 0.2));
    border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
    filter: blur(2px);
    z-index: 0;
}

.apply-blob--2 {
    inset: auto auto -6% -8%;
    width: 46%;
    height: 40%;
    background: linear-gradient(135deg, rgba(232, 120, 138, 0.18), rgba(91, 75, 138, 0.1));
    border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
}

.apply-dotted-ring {
    position: absolute;
    top: -26px;
    right: 4%;
    width: 120px;
    height: 120px;
    border: 2px dashed rgba(232, 120, 138, 0.55);
    border-radius: 50%;
    z-index: 1;
    animation: apply-spin 46s linear infinite;
}

@keyframes apply-spin {
    to { transform: rotate(360deg); }
}

.apply-journey-card {
    position: absolute;
    z-index: 2;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    max-width: none;
    margin: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;
    padding: 1.15rem 1.2rem 0.85rem;
    box-shadow: var(--apply-shadow-lg);
}

.apply-journey-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--apply-primary);
    margin: 0 0 0.5rem;
}

.apply-journey-title i { font-size: 1.15rem; color: var(--apply-accent-deep); }

.apply-journey-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.8rem 0;
}

.apply-journey-step + .apply-journey-step { border-top: 1px dashed var(--apply-border); }

.apply-journey-num {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--apply-grad);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(91, 75, 138, 0.3);
}

.apply-journey-step strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--apply-ink);
    margin-bottom: 0.1rem;
}

.apply-journey-step span {
    font-size: 0.78rem;
    color: var(--apply-muted);
    line-height: 1.45;
}

.apply-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    background: #fff;
    border: 1px solid rgba(232, 227, 240, 0.9);
    border-radius: 16px;
    box-shadow: var(--apply-shadow-md);
    animation: apply-float 5.5s ease-in-out infinite;
}

.apply-float--top { top: 8px; right: -14px; }
.apply-float--bottom { bottom: 14px; left: -18px; animation-delay: 1.6s; }

@keyframes apply-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.apply-float-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    background: var(--apply-grad);
    flex-shrink: 0;
}

.apply-float-icon--pink { background: linear-gradient(135deg, #e8788a, #d95f76); }

.apply-float-label {
    margin: 0;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--apply-muted);
}

.apply-float-value {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--apply-primary-dark);
    line-height: 1.25;
}

/* --- Sections --- */
.apply-section { padding: 1.75rem 0; }

.apply-section-head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2.25rem;
}

.apply-section-head .apply-eyebrow { margin-bottom: 0.9rem; }

.apply-section-head h2 {
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    font-weight: 700;
    color: var(--apply-primary-dark);
    margin: 0 0 0.55rem;
    letter-spacing: -0.01em;
}

.apply-section-head p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--apply-muted);
    line-height: 1.6;
}

/* --- How it works: numbered steps --- */
.apply-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    counter-reset: applystep;
}

.apply-step {
    position: relative;
    background: var(--apply-surface);
    border: 1px solid var(--apply-border);
    border-radius: 20px;
    padding: 1.5rem 1.35rem 1.35rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.apply-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--apply-shadow-md);
    border-color: rgba(91, 75, 138, 0.3);
}

.apply-step-num {
    position: absolute;
    top: 0.9rem;
    right: 1.15rem;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(91, 75, 138, 0.28);
    pointer-events: none;
}

.apply-step-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: var(--apply-grad);
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(91, 75, 138, 0.28);
}

.apply-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--apply-ink);
    margin: 0 0 0.4rem;
}

.apply-step p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--apply-muted);
    line-height: 1.6;
}

.apply-admin {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.25rem;
    align-items: center;
}

.apply-admin .apply-section-head {
    text-align: left;
    margin: 0 0 1.35rem;
    max-width: none;
}

.apply-admin-photo {
    margin: 0;
    min-height: 380px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--apply-shadow-md);
}

.apply-admin-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

/* --- Feature rows (2 × 2) --- */
.apply-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.25rem;
}

.apply-feature { display: flex; gap: 1rem; align-items: flex-start; }

.apply-feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px 18px 18px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    background: var(--apply-grad);
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(91, 75, 138, 0.25);
}

.apply-feature:nth-child(even) .apply-feature-icon {
    background: linear-gradient(135deg, #e8788a, #d95f76);
    box-shadow: 0 8px 20px rgba(232, 120, 138, 0.3);
}

.apply-feature h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--apply-ink);
    margin: 0.1rem 0 0.3rem;
}

.apply-feature p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--apply-muted);
    line-height: 1.6;
}

/* --- Quote card --- */
.apply-quote {
    position: relative;
    margin-top: 2.25rem;
    background: linear-gradient(135deg, rgba(91, 75, 138, 0.06), rgba(232, 120, 138, 0.08));
    border: 1px solid rgba(91, 75, 138, 0.14);
    border-radius: 20px;
    padding: 1.6rem 4.25rem 1.6rem 5.25rem;
}

.apply-quote-mark {
    position: absolute;
    left: 1.4rem;
    top: 0.55rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4.2rem;
    line-height: 1;
    color: var(--apply-accent);
    opacity: 0.85;
}

.apply-quote p {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--apply-primary-dark);
}

.apply-quote-by {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--apply-accent-deep);
}

/* --- Requirements cards --- */
.apply-req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.apply-req-card {
    background: var(--apply-surface);
    border: 1px solid var(--apply-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.apply-req-card:hover { transform: translateY(-3px); box-shadow: var(--apply-shadow-md); }

.apply-req-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.apply-req-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px 14px 14px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    background: var(--apply-grad);
    flex-shrink: 0;
}

.apply-req-card:nth-child(2) .apply-req-icon {
    background: linear-gradient(135deg, #e8788a, #d95f76);
}

.apply-req-head h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--apply-primary-dark);
    margin: 0;
}

.apply-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.apply-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.86rem;
    color: #4b5563;
    line-height: 1.55;
    padding: 0.45rem 0;
}

.apply-check-list li + li { border-top: 1px dashed var(--apply-border); }

.apply-check-list li i {
    color: var(--apply-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* --- Final CTA band --- */
.apply-cta {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    background: linear-gradient(135deg, #3d3161 0%, #5b4b8a 55%, #7c6bae 100%);
    border-radius: 26px;
    padding: 2.75rem 2rem;
    text-align: center;
    box-shadow: var(--apply-shadow-lg);
}

.apply-cta-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.apply-cta-orb--1 {
    width: 260px;
    height: 260px;
    top: -110px;
    left: -70px;
    background: radial-gradient(circle, rgba(232, 120, 138, 0.35), transparent 70%);
}

.apply-cta-orb--2 {
    width: 320px;
    height: 320px;
    bottom: -160px;
    right: -90px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
}

.apply-cta .apply-cta-kicker {
    position: relative;
    max-width: none;
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
}

.apply-cta h2 {
    position: relative;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1.35rem;
    letter-spacing: -0.01em;
}

.apply-cta p {
    position: relative;
    max-width: 34rem;
    margin: 0 auto 1.6rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.apply-cta-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.9rem 1.5rem;
}

.apply-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.9rem 1.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--apply-primary-dark);
    text-decoration: none;
    background: #fff;
    box-shadow: 0 10px 26px rgba(20, 14, 40, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.apply-cta-btn:hover {
    color: var(--apply-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(20, 14, 40, 0.45);
}

.apply-cta-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    padding-bottom: 0.15rem;
}

.apply-cta-mail:hover { color: #fff; border-bottom-color: #fff; }

/* ==========================================================================
   2 · Form & thank-you pages (scoped to .ob-apply-page)
   ========================================================================== */

.ob-apply-page .ob-form-panel { max-width: 520px; }

@media (min-width: 992px) {
    .ob-apply-page.ob-body {
        height: 100vh;
        overflow: hidden;
    }

    .ob-apply-page .ob-shell {
        height: 100vh;
        min-height: 0;
        overflow: hidden;
    }

    .ob-apply-page .ob-aside,
    .ob-apply-page .ob-main {
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
    }
}

.apply-modal-open { overflow: hidden; }

.apply-desk {
    position: fixed;
    inset: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.apply-desk[hidden] { display: none !important; }

.apply-desk-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(61, 49, 97, 0.45);
    backdrop-filter: blur(3px);
}

.apply-desk-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(720px, calc(100vh - 3rem));
    overflow: auto;
    background: #fff;
    border-radius: 22px;
    padding: 1.5rem 1.5rem 1.35rem;
    box-shadow: 0 24px 60px rgba(61, 49, 97, 0.28);
}

.apply-desk-dialog.ob-apply-page .ob-form-card {
    overflow: visible;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.apply-desk-kicker {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--apply-primary-dark);
}

.apply-desk-dialog .ob-apply-section-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.apply-panel {
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: 0;
}

.apply-panel[hidden] { display: none !important; }

.apply-panel legend {
    float: none;
    width: 100%;
    padding: 0;
}

.apply-wizard-nav {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.apply-wizard-nav .ob-btn-primary,
.apply-wizard-nav .ob-btn-outline {
    flex: 1;
    width: auto;
    margin-top: 0;
}

.apply-more { margin: 0.1rem 0 1rem; }

.apply-more summary {
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--apply-primary);
}

.apply-more .ob-concern-grid { margin-top: 0.75rem; }

.apply-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.apply-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--apply-border);
    background: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--apply-ink);
    cursor: pointer;
}

.apply-pill:has(input:checked) {
    border-color: var(--apply-primary);
    background: rgba(91, 75, 138, 0.08);
    color: var(--apply-primary-dark);
}

.apply-pill input { accent-color: var(--apply-primary); }

.ob-apply-page .ob-form-card {
    position: relative;
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 10px 40px rgba(61, 49, 97, 0.08);
    overflow: hidden;
}

.ob-apply-page .ob-form-header { margin-bottom: 1.25rem; }

.ob-apply-page .ob-form-header h2 {
    font-size: 1.55rem;
    letter-spacing: -0.01em;
}

.ob-apply-chip {
    width: 46px;
    height: 46px;
    border-radius: 14px 14px 14px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ob-primary), var(--ob-accent));
    box-shadow: 0 8px 20px rgba(91, 75, 138, 0.28);
    margin-bottom: 0.9rem;
}

.ob-apply-page .ob-field .form-control,
.ob-apply-page .ob-field .form-select {
    border-radius: 10px;
    border-color: #e5e0ee;
    padding: 0.62rem 0.85rem;
    background-color: #fdfdfe;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ob-apply-page .ob-field .form-control:focus,
.ob-apply-page .ob-field .form-select:focus {
    border-color: var(--ob-primary-light);
    box-shadow: 0 0 0 4px rgba(91, 75, 138, 0.12);
}

.ob-apply-page .ob-concern-card {
    border-radius: 12px;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.ob-apply-page .ob-concern-card:hover { transform: translateY(-1px); }

.ob-apply-page .ob-btn-primary {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ob-primary) 0%, var(--ob-primary-light) 78%, var(--ob-accent) 140%);
    box-shadow: 0 10px 24px rgba(91, 75, 138, 0.32);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ob-apply-page .ob-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(91, 75, 138, 0.4);
}

.apply-trust-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ob-muted);
    text-align: center;
}

.apply-trust-note i { color: var(--ob-primary); font-size: 1rem; }

/* --- Thank-you page --- */
.ob-apply-page .ob-apply-success { position: relative; }

.ob-apply-success-icon {
    position: relative;
    width: 78px;
    height: 78px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.7rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ob-success), #10b981);
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.32);
    animation: apply-pulse 2.4s ease-out infinite;
}

@keyframes apply-pulse {
    0% { box-shadow: 0 12px 30px rgba(5, 150, 105, 0.32), 0 0 0 0 rgba(5, 150, 105, 0.32); }
    70% { box-shadow: 0 12px 30px rgba(5, 150, 105, 0.32), 0 0 0 20px rgba(5, 150, 105, 0); }
    100% { box-shadow: 0 12px 30px rgba(5, 150, 105, 0.32), 0 0 0 0 rgba(5, 150, 105, 0); }
}

.ob-apply-success-title {
    font-size: 1.55rem;
    letter-spacing: -0.01em;
}

.ob-apply-reference {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--ob-primary), var(--ob-accent)) border-box;
    color: var(--ob-primary-dark);
    font-size: 0.84rem;
    box-shadow: 0 4px 14px rgba(91, 75, 138, 0.12);
}

.ob-apply-page .ob-apply-next-steps li {
    padding-left: 2.9rem;
}

.ob-apply-page .ob-apply-next-steps li::before {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ob-primary), var(--ob-primary-light));
    color: #fff;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(91, 75, 138, 0.25);
}

.ob-apply-page .ob-apply-next-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 32px;
    bottom: 2px;
    border-left: 2px dashed var(--ob-border);
}

.ob-apply-success .d-flex .ob-btn-primary,
.ob-apply-success .d-flex .ob-btn-outline {
    width: auto;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
}

.ob-apply-success .d-flex .ob-btn-outline {
    border: 1px solid var(--ob-border);
    background: #fff;
}

.ob-apply-success .d-flex .ob-btn-outline:hover {
    border-color: rgba(91, 75, 138, 0.4);
    color: var(--ob-primary);
}

/* ==========================================================================
   3 · Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
    .apply-hero {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        padding-bottom: 2.5rem;
    }

    .apply-hero-visual { min-height: 0; }
    .apply-hero-photo { height: 460px; }
    .apply-journey-card { position: absolute; }

    .apply-admin { grid-template-columns: 1fr; }
    .apply-admin .apply-section-head { text-align: center; }
    .apply-admin-photo,
    .apply-admin-photo img { min-height: 240px; }

    .apply-float--top { right: 4px; }
    .apply-float--bottom { left: 4px; }

    .apply-features { grid-template-columns: 1fr; gap: 1.25rem; }
    .apply-req-grid { grid-template-columns: 1fr; }
    .apply-quote { padding: 1.4rem 1.5rem 1.4rem 4.4rem; }
}

@media (max-width: 767.98px) {
    .apply-hero { padding-top: 1.5rem; }

    .apply-blob { width: 92%; }
    .apply-dotted-ring { width: 84px; height: 84px; top: -16px; }

    .apply-steps { grid-template-columns: 1fr; }
    .apply-step-num { font-size: 1.9rem; }

    .apply-float--top { top: -14px; }
    .apply-float--bottom { bottom: -14px; }

    .apply-quote { padding: 1.25rem 1.25rem 1.25rem 3.6rem; }
    .apply-quote-mark { font-size: 3rem; left: 0.9rem; }

    .apply-cta { padding: 2.1rem 1.4rem; }

    .ob-apply-page .ob-form-card { padding: 1.35rem; }
}

/* ==========================================================================
   9 · Terms & Conditions modal (terms.php fragment, opened from forms)
   ========================================================================== */

body.terms-modal-open { overflow: hidden; }

.terms-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(61, 49, 97, 0.55);
    backdrop-filter: blur(2px);
}

.terms-modal {
    position: fixed;
    inset: 0;
    z-index: 1051;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.terms-modal[hidden],
.terms-modal-backdrop[hidden] { display: none; }

.terms-modal-card {
    display: flex;
    flex-direction: column;
    width: min(820px, 100%);
    max-height: min(86vh, 940px);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(61, 49, 97, 0.3);
    overflow: hidden;
}

.terms-modal-card--a4 {
    width: min(210mm, calc(100vw - 2rem));
    max-height: min(297mm, calc(100vh - 2rem));
}

.terms-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: var(--apply-grad);
    color: #fff;
}

.terms-modal-head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.terms-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.terms-modal-close:hover { background: rgba(255, 255, 255, 0.32); }

.terms-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
    color: var(--apply-ink);
    font-size: 0.92rem;
    line-height: 1.65;
    -webkit-overflow-scrolling: touch;
    outline: none;
}

.terms-modal-body h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--apply-primary-dark);
    margin: 1.35rem 0 0.4rem;
}

.terms-modal-body p { margin: 0 0 0.75rem; }

.terms-modal-meta {
    font-size: 0.8rem;
    color: var(--apply-muted);
    border: 1px solid var(--apply-border);
    background: rgba(91, 75, 138, 0.05);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
}

.terms-modal-warning {
    font-size: 0.8rem;
    font-weight: 700;
    color: #a13b52;
    background: rgba(232, 120, 138, 0.12);
    border-left: 3px solid var(--apply-accent);
    border-radius: 0 10px 10px 0;
    padding: 0.65rem 0.85rem;
}

.terms-modal-foot {
    display: flex;
    justify-content: center;
    padding: 0.95rem 1.5rem;
    border-top: 1px solid var(--apply-border);
    background: #fff;
}

.terms-modal-agree {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 999px;
    padding: 0.65rem 1.6rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background: var(--apply-grad);
    box-shadow: var(--apply-shadow-md);
    transition: transform 0.15s ease;
}

.terms-modal-agree:hover { transform: translateY(-1px); }

@media (max-width: 575.98px) {
    .terms-modal { padding: 0.75rem; }
    .terms-modal-body { padding: 1.1rem 1.15rem; }
}

.apply-portrait {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.apply-portrait-frame {
    width: 84px;
    height: 108px;
    flex: 0 0 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #ddd6ea;
    background: #f7f5fb;
    color: var(--apply-primary);
    font-size: 1.7rem;
}

.apply-portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.apply-portrait input[type="file"] { font-size: 0.84rem; max-width: 100%; }

/* ── Application status tracker ── */
.as-lookup, .as-status { max-width: 560px; margin: 0 auto; padding: 2rem 0 2.5rem; }
.as-lookup { text-align: center; }
.as-form { text-align: left; margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.as-form .ob-field label { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.3rem; display: block; }
.as-hero-icon {
    width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 22px;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff;
    background: linear-gradient(135deg, var(--ob-primary, #5b4b8a), var(--ob-accent, #e8788a));
    box-shadow: 0 14px 30px rgba(91, 75, 138, 0.28);
}
.as-alert {
    display: flex; gap: 0.5rem; align-items: flex-start; text-align: left; margin-top: 1rem;
    padding: 0.75rem 0.9rem; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 0.88rem;
}
.as-alert i { font-size: 1.2rem; }
.as-ref {
    text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--ob-primary, #5b4b8a); margin: 0 0 1rem;
}
.as-headline { text-align: center; }
.as-headline h1 { font-size: 1.55rem; font-weight: 800; color: #1f1a2e; letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.as-headline p { color: #5d5672; font-size: 0.98rem; line-height: 1.6; margin: 0 auto; max-width: 460px; }
.as-headline.is-success .as-hero-icon { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 14px 30px rgba(5, 150, 105, 0.3); }
.as-headline.is-muted .as-hero-icon { background: linear-gradient(135deg, #8a849c, #b8b1c9); box-shadow: none; }
.as-card {
    margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: 18px; background: #fff;
    border: 1px solid #ece8f4; box-shadow: 0 8px 24px rgba(61, 49, 97, 0.06);
}
.as-interview { display: flex; gap: 0.85rem; align-items: flex-start; background: #f6f2ff; border-color: #e4dcf7; }
.as-interview > i { font-size: 1.7rem; color: var(--ob-primary, #5b4b8a); }
.as-interview strong { display: block; color: #1f1a2e; font-size: 1rem; }
.as-interview span { display: block; color: #5d5672; font-size: 0.88rem; }
.as-interview p { margin: 0.45rem 0 0; font-size: 0.88rem; color: #3f3a4f; word-break: break-word; }
.as-timeline {
    list-style: none; margin: 1.6rem 0 0; padding: 1.1rem 1.2rem; border-radius: 18px; background: #fff;
    border: 1px solid #ece8f4; box-shadow: 0 8px 24px rgba(61, 49, 97, 0.06);
}
.as-timeline li { position: relative; display: flex; gap: 0.85rem; padding: 0 0 1.15rem; }
.as-timeline li:last-child { padding-bottom: 0; }
.as-timeline li::before {
    content: ""; position: absolute; left: 13px; top: 28px; bottom: 2px; width: 2px; background: #ece8f4;
}
.as-timeline li:last-child::before { display: none; }
.as-timeline li.is-done::before { background: var(--ob-primary, #5b4b8a); }
.as-dot {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #ddd6ea; background: #fff;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; z-index: 1;
}
.as-timeline li.is-done .as-dot { background: var(--ob-primary, #5b4b8a); border-color: var(--ob-primary, #5b4b8a); }
.as-timeline li.is-current .as-dot { border-color: var(--ob-primary, #5b4b8a); box-shadow: 0 0 0 5px rgba(91, 75, 138, 0.14); }
.as-timeline li.is-current .as-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ob-primary, #5b4b8a); animation: asPulse 1.6s ease-in-out infinite; }
.as-timeline.is-closed li:last-child .as-dot { background: #8a849c; border-color: #8a849c; }
.as-timeline strong { display: block; color: #1f1a2e; font-size: 0.95rem; }
.as-timeline span { display: block; color: #8a849c; font-size: 0.82rem; }
.as-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.5rem; }
.as-help { text-align: center; color: #8a849c; font-size: 0.82rem; margin: 1.1rem 0 0; }
.as-help a { color: var(--ob-primary, #5b4b8a); font-weight: 700; }
@keyframes asPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.7); opacity: 0.6; } }
@media (max-width: 575px) {
    .as-lookup, .as-status { padding-top: 1.2rem; }
    .as-headline h1 { font-size: 1.3rem; }
    .as-actions > a { flex: 1 1 100%; justify-content: center; }
}

.ob-apply-tracker-note {
    display: flex; gap: 0.6rem; align-items: center; justify-content: center; flex-wrap: wrap;
    margin: 1rem auto 0; font-size: 0.88rem; color: #5d5672;
}
.ob-apply-tracker-note i { color: #059669; font-size: 1.15rem; }

.as-hi { margin: 0 0 0.15rem; font-weight: 700; color: var(--ob-primary, #5b4b8a); font-size: 0.95rem; }
.as-actions a, .as-lookup a, .ob-apply-success a.ob-btn-outline, .ob-apply-success a.ob-btn-primary { text-decoration: none; }

/* Hero headline: split the accent line evenly instead of leaving one word alone */
.apply-hero h1 .apply-accent { display: inline-block; text-wrap: balance; }

/* ── Profile photo card (last step of the application) ── */
.apply-photo-field { margin-top: 0.4rem; }
.apply-photo-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.45rem; color: var(--apply-primary-dark); }
.apply-photo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1.5px dashed #cfc5e4;
    border-radius: 18px;
    background: linear-gradient(135deg, #faf8fe 0%, #f4effb 100%);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.apply-photo:hover,
.apply-photo:focus-within,
.apply-photo.is-dragging {
    border-color: var(--apply-primary);
    background: #f3eefb;
    box-shadow: 0 0 0 4px rgba(91, 75, 138, 0.1);
}
.apply-photo.has-photo { border-style: solid; border-color: #d9cfee; background: #fff; }
.apply-photo.is-invalid { border-color: #dc2626; background: #fef6f6; }
.apply-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.apply-photo-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--apply-primary-light);
    font-size: 2rem;
    box-shadow: 0 6px 18px rgba(61, 49, 97, 0.12);
}
.apply-photo-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
}
.apply-photo-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--apply-primary);
    color: #fff;
    font-size: 0.95rem;
    border: 2px solid #fff;
}
.apply-photo-badge.is-done { background: #16a34a; }
.apply-photo-copy { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.apply-photo-copy strong { font-size: 0.98rem; color: var(--apply-primary-dark); }
.apply-photo-copy > span:not(.apply-photo-action) {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #6d657c;
    overflow-wrap: anywhere;
}
.apply-photo-action {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    background: var(--apply-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}
.apply-photo.has-photo .apply-photo-action { background: #efeaf8; color: var(--apply-primary-dark); }
.apply-photo-meta { margin: 0.4rem 0 0; font-size: 0.76rem; color: #8a849c; }
.apply-photo-error { margin: 0.35rem 0 0; font-size: 0.82rem; font-weight: 600; color: #dc2626; display: flex; align-items: center; gap: 0.3rem; }
.apply-photo-error.d-none { display: none !important; }
@media (max-width: 400px) {
    .apply-photo { gap: 0.8rem; padding: 0.9rem; }
    .apply-photo-avatar { width: 64px; height: 64px; font-size: 1.7rem; }
}

/* The photo card is a <label>; beat the generic .ob-field label rule. */
.ob-field label.apply-photo { display: flex; margin: 0; font-weight: 400; }

/* ── Phone verification (step 1) ── */
.apply-verified-chip { display: inline-flex; align-items: center; gap: 0.2rem; margin-left: 0.4rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: #ecfdf3; color: #15803d; font-size: 0.72rem; font-weight: 700; vertical-align: middle; }
.apply-verified-chip[hidden] { display: none; }
.apply-otp { text-align: center; padding: 0.4rem 0 0.2rem; }
.apply-otp[hidden] { display: none; }
.apply-otp-icon {
    width: 60px; height: 60px; margin: 0 auto 0.8rem; border-radius: 20px;
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff;
    background: linear-gradient(135deg, var(--apply-primary), #e8788a);
    box-shadow: 0 12px 26px rgba(91, 75, 138, 0.28);
}
.apply-otp-title { font-size: 1.15rem; font-weight: 800; color: var(--apply-primary-dark); margin: 0 0 0.3rem; }
.apply-otp-lead { font-size: 0.9rem; color: #6d657c; margin: 0 auto 1rem; max-width: 320px; }
.apply-otp-lead strong { color: var(--apply-primary-dark); white-space: nowrap; }
.apply-otp-cells { display: flex; justify-content: center; gap: 0.45rem; }
.apply-otp-cell {
    width: 46px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 800; color: var(--apply-primary-dark);
    border: 1.5px solid #ddd5ec; border-radius: 14px; background: #fcfbfe; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.apply-otp-cell:focus { border-color: var(--apply-primary); background: #fff; box-shadow: 0 0 0 4px rgba(91, 75, 138, 0.12); }
.apply-otp-cells.is-invalid .apply-otp-cell { border-color: #dc2626; }
.apply-otp-error { margin: 0.7rem 0 0; color: #dc2626; font-size: 0.84rem; font-weight: 600; }
.apply-otp-dev { margin: 0.7rem auto 0; max-width: 320px; padding: 0.5rem 0.75rem; border-radius: 10px; background: #fff8e6; color: #7a5a00; font-size: 0.8rem; }
.apply-otp-error[hidden], .apply-otp-dev[hidden] { display: none; }
.apply-otp-links { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 1rem; color: #b5aec4; }
.apply-otp-link { border: 0; background: none; padding: 0.2rem; color: var(--apply-primary); font-weight: 700; font-size: 0.85rem; }
.apply-otp-link:disabled { color: #9a94ab; font-weight: 600; }
@media (max-width: 380px) {
    .apply-otp-cells { gap: 0.3rem; }
    .apply-otp-cell { width: 40px; height: 50px; font-size: 1.2rem; }
}
