/* ==========================================
   chat-icon.css - Chat Widget Styles
   (Floating Button, Modal, Blur Overlay)
   ========================================== */

/* ---- CHAT FLOATING BUTTON (fixed bottom-right) ---- */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 24px;
    width: 68px;
    height: 68px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    z-index: 9999;
    transition: 0.3s;
    animation: pulse-wa 2.6s infinite;
    border: none;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20b859;
    color: white;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float .unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse-badge 1s infinite;
}

@keyframes pulse-badge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* responsive chat button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 32px;
        right: 16px;
        width: 60px;
        height: 60px;
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 24px;
        right: 12px;
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

/* ---- MODAL CUSTOM STYLES ---- */
.modal-content {
    background: #1a1e2a;
    color: white;
    border: 1px solid var(--gold, #f5c842);
    position: relative;
    z-index: 1060;
}

.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}

.modal-title i {
    color: #25D366;
}

/* Hide the label for email (visually) */
.form-label {
    display: none;
}

/* Email input: remove label, brighter placeholder with fade */
.form-control.bg-dark {
    background: #2a2e3a !important;
    border-color: #444 !important;
    color: white !important;
}

.form-control.bg-dark:focus {
    border-color: var(--gold, #f5c842) !important;
    box-shadow: 0 0 0 0.25rem rgba(123, 92, 255, 0.25);
}

.form-control.bg-dark::placeholder {
    color: #d4a830 !important;
    opacity: 0.6;
}

.btn-close-white {
    filter: invert(1);
}

/* ---- CUSTOM BLUR OVERLAY ---- */
#blurOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1030;
    display: none;
    pointer-events: none;
    transition: opacity 0.3s ease;
}