.modal {
    padding: 0;
    border: none;
    border-radius: 10px;
    max-width: 425px;
    width: calc(100% - 40px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    position: fixed;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    margin: 0;
    animation: modal-in 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
}

.modal.is-closing {
    animation: modal-out 200ms ease forwards;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.5);
    animation: backdrop-in 300ms ease both;
}

.modal.is-closing::backdrop {
    animation: backdrop-out 200ms ease forwards;
}

.modal__header {
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal__header .title {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-color);
}

.modal__inner {
    padding: 40px;
    position: relative;
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.modal__close:hover {
    background: var(--background-color);
    color: var(--black);
}

.modal__title {
    font-size: 24px;
    color: var(--secondary-color);
}

.modal__content {
    font-size: 16px;
    color: var(--text-color);
}

#dialog-dialog-contact .modal__content img {
    border: 1px solid var(--background-color);
    border-radius: 10px;
    max-width: 225px;
    height: auto;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modal-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.94);
    }
}

@keyframes backdrop-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes backdrop-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
