/* Модальное окно */
.callback-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.callback-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s;
    overflow: hidden;
}

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

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Заголовок формы */
.callback-header {
    background-color: var(--main-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.callback-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.callback-close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.callback-close:hover {
    opacity: 0.8;
}

/* Тело формы */
.callback-body {
    padding: 50px;
}

/* Поля формы */
.callback-form-group {
    margin-bottom: 20px;
}

.callback-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.callback-form-control {
    width: 100%;
    height: 80px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 18px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.callback-form-control:focus {
    border-color: var(--main-color);
    outline: none;
}

.callback-form-control.error {
    border-color: #e74c3c;
}

/* Чекбокс */
.callback-checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.callback-checkbox-group input {
    margin-right: 10px;
    margin-top: 3px;
}

.callback-checkbox-group label {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.callback-checkbox-group a {
    color: #2c7fb8;
    text-decoration: none;
}

.callback-checkbox-group a:hover {
    text-decoration: underline;
}

/* Кнопка отправки */
.callback-submit-btn {
    background-color: var(--main-color);
    color: white;
    border: none;
    height: 80px;
    padding: 12px 20px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: transform 0.3s ease;
}

.callback-submit-btn:hover {
    transform: scale(1.05);
}

.callback-submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Сообщения об ошибках и успехе */
.callback-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.callback-success {
    background-color: #ff4e1a70;
    color: #fff;
    padding: 50px;
    border-radius: 40px;
    margin-bottom: 20px;
    display: none;
}

/* Адаптивность */
@media (max-width: 576px) {
    .callback-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .callback-body {
        padding: 15px;
    }
}