/* === СБРОС И БАЗА === */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
    background: #f6f7fb;
    color: #1f2937;
    line-height: 1.4;
}

/* === ОБЁРТКА ФОРМЫ === */
.feedback-form-order {
    max-width: 520px;
    padding: 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* === ЗАГОЛОВОК ФОРМЫ === */
.name_form {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111827;
}

/* === ГРУППЫ ПОЛЕЙ === */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

/* === ЛЕЙБЛЫ === */
.control-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* Звёздочка обязательного поля */
.required_input {
    color: #ef4444;
    margin-right: 4px;
}

/* === ПОЛЯ ВВОДА === */
.control-input,
.control-input-textarea,
.control-input-file {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
}

/* textarea */
.control-input-textarea {
    min-height: 120px;
    resize: vertical;
}

/* фокус на поле */
.control-input:focus,
.control-input-textarea:focus,
.control-input-file:focus {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* hover эффект */
.control-input:hover,
.control-input-textarea:hover {
    border-color: #d1d5db;
}

/* === РАДИО-КНОПКИ === */
.container-format {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.form-group-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    transition: 0.2s;
}

/* hover радиокнопок */
.form-group-radio:hover {
    border-color: #c7d2fe;
    background: #f8faff;
}

/* цвет радио */
.control-input-radio {
    accent-color: #6366f1;
}

/* === ЧЕКБОКС СОГЛАСИЯ === */
.form-agree-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #4b5563;
    margin: 18px 0;
}

.form-check-input {
    margin-top: 2px;
    accent-color: #6366f1;
}

/* === КНОПКА ОТПРАВКИ === */
.form-submit {
    margin-top: 10px;
}

.button-send {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
}

.button-send:active {
    transform: translateY(0);
    box-shadow: none;
}

/* === ОШИБКИ ВАЛИДАЦИИ === */

/* красная рамка при ошибке */
input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* === СООБЩЕНИЕ ФОРМЫ === */
#form-message {
    margin-top: 10px;
    font-size: 13px;
    color: #059669;
}

/* === ФАЙЛЫ === */
.control-input-file {
    padding: 10px;
    background: #fafafa;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 600px) {
    .container-format {
        flex-direction: column;
    }
}

#form-message {
    display: none;
    width: 100%;
    max-width: 480px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

#form-message.success {
    display: block;
    background: #d4edda;
    color: #317F43;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    display: block;
    background: #f8d7da;
    color: #A52019;
    border: 1px solid #f5c6cb;
}