/* ============================================================
   Biritex Technologies
   Job Application
   ============================================================ */


/* ============================================================
   Page
   ============================================================ */

.job-application-page {
    padding-top: clamp(55px, 8vw, 100px);
    padding-bottom: clamp(70px, 9vw, 120px);
}

.job-application-container {
    width: min(900px, 100%);

    margin: 0 auto;
}


/* ============================================================
   Back
   ============================================================ */

.application-back {
    display: inline-flex;

    margin-bottom: 45px;

    color: #667085;

    text-decoration: none;

    font-size: .85rem;

    font-weight: 700;

    transition: color .2s ease;
}

.application-back:hover {
    color: #D6534D;
}


/* ============================================================
   Header
   ============================================================ */

.application-header {
    margin-bottom: 45px;
}

.application-header h1 {
    max-width: 760px;

    margin: 8px 0 0;

    font-size: clamp(2.5rem, 6vw, 5rem);

    line-height: .96;

    letter-spacing: -.06em;
}

.application-header > p:not(.eyebrow) {
    max-width: 650px;

    margin: 22px 0 0;

    color: #667085;

    font-size: .95rem;

    line-height: 1.7;
}

.application-job-title {
    display: block;

    margin-top: 7px;

    color: #2F353B;

    font-size: 1rem;
}


/* ============================================================
   Alert
   ============================================================ */

.application-alert {
    margin-bottom: 25px;

    padding: 16px 18px;

    border: 1px solid rgba(214, 83, 77, .25);

    border-radius: 10px;

    background: rgba(214, 83, 77, .07);

    color: #D6534D;

    font-size: .85rem;

    line-height: 1.5;
}


/* ============================================================
   Form
   ============================================================ */

.job-application-form {
    display: grid;

    gap: 25px;
}

.job-application-form fieldset {
    min-width: 0;

    margin: 0;

    padding: clamp(24px, 4vw, 35px);

    border: 1px solid rgba(47, 53, 59, .10);

    border-radius: 16px;

    background: #fff;
}

.job-application-form legend {
    padding: 0 8px;

    color: #2F353B;

    font-size: 1.15rem;

    font-weight: 800;

    letter-spacing: -.025em;
}


/* ============================================================
   Form Grid
   ============================================================ */

.form-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 22px;

    margin-top: 12px;
}

.form-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-width {
    grid-column: 1 / -1;
}


/* ============================================================
   Form Fields
   ============================================================ */

.form-field {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.form-field label {
    margin-bottom: 8px;

    color: #2F353B;

    font-size: .78rem;

    font-weight: 800;
}

.form-field label span {
    color: #D6534D;
}

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

    box-sizing: border-box;

    padding: 13px 14px;

    border: 1px solid rgba(47, 53, 59, .14);

    border-radius: 8px;

    outline: none;

    background: #fff;

    color: #2F353B;

    font: inherit;

    font-size: .86rem;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.form-field input {
    min-height: 46px;
}

.form-field textarea {
    min-height: 190px;

    resize: vertical;

    line-height: 1.7;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #D6534D;

    box-shadow:
        0 0 0 3px rgba(214, 83, 77, .08);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #98A2B3;
}


/* ============================================================
   File Input
   ============================================================ */

.form-field input[type="file"] {
    padding: 10px;

    cursor: pointer;
}

.form-field input[type="file"]::file-selector-button {
    margin-right: 10px;

    padding: 8px 12px;

    border: 0;

    border-radius: 6px;

    background: #2F353B;

    color: #fff;

    font: inherit;

    font-size: .75rem;

    font-weight: 700;

    cursor: pointer;
}


/* ============================================================
   Help / Errors
   ============================================================ */

.field-help {
    margin-top: 7px;

    color: #98A2B3;

    font-size: .7rem;

    line-height: 1.5;
}

.field-error {
    display: block;

    margin-top: 7px;

    color: #D6534D;

    font-size: .72rem;

    line-height: 1.5;
}


/* ============================================================
   Consent
   ============================================================ */

.application-consent {
    padding: 5px 2px;
}

.consent-label {
    display: flex;

    align-items: flex-start;

    gap: 11px;

    cursor: pointer;
}

.consent-label input {
    flex: 0 0 auto;

    width: 17px;
    height: 17px;

    margin-top: 2px;

    accent-color: #D6534D;

    cursor: pointer;
}

.consent-label span {
    color: #667085;

    font-size: .78rem;

    line-height: 1.65;
}


/* ============================================================
   Submit
   ============================================================ */

.application-submit {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 5px;
}

.application-submit .primary-btn {
    border: 0;

    cursor: pointer;
}

.application-submit p {
    max-width: 430px;

    margin: 0;

    color: #98A2B3;

    font-size: .7rem;

    line-height: 1.5;
}


/* ============================================================
   Success
   ============================================================ */

.application-success {
    max-width: 760px;

    margin: 70px auto;

    text-align: center;
}

.success-icon {
    display: flex;

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

    width: 62px;
    height: 62px;

    margin: 0 auto 25px;

    border-radius: 50%;

    background: rgba(214, 83, 77, .10);

    color: #D6534D;

    font-size: 1.5rem;

    font-weight: 800;
}

.success-icon .icon {
    width: 30px;
    height: 30px;
}

.application-success h1 {
    margin: 8px 0 0;

    font-size: clamp(2.4rem, 5vw, 4.5rem);

    line-height: 1;

    letter-spacing: -.055em;
}

.application-success > p:not(.eyebrow) {
    max-width: 600px;

    margin: 20px auto 0;

    color: #667085;

    font-size: .95rem;

    line-height: 1.8;
}

.success-actions {
    display: flex;

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

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 30px;
}

.success-actions a {
    text-decoration: none;
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 700px) {

    .job-application-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .application-submit {
        align-items: flex-start;

        flex-direction: column;
    }

    .application-submit .primary-btn {
        width: 100%;

        justify-content: center;
    }

    .application-submit p {
        max-width: none;
    }

}


@media (max-width: 450px) {

    .job-application-form fieldset {
        padding: 22px 18px;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions a {
        width: 100%;

        justify-content: center;
    }

}