/* Overlay com efeito Glassmorphism */
.zrh-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Container do Modal */
.zrh-modal-content {
    background: #fff;
    position: relative;
    max-width: 600px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: zrh_scale_up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animação de entrada */
@keyframes zrh_scale_up {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Botão de Fechar Premium */
.zrh-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    line-height: 1;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.zrh-modal-close:hover {
    background: #ff4d4d;
    color: #fff;
    transform: rotate(90deg);
}

/* Estilo para Modais de Texto */
.zrh-modal-text-wrap {
    padding: 40px;
    text-align: center;
}

.zrh-modal-text-wrap h2 {
    margin: 0 0 15px;
    font-size: 28px;
    color: #1a1a1a;
    font-weight: 700;
}

.zrh-modal-text-wrap p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Botão de Ação */
.zrh-modal-button {
    display: inline-block;
    background: #2271b1;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.zrh-modal-button:hover {
    background: #135e96;
}

/* Imagens Responsivas */
.zrh-modal-content img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* HTML Customizado */
.zrh-modal-html-wrap {
    padding: 20px;
}

/* Previne scroll no body quando modal aberto */
body.zrh-modal-open {
    overflow: hidden;
}

/* Ajustes Mobile */
@media (max-width: 600px) {
    .zrh-modal-content {
        max-width: 95%;
    }

    .zrh-modal-text-wrap {
        padding: 30px 20px;
    }

    .zrh-modal-text-wrap h2 {
        font-size: 22px;
    }

    .zrh-modal-text-wrap p {
        font-size: 14px;
    }
}