.apply-section {
    position: relative;
    top: 50px;
}


.application {
    display: flex;
    flex-direction: column;
}
/* Introductory message */

.application-intro {
    width: 100%;
    background: linear-gradient(to right,
    rgba(0,0,0,0.5), 
    rgba(0,0,0,0.5)), url('../assets/bg2.jpg') no-repeat  center / cover;
    display: flex;
    flex-direction: column;
    gap: 70px;
    color: var(--white-color);
    padding: 5rem 1.5rem;
    text-align: center;

}

.application-intro > p {
    background-color: rgba(157, 159, 187, 0.2);
    padding: 1.5rem;
}

.application-intro > div > p {
    padding-top: 0.75rem;
}

/* Form styling */

form {
    margin: 4rem auto;
    width: 90%;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background-color: var(--white-color);
    box-shadow: 2px 2px 8px rgb(27, 28, 31, 0.2);
    border-radius: 10px;
}

.fieldset {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.required:after{
    content: " *";
    color: #bd202e;

}

input, select,
textarea {
    font-size: 0.75rem;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dcdedf;
    background-color: rgb(236, 238, 240, 0.3);
}

input:focus, select:focus, textarea:focus {
    outline: 2px solid #bd202e;
}

textarea {
    padding: 20px 15px;
    resize: none;
}

.checkbox label{
    font-size: 0.75rem;
}

.checkbox {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    color: rgb(27, 28, 31, 0.7);
}

.form-btn {
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--secondary-color);
    color: #ffffff;
    margin-top: 20px;
}

/* sm */
@media (min-width: 640px) {
    .application-intro {
        padding: 3rem 1.5rem;
    }   
}

/* md */
@media (min-width: 768px) {    
    .fieldset {
        flex-direction: row;
    }

    .field {
        width: 50%;
    }

    .form-btn {
        width: 30%;
        margin: 0 auto;
        margin-top: 2rem;
    }

}

/* lg */
@media (min-width: 1024px) {

    .application {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        margin: 0 auto;
        height: max-content;
        box-shadow: 2px 2px 8px rgb(27, 28, 31, 0.2);
    }
    /* Introductory message */

    .application-intro {
        width: 40%;
        padding: 6rem 5rem;
        text-align:left;
        height: 65rem;
    }

    
    .application-form {
        width: 60%;
    }
    
    form {
        justify-content: flex-start;
        gap: 4rem;
        margin-top: 0;
        /* margin-left: 3rem; */
        border-radius: 0;
        box-shadow: none;
    }

    .field {
        width: 50%;
    }

    .checkbox label{
        font-size: 1rem;
    }
} 

/* xl */
/* @media (min-width: 1280px) {

} */

/* 2xl */
/* @media (min-width: 1536px) {

} */