*,
*::before,
*::after {
    font-family: Poppins, Algerian, sans-serif;
    box-sizing: border-box;
}

.applicationform {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 80%;
    background-color: var(--kek5);
    border-radius: .5rem;
    margin: 7.5rem auto 3rem;
    gap: 2rem;
    padding: 1rem;
}

.formfield {
    width: 60%;
}

@media (max-width: 1099px) {
    .applicationform {
        width: 95%;
    }

    .formfield {
        width: 100%;
    }
}

.formfield textarea,
.formfield input {
    width: 100%;
    background-color: var(--kek1);
    border: 2px solid var(--kek6);
    border-radius: .5rem;
    font-size: .9rem;
    font-weight: 300;
    color: white;
    padding: .5rem .8rem;
    transition: all .3s ease;
}

.formfield textarea:active,
.formfield textarea:hover,
.formfield textarea:focus,
.formfield input:active,
.formfield input:hover,
.formfield input:focus {
    outline: none;
    border-color: var(--sarga);
}

.formfield textarea {
    resize: none;
    overflow-y: hidden;
}

.formfield p {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: .25rem;
}

.tor {
    text-align: justify !important;
    font-size: 1rem !important;
    font-weight: 350 !important; 
}

.tor a{
    color: var(--sarga);
    font-weight: 500;
} 

button,
.submitbutton {
    text-decoration: none;
    background-color: var(--kek5);
    border: 2px solid var(--sarga);
    padding: .5rem .8rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: .5rem;
    transition: all .3s ease;
    cursor: pointer;
}

button:hover,
.submitbutton:hover {
    background-color: var(--sarga);
    color: var(--kek5);
}

.submitbutton {
    display: inline-block;
}

.applylist {
    margin: 0;
    padding-left: 1.25rem;
    color: white;
    font-size: 1rem;
    font-weight: 350;
    text-align: justify;
}

.applylist li {
    margin-bottom: .4rem;
}

.applylist li::marker {
    color: var(--sarga);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--kek5);
    border-radius: .5rem;
    border: 2px solid var(--sarga);
    padding: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, .4);
    max-width: 22rem;
    width: 90%;
    text-align: center;
    transform-origin: center;
}

.modal-content p {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.modal-actions {
    margin-top: 1rem;
    display: flex;
    gap: .5rem;
    justify-content: center;
}

.modal-actions button {
    padding: .5rem .8rem;
    border-radius: .5rem;
    border: 2px solid var(--kek6);
    background: transparent;
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: .2s;
}

#confirmSubmitBtn {
    border-color: var(--sarga);
    color: white;;
}

#confirmSubmitBtn:hover {
    background: var(--sarga);
    color: var(--kek1);
}

#cancelSubmitBtn {
    border-color: var(--kek6);
    color: white;
}

#cancelSubmitBtn:hover {
    background: var(--kek6);
    color: var(--kek1);
}

.modal.active .modal-content {
    animation: modalIn .18s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}