/**
 * TeixeiraZap Ofertas - Modal Styles
 * Contém estilos para modais de contato, compartilhamento e overlays.
 */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-backdrop.active,
.modal-backdrop[style*="display: flex"] {
    opacity: 1;
    visibility: visible;
}

.modal-content-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.modal-card {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 30px 25px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-card,
.modal-backdrop[style*="display: flex"] .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-whatsapp {
    background: #E7F9ED;
    color: #25D366;
}

.btn-instagram {
    background: #FEF2F2;
    color: #E1306C;
}

.btn-mapa {
    background: #EFF6FF;
    color: #4285F4;
}

/* Bottom Sheet Mobile */
@media (max-width: 600px) {
    .modal-content-wrapper {
        align-items: flex-end;
    }

    .modal-card {
        width: 100%;
        max-width: 100%;
        border-radius: 32px 32px 0 0;
        transform: translateY(100%);
    }

    .modal-backdrop.active .modal-card,
    .modal-backdrop[style*="display: flex"] .modal-card {
        transform: translateY(0);
    }
}