/* ===== КНОПКА ОБРАТНОГО ЗВОНКА ===== */
.callback-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 998;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.callback-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);  /* Зеленая */
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.callback-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.callback-btn:active {
    transform: scale(0.95);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.callback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.callback-modal.active {
    display: flex;
}

.callback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

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

/* ===== ФОРМА ===== */
.callback-form-container {
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.callback-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.callback-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

/* ===== HEADER ФОРМЫ ===== */
.callback-header {
    text-align: center;
    margin-bottom: 30px;
}

.callback-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0000CD 0%, #3B82F6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 205, 0.25);
}

.callback-header h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.callback-description {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

/* ===== ПОЛЯ ФОРМЫ ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    background: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: #0000CD;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 0, 205, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* ===== КНОПКА ОТПРАВКИ ===== */
.callback-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0000CD 0%, #3B82F6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 205, 0.3);
    margin-bottom: 16px;
}

.callback-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 205, 0.4);
}

.callback-submit:active {
    transform: translateY(0);
}

.callback-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.callback-submit svg {
    transition: transform 0.3s;
}

.callback-submit:hover svg {
    transform: translateX(4px);
}

/* ===== ТЕКСТ КОНФИДЕНЦИАЛЬНОСТИ ===== */
.callback-privacy {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* ===== СООБЩЕНИЕ УСПЕХА ===== */
.callback-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.callback-success.active {
    display: block;
    animation: slideUp 0.4s;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: successPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.callback-success h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.callback-success p {
    color: #6b7280;
    font-size: 15px;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.callback-ok {
    padding: 12px 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.callback-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .callback-widget {
        bottom: 20px;
        left: 20px;
    }
    
    .callback-btn {
        width: 54px;
        height: 54px;
    }
    
    .callback-form-container {
        padding: 30px 24px;
        width: 95%;
        margin: 0 10px;
    }
    
    .callback-header h3 {
        font-size: 20px;
    }
    
    .callback-description {
        font-size: 14px;
    }
    
    .callback-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .callback-form-container {
        padding: 24px 20px;
    }
    
    .callback-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }
}

/* ===== СКРЫТЬ ВСЕ СТАРЫЕ КНОПКИ ===== */
.call_button,
a.call_button,
button.call_button,
div.call_button {
    display: none !important;
    visibility: hidden !important;
}
