/* =========================================================
   REXTECH STUDIOS — APPLY PAGE
   Primary Accent: #814ac8
   Light Accent: #df7afe
   ========================================================= */

.apply-page {
    background: #000;
    color: #fff;
}


/* =========================
   HERO
   ========================= */

.apply-hero {
    padding: 175px 40px 90px;
    background:
        radial-gradient(circle at 75% 35%,
            rgba(129, 74, 200, 0.12),
            transparent 32%),
        #000;
}

.apply-hero-inner {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

.apply-eyebrow,
.apply-small-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #df7afe;

    font-family: var(--fh);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.apply-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: #df7afe;
}

.apply-hero h1 {
    max-width: 750px;
    margin-top: 24px;

    font-family: var(--fh);
    font-size: clamp(55px, 7vw, 92px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.apply-hero h1 span {
    color: #814ac8;
}

.apply-hero p {
    max-width: 610px;
    margin-top: 28px;

    color: rgba(255, 255, 255, 0.58);

    font-family: var(--fb);
    font-size: 17px;
    line-height: 1.75;
}


/* =========================
   MAIN SECTION
   ========================= */

.apply-section {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;

    padding: 80px 40px 130px;
}

.apply-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 90px;
    align-items: start;
}


/* =========================
   LEFT CONTENT
   ========================= */

.apply-intro {
    position: sticky;
    top: 120px;
}

.apply-small-label {
    margin-bottom: 20px;
}

.apply-intro h2 {
    max-width: 480px;

    font-family: var(--fh);
    font-size: clamp(35px, 4vw, 54px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.apply-intro h2 span {
    color: #814ac8;
}

.apply-intro>p {
    max-width: 500px;
    margin-top: 24px;

    color: rgba(255, 255, 255, 0.52);

    font-size: 15px;
    line-height: 1.75;
}


/* =========================
   NOTE CARD
   ========================= */

.apply-note {
    display: flex;
    gap: 16px;

    margin-top: 42px;
    padding-top: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.apply-note-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    color: #df7afe;

    background: rgba(129, 74, 200, 0.08);
    border: 1px solid rgba(129, 74, 200, 0.18);
}

.apply-note-icon svg {
    width: 20px;
    height: 20px;
}

.apply-note h3 {
    margin-bottom: 6px;

    font-family: var(--fh);
    font-size: 16px;
    font-weight: 600;
}

.apply-note p {
    color: rgba(255, 255, 255, 0.45);

    font-size: 13px;
    line-height: 1.6;
}


/* =========================
   FORM WRAPPER
   ========================= */

.application-form-wrapper {
    padding: 42px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.012));
}


/* =========================
   FORM
   ========================= */

.application-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group label {
    font-family: var(--fh);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
}

.form-group label span {
    color: #df7afe;
}


/* =========================
   INPUTS
   ========================= */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;

    outline: none;

    background: rgba(255, 255, 255, 0.025);
    color: #fff;

    font-family: var(--fb);
    font-size: 14px;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.form-group input,
.form-group select {
    height: 50px;
}

.form-group textarea {
    resize: vertical;
    min-height: 145px;
    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.30);
}

.form-group select {
    appearance: none;
    cursor: pointer;

    background-image:
        linear-gradient(45deg, transparent 50%, #df7afe 50%),
        linear-gradient(135deg, #df7afe 50%, transparent 50%);

    background-position:
        calc(100% - 17px) 21px,
        calc(100% - 12px) 21px;

    background-size: 5px 5px;
    background-repeat: no-repeat;
}

.form-group select option {
    background: #0d0d0d;
    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(223, 122, 254, 0.65);

    background: rgba(129, 74, 200, 0.035);

    box-shadow:
        0 0 0 3px rgba(129, 74, 200, 0.08);
}


/* =========================
   FILE UPLOAD
   ========================= */

.file-upload {
    position: relative;
}

.file-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.file-upload-label {
    min-height: 82px;

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 16px 18px;

    border: 1px dashed rgba(223, 122, 254, 0.28);
    border-radius: 9px;

    background: rgba(129, 74, 200, 0.035);

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}

.file-upload-label:hover {
    border-color: rgba(223, 122, 254, 0.65);
    background: rgba(129, 74, 200, 0.07);
}

.file-upload-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    color: #df7afe;

    background: rgba(129, 74, 200, 0.10);
}

.file-upload-icon svg {
    width: 20px;
    height: 20px;
}

.file-upload-label strong {
    display: block;

    margin-bottom: 4px;

    color: #fff;

    font-family: var(--fh);
    font-size: 14px;
}

.file-upload-label span {
    display: block;

    color: rgba(255, 255, 255, 0.38);

    font-size: 12px;
}


/* =========================
   CONSENT
   ========================= */

.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    cursor: pointer;

    color: rgba(255, 255, 255, 0.48);

    font-size: 12px;
    line-height: 1.5;
}

.form-consent input {
    width: 16px;
    height: 16px;
    margin-top: 1px;

    accent-color: #814ac8;

    cursor: pointer;
}


/* =========================
   SUBMIT BUTTON
   ========================= */

.application-submit {
    width: 100%;
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    border: 1px solid #814ac8;
    border-radius: 8px;

    background: #814ac8;
    color: #fff;

    font-family: var(--fh);
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 8px 30px rgba(129, 74, 200, 0.20);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.application-submit span {
    font-size: 17px;
}

.application-submit:hover {
    transform: translateY(-2px);

    background: #8b55d0;

    box-shadow:
        0 12px 35px rgba(129, 74, 200, 0.30);
}


/* =========================
   FORM STATUS
   ========================= */

.form-status {
    display: none;

    padding: 12px 14px;

    border-radius: 7px;

    background: rgba(129, 74, 200, 0.08);
    border: 1px solid rgba(129, 74, 200, 0.20);

    color: rgba(255, 255, 255, 0.65);

    font-size: 12px;
    line-height: 1.5;
}

.form-status.show {
    display: block;
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1000px) {

    .apply-layout {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .apply-intro {
        position: static;
    }

    .apply-intro h2 {
        max-width: 650px;
    }

    .apply-intro>p {
        max-width: 650px;
    }

}


@media (max-width: 700px) {

    .apply-hero {
        padding: 135px 20px 70px;
    }

    .apply-hero h1 {
        font-size: clamp(46px, 14vw, 65px);
    }

    .apply-hero p {
        font-size: 15px;
        line-height: 1.7;
    }

    .apply-section {
        padding: 55px 20px 80px;
    }

    .apply-layout {
        gap: 40px;
    }

    .apply-intro h2 {
        font-size: 36px;
    }

    .application-form-wrapper {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .application-form {
        gap: 22px;
    }

}


@media (max-width: 400px) {

    .apply-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .apply-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .application-form-wrapper {
        padding: 22px 17px;
    }

}