/* МИНИМАЛЬНЫЕ СТИЛИ ДЛЯ ФОРМЫ С ФАЙЛАМИ */
* { box-sizing: border-box; }
body { font-family: 'Inter', Arial, sans-serif; margin: 0; padding: 20px; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); min-height: 100vh; }

.feedback-wrapper { 
    display: flex; 
    background: white; 
    border-radius: 15px; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 0 auto;
    min-height: 700px;
}

.info-panel { 
    flex: 1; 
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%); 
    color: white; 
    padding: 40px; 
    min-width: 350px;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    margin-bottom: 30px;
}

.logo i {
    font-size: 24px;
    margin-right: 10px;
    color: #fff;
}

.info-panel h1 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
}

.info-text {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 30px;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 20px;
    margin-right: 15px;
    margin-top: 3px;
    color: #3498db;
    background: white;
    padding: 8px;
    border-radius: 8px;
    min-width: 40px;
    text-align: center;
}

.contact-item h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.contact-item p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.4;
}

.features {
    margin-top: auto;
}

.features h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
}

.features li i {
    color: #2ecc71;
    margin-right: 10px;
    font-size: 16px;
}

.form-panel { 
    flex: 1.5; 
    padding: 40px; 
    min-width: 500px;
    overflow-y: auto;
}

.feedback-header {
    margin-bottom: 30px;
    text-align: center;
}

.feedback-header h2 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.feedback-header p {
    color: #7f8c8d;
    margin: 0;
    font-size: 15px;
}

.response-message {
    background: #f8f9fa;
    border-left: 4px solid #2ecc71;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
}

.response-message i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.response-message h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.response-message p {
    color: #7f8c8d;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.uploaded-files {
    text-align: left;
}

.uploaded-files h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.uploaded-file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 8px;
    gap: 10px;
}

.uploaded-file-item i {
    color: #3498db;
    font-size: 18px;
}

.back-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #2980b9;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group { 
    margin-bottom: 25px; 
    position: relative;
}

.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 600; 
    color: #2c3e50;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input, .form-group select, .form-group textarea { 
    width: 100%; 
    padding: 12px 15px; 
    border: 2px solid #e0e0e0; 
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input.error, .form-group select.error, .form-group textarea.error {
    border-color: #e74c3c;
    background: #fff5f5;
}

.form-group input.valid, .form-group select.valid, .form-group textarea.valid {
    border-color: #2ecc71;
    background: #f0fff4;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

.char-counter {
    text-align: right;
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 5px;
}

.file-info {
    font-weight: normal;
    color: #7f8c8d;
    font-size: 13px;
}

.file-upload-area {
    border: 2px dashed #3498db;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-area:hover {
    background: #e3f2fd;
    border-color: #2980b9;
}

.file-upload-area i {
    font-size: 48px;
    color: #3498db;
    margin-bottom: 15px;
}

.file-upload-area p {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 16px;
}

.browse-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.browse-btn:hover {
    background: #2980b9;
}

.file-types {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 15px;
}

.file-list {
    margin-top: 20px;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    background: white;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.file-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.file-info-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    font-size: 20px;
    min-width: 24px;
}

.file-icon-img { color: #e74c3c; }
.file-icon-pdf { color: #e74c3c; }
.file-icon-doc { color: #3498db; }
.file-icon-xls { color: #2ecc71; }
.file-icon-zip { color: #f39c12; }
.file-icon-txt { color: #7f8c8d; }

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.file-size {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 2px;
}

.file-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 16px;
}

.file-remove:hover {
    background: #fff5f5;
}

.file-upload-progress {
    margin-top: 20px;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.checkbox-group label {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

/* ========== СТИЛИ КАПЧИ ========== */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.captcha-question {
    flex: 1;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 60px;
}

.captcha-question span {
    display: inline-block;
}

#captchaNum1, #captchaNum2 {
    color: #3498db;
    font-size: 24px;
    min-width: 40px;
    text-align: center;
}

.captcha-refresh {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #7f8c8d;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.captcha-refresh:hover {
    background: #e3f2fd;
    color: #3498db;
    border-color: #3498db;
    transform: rotate(180deg);
}

/* ИСПРАВЛЕНИЕ: Делаем поле для ввода ответа шире и адаптивным */
#captchaAnswer {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 20px; /* Увеличиваем шрифт для лучшей читаемости */
    font-weight: bold; /* Делаем цифры жирными */
    min-width: 120px; /* Минимальная ширина */
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s;
    width: 100%;
    letter-spacing: 2px; /* Добавляем расстояние между цифрами */
}

#captchaAnswer:focus {
    border-color: #3498db;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Стили для правильного и неправильного ответа */
#captchaAnswer.valid {
    border-color: #2ecc71;
    background: #f0fff4;
    color: #27ae60;
}

#captchaAnswer.error {
    border-color: #e74c3c;
    background: #fff5f5;
    color: #c0392b;
}

/* Убираем стрелки у числового поля */
#captchaAnswer::-webkit-inner-spin-button,
#captchaAnswer::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Улучшенная адаптивность капчи */
@media (max-width: 768px) {
    .captcha-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .captcha-question {
        flex: 1 1 100%;
        margin-bottom: 10px;
        order: 1;
        font-size: 18px; /* Уменьшаем шрифт на мобильных */
    }
    
    #captchaAnswer {
        flex: 2;
        min-width: 100px;
        order: 2;
        font-size: 18px;
        padding: 10px 12px;
    }
    
    .captcha-refresh {
        order: 3;
        align-self: stretch;
        height: auto;
    }
}

@media (max-width: 480px) {
    .captcha-container {
        flex-direction: column;
    }
    
    .captcha-question {
        width: 100%;
        order: 1;
        padding: 12px;
        font-size: 16px;
    }
    
    #captchaAnswer {
        width: 100%;
        order: 2;
        font-size: 18px;
        padding: 12px;
    }
    
    .captcha-refresh {
        width: 100%;
        order: 3;
        height: 45px;
    }
}

.submit-btn {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #3498db;
    font-size: 16px;
}

.loading-spinner i {
    margin-right: 10px;
    font-size: 20px;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.form-footer p {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .feedback-wrapper {
        flex-direction: column;
        max-width: 600px;
    }
    
    .info-panel, .form-panel {
        min-width: 100%;
        padding: 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .feedback-wrapper {
        border-radius: 10px;
    }
    
    .info-panel, .form-panel {
        padding: 20px;
    }
    
    .file-upload-area {
        padding: 30px 15px;
    }
    
    .file-upload-area i {
        font-size: 36px;
    }
}