/* =========================================================
   Education Application
   ========================================================= */

.education-form {

    position: relative;

    padding: 100px 0;

    background: #09090f;

}


.education-form-container {

    width: min(
        1200px,
        calc(100% - 80px)
    );

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        380px
        minmax(0, 1fr);

    gap: 80px;

    align-items: start;

}


/* =========================================================
   Header
   ========================================================= */

.education-form-header {

    position: sticky;

    top: 100px;

}


.education-form-header .section-eyebrow {

    display: block;

    margin-bottom: 18px;

    color: #ef1111;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2.5px;

}


.education-form-header h2 {

    margin: 0 0 22px;

    color: #ffffff;

    font-size: 42px;

    line-height: 1.08;

    letter-spacing: -1px;

}


.education-form-header h2 span {

    color: #ef1111;

}


.education-form-header p {

    margin: 0;

    color: rgba(255,255,255,.50);

    font-size: 14px;

    line-height: 1.8;

}


/* =========================================================
   Form
   ========================================================= */

.education-application-form {

    padding: 36px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.035),
            rgba(255,255,255,.012)
        );

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 16px;

    box-shadow:
        0 25px 60px rgba(0,0,0,.25);

}


/* =========================================================
   Form Rows
   ========================================================= */

.education-form-row {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;

}


/* =========================================================
   Form Group
   ========================================================= */

.education-form-group {

    margin-bottom: 20px;

}


.education-form-group label {

    display: block;

    margin-bottom: 8px;

    color: rgba(255,255,255,.65);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .5px;

}


/* =========================================================
   Inputs
   ========================================================= */

.education-form-group input,
.education-form-group select,
.education-form-group textarea {

    width: 100%;

    box-sizing: border-box;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    background: #09090f;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 8px;

    outline: none;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;

}


.education-form-group input,
.education-form-group select {

    height: 48px;

    padding: 0 15px;

}


.education-form-group textarea {

    min-height: 150px;

    padding: 14px 15px;

    resize: vertical;

    line-height: 1.6;

}


.education-form-group input::placeholder,
.education-form-group textarea::placeholder {

    color: rgba(255,255,255,.25);

}


.education-form-group input:focus,
.education-form-group select:focus,
.education-form-group textarea:focus {

    border-color:
        rgba(239,17,17,.65);

    background:
        rgba(239,17,17,.025);

    box-shadow:
        0 0 0 3px rgba(239,17,17,.07);

}


/* =========================================================
   Select
   ========================================================= */

.education-form-group select {

    appearance: none;

    -webkit-appearance: none;

    padding-right: 42px;

    cursor: pointer;

    background-image:
        linear-gradient(45deg, transparent 50%, #ef1111 50%),
        linear-gradient(135deg, #ef1111 50%, transparent 50%);

    background-position:
        calc(100% - 18px) 20px,
        calc(100% - 13px) 20px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

}


.education-form-group select:disabled {

    opacity: .35;

    cursor: not-allowed;

}


/* =========================================================
   Submit
   ========================================================= */

.education-submit {

    min-height: 50px;

    padding: 0 24px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    color: #ffffff;

    background: #ef1111;

    border: none;

    border-radius: 8px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;

}


.education-submit span {

    font-size: 18px;

    line-height: 1;

}


.education-submit:hover {

    background: #d90f0f;

    transform:
        translateY(-2px);

    box-shadow:
        0 10px 25px rgba(239,17,17,.20);

}


.education-submit:active {

    transform:
        translateY(0);

}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .education-form-container {

        grid-template-columns: 1fr;

        gap: 45px;

    }


    .education-form-header {

        position: static;

        max-width: 700px;

    }

}


@media (max-width: 600px) {

    .education-form {

        padding: 70px 0;

    }


    .education-form-container {

        width: calc(100% - 40px);

    }


    .education-form-header h2 {

        font-size: 36px;

    }


    .education-application-form {

        padding: 24px 20px;

    }


    .education-form-row {

        grid-template-columns: 1fr;

        gap: 0;

    }


    .education-submit {

        width: 100%;

    }

}

/* =========================================================
   Education Toast
   ========================================================= */

.education-toast {

    position: fixed;

    top: 90px;
    right: 30px;

    z-index: 99999;

    min-width: 300px;
    max-width: 420px;

    padding: 16px 20px;

    border-radius: 10px;

    background: rgba(10, 10, 18, .96);

    border: 1px solid rgba(255, 255, 255, .12);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .35);

    color: #ffffff;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.5;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    animation:
        educationToastIn .35s ease forwards;

}


.education-toast-success {

    border-left: 3px solid #28c76f;

}


.education-toast-error {

    border-left: 3px solid #ef1111;

}


/* =========================================================
   Toast Animation
   ========================================================= */

@keyframes educationToastIn {

    from {

        opacity: 0;

        transform:
            translateX(30px);

    }

    to {

        opacity: 1;

        transform:
            translateX(0);

    }

}


.education-toast.education-toast-hide {

    animation:
        educationToastOut .35s ease forwards;

}


@keyframes educationToastOut {

    from {

        opacity: 1;

        transform:
            translateX(0);

    }

    to {

        opacity: 0;

        transform:
            translateX(30px);

    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .education-toast {

        top: 80px;

        left: 20px;
        right: 20px;

        min-width: 0;
        max-width: none;

    }

}

/* =========================================================
   Education Select Options
   ========================================================= */

.education-form select {

    background: #09090f;
    color: #ffffff;

}


.education-form select option {

    background-color: #101018;
    color: #ffffff;

}
