/* Custom Modal Styles for NovarStream */
:root {
    --modal-primary: #00d2ff;
    --modal-secondary: #3a7bd5;
    --modal-bg: #0f172a;
    --modal-text: #ffffff;
    --modal-text-muted: #94a3b8;
    --modal-glass: rgba(15, 23, 42, 0.95);
    --modal-border: rgba(255, 255, 255, 0.1);
}

.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    /* Ensure it's on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.custom-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.custom-modal-content {
    background: var(--main-color-red);
    border: 1px solid var(--modal-border);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    text-align: center;
}

.custom-modal-backdrop.active .custom-modal-content {
    transform: scale(1) translateY(0);
}

/* Gradient Border Effect */
.custom-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #860300, #b70c08);
}

.custom-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.custom-modal-close:hover {
    color: var(--modal-text);
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

/* Override Bootstrap's modal-header flex display */
.modal-header {
    display: block !important;
    text-align: center;
    margin-bottom: 30px;
    border: none;
    padding: 0;
    width: 100%;
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--modal-text);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.modal-title span {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-subtitle {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 90%;
}

/* Phone Number Section */
.modal-contact-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-number-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--modal-text);
    font-family: 'DM Sans', sans-serif;
    /* Matching site font */
}

.copy-btn {
    background: none;
    border: none;
    color: var(--modal-primary);
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    transform: scale(1.1);
    color: var(--modal-secondary);
}

.copy-tooltip {
    position: absolute;
    background: var(--modal-primary);
    color: #000;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    top: -30px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    font-weight: bold;
}

.copy-btn.copied+.copy-tooltip {
    opacity: 1;
}

/* Actions */
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
}

.modal-btn:active {
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.5);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--modal-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.modal-icon {
    margin-right: 12px;
    font-size: 22px;
}

.modal-footer-text {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Pulse Animation */
@keyframes pulse-ring {
    0% {
        transform: scale(0.33);
    }

    80%,
    100% {
        opacity: 0;
    }
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.8);
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .custom-modal-content {
        padding: 30px 20px;
        width: 100%;
        margin: 10px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-subtitle {
        font-size: 14px;
    }

    .modal-btn {
        padding: 16px 20px;
        font-size: 15px;
    }

    .contact-number {
        font-size: 18px;
    }

    .modal-footer-text {
        flex-direction: column;
        gap: 8px;
    }
}