/* =======================
   CALL POPUP
======================= */

.call-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    z-index: 9999;
}

.call-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.call-modal {
    background: #fff;
    padding: 30px;
    width: 380px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
    transform: translateY(20px);
    transition: 0.3s ease;
}

.call-overlay.active .call-modal {
    transform: translateY(0);
}

.call-close {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}

.call-close:hover {
    opacity: 1;
}

.call-modal .btn-primary {
    position: relative;
    min-height: 46px;
    transition: all 0.3s ease;
}

.call-modal .btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.call-modal .btn-primary .spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-modal .spinner-border-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Анимация появления */
.call-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.call-overlay.active {
    opacity: 1;
    visibility: visible;
}

.call-modal {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.call-overlay.active .call-modal {
    transform: scale(1);
}