/* Стили для модального окна заказа звонка */
.callback-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.callback-modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.callback-modal-content {
    display: flex;
    min-height: 500px;
}

.callback-image-section {
    flex: 1;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.callback-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.callback-form-section {
    flex: 1;
    padding: 40px 30px;
    position: relative;
}

.callback-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.callback-close-btn:hover {
    color: #333;
    background-color: #f5f5f5;
}

.callback-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.callback-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.callback-form-group {
    margin-bottom: 20px;
}

.callback-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.callback-input,
.callback-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.callback-input:focus,
.callback-textarea:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.callback-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.callback-error-msg {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    min-height: 15px;
}

.callback-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.callback-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.callback-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.callback-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: callback-spin 1s linear infinite;
}

@keyframes callback-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

.callback-btn-text {
    transition: opacity 0.3s;
}

/* Стили для кнопки триггера */
.callback-trigger-btn {
    padding: 12px 24px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.callback-trigger-btn:hover {
    background: #357ABD;
}

/* Адаптивность */
@media (max-width: 768px) {
    .callback-modal-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .callback-image-section {
        display: none;
    }
    
    .callback-form-section {
        padding: 30px 20px;
    }
    
    .callback-modal-container {
        width: 95%;
        max-width: 400px;
    }
}

/* Анимации */
.callback-modal-overlay.show {
    display: block;
    animation: callback-fadeIn 0.3s ease-out;
}

.callback-modal-container {
    animation: callback-slideIn 0.3s ease-out;
}

@keyframes callback-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes callback-slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}