.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(186 186 186 / 26%);
    overflow: hidden;
    animation: backdrop_blur cubic-bezier(0.22, 1, 0.36, 1) 1s forwards; 
    z-index: 1000000;
}

@keyframes backdrop_blur {
    0% {
        backdrop-filter: blur(0px);
        background: transparent;
    }
    100% { 
        backdrop-filter: blur(5px);
        background: rgb(186 186 186 / 26%);
    }
}

@keyframes modal_transition {
    0% {
        visibility: hidden;
        opacity: 0;
}
    100% {
        visibility: visible;
        opacity: 1;
    }
}

.modal {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    animation: 1s cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal forwards running modal_transition;
    z-index: 1000001;
}

@keyframes modal_transition {
    0% {
        visibility: hidden;
        opacity: 0;
    }
    100% {
        visibility: visible;
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-body {
    padding: 25px;
}

.modal-subcontainer {
    color: var(--black);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.modal-subcontainer-error {
    color: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.modal-paragraph-error {
    font-family: Roboto, sans-serif;
    font-size: 20px;
    letter-spacing: 0.3px;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

.modal-paragraph {
    font-family: Roboto, sans-serif;
    font-size: 18px;
    letter-spacing: 0.3px;
    font-weight: 300;
    color: var(--black);
    margin: 0;
    word-wrap: break-word; 
      overflow-wrap: break-word;
}

.capitalize-first {
    text-transform: capitalize;
}

.checkbox-row {
    display: flex;
    align-items: center;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    color: var(--black);
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.modal-buttons button {
    background-color: #4caf50;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-buttons button:hover {
    background-color: #3e8e41;
}

#cancel-button {
    background-color: #f44336;
}

#cancel-button:hover {
    background-color: #d32f2f;
}