/* feedback.css */

/* Основная карточка формы */
.feedback-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.feedback-card .card-header {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    border-bottom: none;
    padding: 1.5rem 2rem;
}

.feedback-card .card-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.feedback-card .card-header p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Стили формы */
.feedback-form {
    width: 100%;
}

.feedback-form input.form-control,
.feedback-form textarea.form-control,
.feedback-form select.form-select {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-form input.form-control:focus,
.feedback-form textarea.form-control:focus,
.feedback-form select.form-select:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
    outline: none;
}

.feedback-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Стили для меток полей */
.form-label {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required-field::after {
    content: " *";
    color: #dc3545;
    font-weight: 600;
}

/* Сообщения об ошибках */
.invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
    display: block;
}

/* Карточка безопасности */
.security-card {
    border: 2px solid #4361ee;
    border-radius: 16px;
    background: #f8f9fa;
    margin-bottom: 1.5rem;
}

.security-card .card-body {
    padding: 1.25rem;
}

.security-card .card-title {
    color: #4361ee;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Карточка согласия */
.consent-card {
    border: 2px solid #198754;
    border-radius: 16px;
    background: #f8f9fa;
    margin-bottom: 1.5rem;
}

.consent-card .card-body {
    padding: 1.25rem;
}

/* Чекбокс согласия */
.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    border: 2px solid #dee2e6;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #4361ee;
    border-color: #4361ee;
}

.form-check-input:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.form-check-label {
    font-size: 0.95rem;
    color: #212529;
    cursor: pointer;
}

/* Ссылка на политику */
#privacy-link {
    color: #4361ee;
    text-decoration: none;
    font-weight: 600;
}

#privacy-link:hover {
    text-decoration: underline;
}

/* Информационный alert */
.info-alert {
    background: #e7f3ff;
    border: none;
    border-left: 4px solid #4361ee;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.info-alert i {
    color: #4361ee;
}

.info-alert p {
    font-size: 0.9rem;
    color: #495057;
}

/* Кнопка отправки */
.submit-btn {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #a0a0a0 0%, #7a7a7a 100%);
}

/* Кнопка назад */
.back-btn {
    border: 2px solid #6c757d;
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    background: transparent;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

/* Информационная карточка */
.info-card {
    border-radius: 16px;
    background: white;
    margin-top: 1.5rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.response-icon {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
}

.privacy-icon {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.info-card h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.info-card p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Модальное окно */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1.25rem;
}

.privacy-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.privacy-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #4361ee;
}

.privacy-content p,
.privacy-content li {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.6;
}

.privacy-content ul {
    padding-left: 1.5rem;
}

/* Скроллбар для модального окна */
.privacy-content::-webkit-scrollbar {
    width: 6px;
}

.privacy-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.privacy-content::-webkit-scrollbar-thumb {
    background: #4361ee;
    border-radius: 10px;
}

.privacy-content::-webkit-scrollbar-thumb:hover {
    background: #3a56d4;
}

/* Адаптация для мобильных устройств */
@media (max-width: 767.98px) {
    .feedback-card .card-header {
        padding: 1.25rem;
    }
    
    .feedback-card .card-header h2 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .submit-btn,
    .back-btn {
        width: 100%;
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
    
    .info-card .col-md-6:first-child {
        margin-bottom: 1rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .privacy-content {
        max-height: 50vh;
    }
}

@media (max-width: 575.98px) {
    .feedback-card .card-header h2 {
        font-size: 1.35rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .security-card .card-body,
    .consent-card .card-body {
        padding: 1rem;
    }
    
    .info-alert {
        padding: 0.875rem;
    }
    
    .info-alert p {
        font-size: 0.85rem;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .info-card h6 {
        font-size: 0.95rem;
    }
    
    .info-card p {
        font-size: 0.85rem;
    }
}

/* Отключаем все анимации наведения */
.feedback-card,
.security-card,
.consent-card,
.info-card,
.modal-content {
    transition: none !important;
}

.feedback-card:hover,
.security-card:hover,
.consent-card:hover,
.info-card:hover,
.modal-content:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Убираем анимацию с полей формы */
.form-control,
.form-select,
.form-check-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Стили для печати */
@media print {
    .navbar,
    .footer,
    .submit-btn,
    .back-btn,
    #privacyModal {
        display: none !important;
    }
}
