/* --- PREMIUM CAREERS (SIMPLE VERTICAL SCROLL) --- */
:root {
    --c-bg: #080808;
    --c-gold: #c5a059;
    --c-gold-dim: #8b6e3d;
    --c-white: #ffffff;
    --c-gray: #d5d1cc;
    --c-glass: rgba(25, 25, 25, 0.95);
    --c-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--c-bg);
}



main.careers-wrapper .title-wraper {
    background-image: url(../images/career.jpg);
    background-size: cover;
    height: 400px;
    filter: grayscale(1);
    transition: filter 0.4s;
    background-position: center;
    position: relative;
}
main.careers-wrapper .title-wraper::before {
    content: " ";
    position: absolute;
    inset: 0;
    background: #0000008c;
}

main.careers-wrapper .title-wraper h1, main.careers-wrapper .title-wraper p {
    position: relative;
    z-index: 1;
    color: white;
    filter: unset;
}

.careers-wrapper {
    width: 100%;
}

/* BRAND STANDARD: TITLE WRAPER */
.title-wraper {
    display: flex;
    height: 340px;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.title-wraper h1 {
    font-size: clamp(24px, -4px + 2.1875vw, 38px);
    font-weight: 400;
    letter-spacing: .11em;
    line-height: 1.16;
    text-transform: uppercase;
    color: var(--c-white);
}

.title-wraper p {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.8;
    text-transform: none;
    width: 100%;
    max-width: 570px;
    text-align: center;
    color: var(--c-gray);

}

/* SECTION: ROLES */
.career-roles {
    padding: 100px 0 15vh;
    background-color: var(--c-bg);
}

.roles-header {
    margin-bottom: 80px;
}

.roles-header h2 {
    font-size: clamp(50px, 6vw, 90px);
    line-height: 1;
    margin-bottom: 20px;
}

.roles-header p {
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
}

.roles-list {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--c-border);
}

.role-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 20px;
    border-bottom: 1px solid var(--c-border);
    transition: background 0.4s;
    gap: 40px;
}

.role-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

.role-title {
    font-size: clamp(18px, 1.8vw, 24px);
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--c-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.role-meta {
    font-size: 14px;
    color: var(--c-gray);
    margin-bottom: 25px;

}

.role-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--c-gray);
    max-width: 850px;
    font-weight: 300;

}

.apply-pill-btn {
    padding: 12px 45px;
    border: 1px solid var(--c-white);
    background: transparent;
    color: var(--c-white);
    border-radius: 50px;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    z-index: 100;
    pointer-events: all !important;
}

.apply-pill-btn:hover {
    background: var(--c-white);
    color: var(--c-bg);
}

.spec-cta {
    margin-top: 100px;
    opacity: 0.6;
    font-size: 14px;
}

.spec-cta span {
    color: var(--c-gold);
    border-bottom: 1px solid var(--c-gold);
}

/* --- MODAL (luxury look, matches projects register modal) --- */
.career-modal {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.career-modal.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
}

.modal-content-wrapper {
    position: relative;
    z-index: 9999;
    width: 100%;
    max-width: 760px;
    max-height: 92vh;
    overflow-y: auto;
    background: linear-gradient(165deg, #141414 0%, #080808 55%, #0d0b08 100%);
    border: 1px solid rgba(197, 160, 89, 0.22);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
    transform: translateY(24px);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.career-modal.active .modal-content-wrapper {
    transform: translateY(0);
}

.modal-content-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c5a059 20%, #e8d4a8 50%, #c5a059 80%, transparent);
    z-index: 2;
}

.cm-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    z-index: 2;
    pointer-events: none;
}

.cm-corner--tl {
    top: 14px;
    left: 14px;
    border-top: 1px solid rgba(197, 160, 89, 0.55);
    border-left: 1px solid rgba(197, 160, 89, 0.55);
}

.cm-corner--br {
    bottom: 14px;
    right: 14px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.55);
    border-right: 1px solid rgba(197, 160, 89, 0.55);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(197, 160, 89, 0.35);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.modal-close-btn span {
    position: absolute;
    width: 16px;
    height: 1px;
    background: #d5d1cc;
    transition: background 0.3s ease;
}

.modal-close-btn span:first-child {
    transform: rotate(45deg);
}

.modal-close-btn span:last-child {
    transform: rotate(-45deg);
}

.modal-close-btn:hover {
    border-color: #c5a059;
    background: rgba(197, 160, 89, 0.12);
}

.modal-close-btn:hover span {
    background: #fff;
}

.modal-inner {
    padding: 52px 48px 44px;
}

.modal-header {
    text-align: center;
    margin-bottom: 34px;
}

.modal-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    letter-spacing: 0.12em;
    font-weight: 300;
    text-transform: uppercase;
    color: var(--c-white);
    line-height: 1.15;
    margin: 0;
}

.career-modal .gold {
    color: var(--c-gold);
}

.modal-intro {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(213, 209, 204, 0.72);
    margin: 0 auto;
    max-width: 420px;
}

.apply-form {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.apply-form .form-row {
    display: flex;
    gap: 26px;
    margin-bottom: 0;
}

.apply-form .form-group {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.input-line {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    transition: border-color 0.3s ease;
}

.apply-form .form-group:focus-within .input-line {
    border-bottom-color: rgba(197, 160, 89, 0.65);
}

.apply-form input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 12px 0 10px;
    color: var(--c-white);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    outline: none;
}

.apply-form input::placeholder {
    color: rgba(213, 209, 204, 0.42);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    opacity: 1;
}

.readonly-input {
    opacity: 0.6;
    cursor: default;
}

.file-group {
    margin-bottom: 6px !important;
}

.file-box {
    position: relative;
    margin-top: 4px;
}

.file-box input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.custom-file-label {
    width: 100%;
    padding: 16px 18px;
    border: 1px dashed rgba(197, 160, 89, 0.4);
    background: rgba(197, 160, 89, 0.04);
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(213, 209, 204, 0.7);
    transition: border-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-box:hover .custom-file-label {
    border-color: #c5a059;
    color: #fff;
}

.custom-file-label i {
    color: var(--c-gold);
    margin-right: 8px;
}

.form-footer {
    margin-top: 30px;
}

.submit-btn {
    width: 100%;
    padding: 15px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--c-gold);
    border: 1px solid var(--c-gold);
    color: #0a0a0a;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.35s ease, color 0.35s ease, transform 0.25s ease;
}

.submit-btn i {
    font-size: 0.85rem;
    transition: transform 0.35s ease;
}

.submit-btn:hover {
    background: transparent;
    color: var(--c-gold);
    transform: translateY(-1px);
}

.submit-btn:hover i {
    transform: translateX(4px);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

@media (max-width: 991px) {
    .title-wraper {
        height: 350px;
        padding: 0 20px;
    }

    .title-wraper p {
        padding: 0 40px;
    }

    .career-roles {
        padding: 60px 0 10vh;
    }

    .role-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 30px 15px;
    }

    .role-desc {
        font-size: 14px;
    }

    .apply-pill-btn {
        width: 100%;
        text-align: center;
    }

    .modal-inner {
        padding: 46px 24px 34px;
    }

    .modal-header {
        margin-bottom: 26px;
    }
}

@media (max-width: 575px) {
    .apply-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .modal-close-btn {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .modal-header h2 {
        letter-spacing: 0.08em;
        font-size: 1.5rem;
    }

    .title-wraper h1 {
        font-size: 28px;
        text-align: center;
    }

    .title-wraper p {
        font-size: 14px;
        padding: 0 20px;
    }
}