﻿.wf-apply-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background: radial-gradient(circle at 0% 12%, rgba(196,135,54,0.16), transparent 30%), radial-gradient(circle at 88% 8%, rgba(72,98,255,0.14), transparent 30%), linear-gradient(180deg, #05070c 0%, #060912 42%, #05070c 100%);
    color: #f5f7fb;
    padding: 72px 0 76px;
}

.wf-apply-shell {
    width: 100%;
    position: relative;
    z-index: 2;
}

.wf-apply-shell-wide {
    padding-left: clamp(22px, 2.5vw, 48px);
    padding-right: clamp(22px, 2.5vw, 48px);
}

.wf-apply-hero {
    margin-bottom: 30px;
    max-width: 1180px;
}

.wf-apply-kicker-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.wf-apply-kicker,
.wf-apply-sidebar-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: #d6a760;
    background: rgba(196,135,54,0.08);
    border: 1px solid rgba(196,135,54,0.16);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.wf-apply-kicker-line {
    width: 68px;
    height: 1px;
    background: linear-gradient(90deg, rgba(196,135,54,0.50), transparent);
}

.wf-apply-hero h1 {
    margin: 0;
    max-width: 980px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(2.45rem, 4.6vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.075em;
    color: #f7f8fb;
}

.wf-apply-hero p {
    margin: 18px 0 0;
    max-width: 900px;
    color: rgba(226,232,244,0.82);
    font-size: 1.02rem;
    line-height: 1.9;
}

.wf-apply-success,
.wf-apply-form-card,
.wf-apply-sidebar-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 28px;
    background: radial-gradient(circle at 12% 0%, rgba(255,255,255,0.055), transparent 30%), linear-gradient(180deg, rgba(24,28,39,0.84) 0%, rgba(11,14,23,0.96) 100%);
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 18px 42px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.42s cubic-bezier(.22,1,.36,1), border-color 0.36s ease, box-shadow 0.36s ease, background 0.36s ease;
}

    .wf-apply-form-card::before,
    .wf-apply-sidebar-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: radial-gradient(circle at 14% 16%, rgba(255,255,255,0.05), transparent 34%), linear-gradient(180deg, rgba(255,255,255,0.018), transparent 56%);
    }

    .wf-apply-form-card:hover,
    .wf-apply-sidebar-card:hover {
        border-color: rgba(196,135,54,0.20);
        box-shadow: 0 28px 64px rgba(0,0,0,0.42), 0 0 0 1px rgba(196,135,54,0.05), inset 0 1px 0 rgba(255,255,255,0.06);
    }

.wf-apply-success {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 22px;
    padding: 20px 22px;
    color: #d8ffe2;
    border-color: rgba(89,201,116,0.30);
    background: radial-gradient(circle at 0% 0%, rgba(89,201,116,0.18), transparent 30%), linear-gradient(180deg, rgba(16,46,27,0.88) 0%, rgba(8,24,15,0.96) 100%);
}

.wf-apply-success-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(89,201,116,0.14);
    border: 1px solid rgba(89,201,116,0.24);
    color: #baf2c7;
    font-size: 1.35rem;
}

.wf-apply-success strong,
.wf-apply-success span {
    display: block;
}

.wf-apply-success strong {
    margin-bottom: 4px;
    color: #f5fff7;
    font-size: 1rem;
}

.wf-apply-success span {
    color: rgba(216,255,226,0.86);
    line-height: 1.65;
}

.wf-apply-form-card {
    padding: clamp(24px, 2vw, 34px);
}

