.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    .modal-content {
        background-color: #F7F3FA;
        padding: 1.5rem;
        border-radius: var(--border-radius);
        box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.25);
        width: 90%;
        max-width: 500px;
        position: relative;
        animation: fadeInScale 0.3s ease-out forwards;
        max-height: 90vh;
        overflow-y: auto;
        overflow-x: hidden;

        article.form {
            width: 100%;
            margin-top: 0;
            padding: 0;
            box-shadow: none;
            background-color: transparent;

            h2 {
                color: #202020;
                text-align: center;
                font-size: 1.5rem;
                font-weight: 700;
                padding-bottom: .5rem;
                max-width: 250px;
                margin: 0 auto;
            }

            >p {
                font-size: 1rem;
                text-align: center;
                margin-bottom: 1rem;
                color: #202020;
            }

            form {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                width: fit-content;
                max-width: 600px;
                width: 100%;
                margin: 0 auto;
            }

            div {
                display: flex;
                flex-direction: column;
                width: 100%;
                margin-top: .5rem;

                .g-recaptcha {
                    align-items: center;
                }
            }

            label input {
                display: block;
                width: 100%;
                background-color: transparent;
                margin-top: .5rem;
                outline: none;
                border: 1px solid var(--border-form-color);
                padding: .7rem .5rem;
                border-radius: var(--border-radius);
            }

            div.recaptcha-container {
                display: flex;
                justify-content: center;
                align-items: center;
                margin: 1rem 0;
                width: 100%;
            }
        }
    }

    .close-button {
        color: var(--title-black);
        font-size: 2rem;
        font-weight: bold;
        position: absolute;
        top: 0.8rem;
        right: 1.2rem;
        cursor: pointer;
        transition: color 0.2s ease-in-out;
    }

    .close-button:hover,
    .close-button:focus {
        color: var(--primary-violet);
        outline: none;
    }
    .btn.btn-submit {
        width: 100%;
        margin-top: 1rem;
    }
}


@media screen and (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 1rem;
    }

    .close-button {
        font-size: 1.8rem;
        top: 0.5rem;
        right: 0.8rem;
    }

    .modal-content article.form h2 {
        font-size: 1.3rem;
        width: 90%;
    }

    .modal-content article.form>p {
        font-size: 0.9rem;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}