﻿.modal {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 80%;
    padding: 1.5rem;
    min-height: 250px;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 15px;
}

    .modal .flex {
        display: flex;
        align-items: center;
        justify-content: end;
    }

    .modal a {
        text-decoration: underline;
    }

    .modal h3 {
        margin-top: 0;
    }

    .modal input {
        padding: 0.7rem 1rem;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 0.9em;
    }

    /* .modal * {
        color: #777;
    } */

    .modal p {
        font-size: 0.9rem;
    }

    .modal button {
        cursor: pointer;
        border: none;
        font-weight: 600;
    }

    .modal .btn--modal {
        display: inline-block;
        padding: 0.8rem 1.4rem;
        font-weight: 700;
        border-radius: 5px;
        text-align: center;
        font-size: 1em;
    }

    .modal .btn-close {
        transform: translate(10px, -10px);
        padding: 0.5rem 0.7rem;
        background: #eee;
        border-radius: 50%;
        position: relative;
    }

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 10;
}

@media(min-width: 576px) {
    .modal {
        width: 425px;
        padding: 2rem;
    }
}

@media(min-width: 768px) {
    .modal {
        width: 550px;
    }
}