/* popup.css */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');

.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(6, 16, 32, 0.85); /* dark blue backdrop */
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: 'Barlow', sans-serif;
}

.custom-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-popup-content {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    padding: 40px 30px;
    box-sizing: border-box;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
    margin: 20px;
}

.custom-popup-overlay.active .custom-popup-content {
    transform: translateY(0);
}

.custom-popup-close {
    position: absolute;
    top: -30px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.custom-popup-icon {
    width: 50px;
    height: 50px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.custom-popup-icon svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.custom-popup-title {
    color: #0B192C; /* Dark navy */
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.custom-popup-subtitle {
    color: #6B7280; /* Gray 500 */
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.custom-popup-form {
    text-align: left;
}

.custom-popup-form label {
    display: block;
    color: #111827; /* Gray 900 */
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.custom-popup-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #D1D5DB; /* Gray 300 */
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-family: 'Barlow', sans-serif;
    color: #111827;
    outline: none;
    transition: border-color 0.2s;
}

.custom-popup-form input:focus {
    border-color: #0B192C;
}

.custom-popup-form input::placeholder {
    color: #9CA3AF;
}

.custom-popup-btn {
    width: 100%;
    background-color: #0B192C;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Barlow', sans-serif;
}

.custom-popup-btn:hover {
    background-color: #152B4D;
}

.custom-popup-btn:disabled {
    background-color: #6B7280;
    cursor: not-allowed;
}

/* Success State */
.custom-popup-success {
    display: none;
}

.custom-popup-success.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.custom-popup-form-wrapper.hidden {
    display: none;
}

.custom-popup-success-title {
    color: #0B192C;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
}

.custom-popup-success-text {
    color: #4B5563;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.custom-popup-success-text strong {
    color: #111827;
}

.custom-popup-success-hint {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.custom-popup-btn-green {
    background-color: #25D366;
}

.custom-popup-btn-green:hover {
    background-color: #20BA56;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* loading spinner */
.custom-popup-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Botão Customizado WhatsApp Flutuante/Secundário */
.custom-whatsapp-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #25D366 !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3) !important;
    border: none !important;
    font-family: 'Barlow', sans-serif !important;
    white-space: nowrap !important;
    gap: 10px !important;
    margin-top: 8px !important;
    line-height: 1 !important;
}

.custom-whatsapp-btn::before {
    content: '';
    display: inline-flex !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    background-image: url('../var/assets/img/media/original/8950cd78e48eeebf8417e522a0a186bd/WhatsApp-Logo-PNG-Sem-Fundo-Transparente.png') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

.custom-whatsapp-btn strong {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.custom-whatsapp-btn:hover {
    background-color: #1EBE53 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
}

.brz-icon-text:has(.custom-whatsapp-btn) .brz-icon__container {
    display: none !important;
}

/* Esconde o texto "WhatsApp" acima do botão no cabeçalho */
[data-brz-custom-id="rrxlvhxuzltkofobsuenxnqfbzwjwpggqduv"] {
    display: none !important;
}

/* Esconde o botão flutuante de WhatsApp (imagem grande) */
[data-brz-custom-id="lEusehFWvExY"] {
    display: none !important;
}