.wf-apply-form-intro {
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

    .wf-apply-form-intro h2 {
        margin: 14px 0 8px;
        color: #f7f8fb;
        font-family: 'Manrope', sans-serif;
        font-size: clamp(1.45rem, 2vw, 2rem);
        line-height: 1.08;
        letter-spacing: -0.05em;
    }

    .wf-apply-form-intro p {
        margin: 0;
        max-width: 860px;
        color: rgba(226,232,244,0.72);
        line-height: 1.75;
    }

.wf-apply-sidebar {
    display: grid;
    gap: 18px;
}

.wf-apply-sidebar-card {
    padding: 24px;
}

    .wf-apply-sidebar-card h3 {
        margin: 16px 0 18px;
        color: #f7f8fb;
        font-family: 'Manrope', sans-serif;
        font-size: 1.4rem;
        line-height: 1.2;
        letter-spacing: -0.035em;
    }

.wf-apply-role-meta {
    display: grid;
    gap: 14px;
}

    .wf-apply-role-meta div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .wf-apply-role-meta label {
        color: #d6a760;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.10em;
        text-transform: uppercase;
    }

    .wf-apply-role-meta span {
        color: rgba(230,236,245,0.92);
        line-height: 1.6;
        font-weight: 700;
    }

.wf-apply-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

    .wf-apply-skill-tags span {
        min-height: 30px;
        padding: 0 12px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        color: #d6a760;
        background: rgba(196,135,54,0.08);
        border: 1px solid rgba(196,135,54,0.16);
    }

.wf-apply-checklist {
    margin: 18px 0 0;
    padding-left: 18px;
    color: rgba(226,232,244,0.84);
    line-height: 1.9;
}

.wf-apply-note-card p {
    margin: 16px 0 0;
    color: rgba(226,232,244,0.82);
    line-height: 1.8;
}

.wf-apply-form-card label {
    display: block;
    margin-bottom: 8px;
    color: rgba(235,240,248,0.92);
    font-weight: 800;
    font-size: 0.92rem;
}

    .wf-apply-form-card label em,
    .wf-checkbox-wrap em {
        color: #d6a760;
        font-style: normal;
    }

.wf-input,
.wf-textarea,
.wf-file {
    width: 100%;
    border-radius: 16px;
    outline: none;
    color: #f3f6fb;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    font-size: 0.98rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.wf-input,
.wf-file {
    min-height: 58px;
    padding: 0 17px;
}

.wf-textarea {
    padding: 17px;
    resize: vertical;
    min-height: 168px;
}

    .wf-input:focus,
    .wf-textarea:focus,
    .wf-file:focus,
    .wf-file-native:focus + .wf-file-trigger {
        border-color: rgba(196,135,54,0.34);
        box-shadow: 0 0 0 4px rgba(196,135,54,0.10), inset 0 1px 0 rgba(255,255,255,0.06);
        background: rgba(255,255,255,0.06);
    }

.wf-input-invalid,
.wf-input-invalid:focus,
.wf-file-native.wf-input-invalid + .wf-file-trigger {
    border-color: rgba(255,112,112,0.58) !important;
    box-shadow: 0 0 0 4px rgba(255,112,112,0.10), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}

.wf-field-help,
.wf-summary-meter {
    display: inline-block;
    margin-top: 8px;
    color: rgba(226,232,244,0.58);
    font-size: 0.84rem;
}

.wf-validation-summary,
.wf-field-error {
    color: #ffb4b4;
}

.wf-validation-summary {
    margin-bottom: 18px;
    line-height: 1.7;
}

.wf-field-error {
    display: block;
    min-height: 18px;
    margin-top: 7px;
    font-size: 0.86rem;
    font-weight: 700;
}

.wf-checkbox-wrap {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0 !important;
}

    .wf-checkbox-wrap input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 5px;
        accent-color: #d9ab5e;
    }

    .wf-checkbox-wrap span {
        color: rgba(226,232,244,0.84);
        line-height: 1.7;
    }

.wf-file-upload {
    position: relative;
}

.wf-file-native {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.wf-file-trigger {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 74px;
    padding: 14px 16px !important;
    border-radius: 18px;
    margin: 0 !important;
    cursor: pointer;
    background: radial-gradient(circle at 0% 0%, rgba(196,135,54,0.10), transparent 34%), rgba(255,255,255,0.045);
    border: 1px dashed rgba(214,167,96,0.36);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

    .wf-file-trigger:hover {
        transform: translateY(-2px);
        border-color: rgba(214,167,96,0.62);
        background: radial-gradient(circle at 0% 0%, rgba(196,135,54,0.16), transparent 34%), rgba(255,255,255,0.06);
        box-shadow: 0 16px 36px rgba(0,0,0,0.24);
    }

.wf-file-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d6a760;
    background: rgba(196,135,54,0.12);
    border: 1px solid rgba(196,135,54,0.18);
    font-size: 1.18rem;
}

.wf-file-copy {
    min-width: 0;
}

    .wf-file-copy strong,
    .wf-file-copy small {
        display: block;
    }

    .wf-file-copy strong {
        color: #f7f8fb;
        font-weight: 900;
        margin-bottom: 4px;
    }

    .wf-file-copy small {
        color: rgba(226,232,244,0.64);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.wf-file-action {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #17110a;
    background: linear-gradient(135deg, #e2b35f, #c48736);
    box-shadow: 0 12px 24px rgba(196,135,54,0.24);
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.wf-apply-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.wf-apply-submit-btn,
.wf-apply-back-btn {
    min-height: 54px;
    padding: 0 22px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none !important;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.32s cubic-bezier(.22,1,.36,1), box-shadow 0.32s ease, border-color 0.32s ease, background 0.32s ease;
}

.wf-apply-submit-btn {
    border: 0;
    color: #17110a;
    background: linear-gradient(135deg, #e3b660 0%, #c48736 100%);
    box-shadow: 0 16px 34px rgba(196,135,54,0.30), inset 0 1px 0 rgba(255,255,255,0.22);
}

    .wf-apply-submit-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 22px 44px rgba(196,135,54,0.36), inset 0 1px 0 rgba(255,255,255,0.24);
    }

.wf-apply-back-btn {
    color: #f5f7fb;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
}

    .wf-apply-back-btn:hover {
        transform: translateY(-3px);
        color: #f5f7fb;
        border-color: rgba(196,135,54,0.24);
        background: rgba(255,255,255,0.065);
        box-shadow: 0 16px 32px rgba(0,0,0,0.24);
    }

@media (max-width: 991.98px) {
    .wf-file-trigger {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .wf-file-action {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .wf-apply-page {
        padding: 52px 0;
    }

    .wf-apply-shell-wide {
        padding-left: 18px;
        padding-right: 18px;
    }

    .wf-apply-hero h1 {
        font-size: clamp(2.1rem, 10vw, 3.1rem);
        line-height: 0.99;
    }

    .wf-apply-hero p {
        font-size: 0.96rem;
        line-height: 1.82;
    }

    .wf-apply-form-card,
    .wf-apply-sidebar-card {
        padding: 22px;
        border-radius: 22px;
    }

    .wf-apply-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wf-apply-submit-btn,
    .wf-apply-back-btn {
        width: 100%;
    }
}

.wf-input-locked {
    cursor: not-allowed;
    color: rgba(226,232,244,0.88);
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.025)) !important;
    border-color: rgba(214,167,96,0.16) !important;
}

    .wf-input-locked:focus {
        box-shadow: none !important;
    }

/* Notice Period dropdown dark premium fix */
.wf-input option {
    background: #111827 !important;
    color: #f5f7fb !important;
}

    .wf-input option:hover,
    .wf-input option:checked {
        background: #c48736 !important;
        color: #16110a !important;
    }

select.wf-input {
    cursor: pointer;
    color-scheme: dark;
}

.wf-input-locked {
    cursor: not-allowed;
    opacity: 0.92;
}


/* =========================================
   APPLY PAGE - SUCCESS + VALID FIELD POLISH
========================================= */
.wf-field-valid {
    position: relative;
}

    .wf-field-valid::after {
        content: "\F26A";
        font-family: "bootstrap-icons";
        position: absolute;
        right: 18px;
        top: 44px;
        width: 22px;
        height: 22px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #5eeaa4;
        background: rgba(94, 234, 164, 0.10);
        border: 1px solid rgba(94, 234, 164, 0.22);
        font-size: 0.82rem;
        pointer-events: none;
    }

.col-12.wf-field-valid::after {
    top: 44px;
}

.wf-field-valid:has(.wf-textarea)::after,
.wf-field-valid:has(.wf-file-native)::after,
.wf-field-valid:has(input[type="checkbox"])::after {
    display: none;
}

.wf-input-valid,
.wf-input-valid:focus {
    border-color: rgba(94, 234, 164, 0.32) !important;
    box-shadow: 0 0 0 3px rgba(94, 234, 164, 0.07), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

.wf-apply-submit-btn:disabled,
.wf-apply-submit-btn.wf-submit-loading {
    opacity: 0.78;
    cursor: wait;
    transform: none !important;
    box-shadow: 0 12px 28px rgba(196,135,54,0.22), inset 0 1px 0 rgba(255,255,255,0.16);
}

.wf-submit-loading i {
    animation: wfSpin 0.9s linear infinite;
}

@keyframes wfSpin {
    to {
        transform: rotate(360deg);
    }
}
