/* ============================================
   ОСНОВНЫЕ СТИЛИ
   ============================================ */
.help-page {
    padding: 40px 0 80px;
    background: #f8f9fa;
    min-height: 100vh;
}

.help-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================ */
.help-breadcrumbs {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 30px;
}

.help-breadcrumbs a {
    color: #FF9E00; /* Оранжевый */
    text-decoration: none;
    transition: color 0.2s;
}

.help-breadcrumbs a:hover {
    color: #e68a00;
    text-decoration: underline;
}

.help-breadcrumb-sep {
    margin: 0 10px;
    color: #adb5bd;
}

.help-breadcrumb-current {
    color: #495057;
}

/* ============================================
   ЗАГОЛОВОК
   ============================================ */
.help-header-block {
    text-align: center;
    margin-bottom: 40px;
}

.help-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.help-subtitle {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
}

/* ============================================
   ФОРМА
   ============================================ */
.help-form-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 40px 48px;
}

.help-form-group {
    margin-bottom: 32px;
}

.help-form-group:last-of-type {
    margin-bottom: 0;
}

.help-form-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f3f5;
}

.help-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.help-row:last-child {
    margin-bottom: 0;
}

/* ============================================
   ПОЛЯ ВВОДА
   ============================================ */
.help-field {
    display: flex;
    flex-direction: column;
}

.help-field label {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.help-required {
    color: #dc3545;
    margin-left: 2px;
}

.help-field input,
.help-field select,
.help-field textarea {
    padding: 10px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #1a1a2e;
    width: 100%;
    box-sizing: border-box;
}

.help-field input:focus,
.help-field select:focus,
.help-field textarea:focus {
    outline: none;
    border-color: #FF9E00; /* Оранжевый */
    box-shadow: 0 0 0 3px rgba(255, 158, 0, 0.12);
}

.help-field input.error,
.help-field select.error,
.help-field textarea.error {
    border-color: #dc3545;
}

.help-field textarea {
    resize: vertical;
    min-height: 120px;
}

.help-error {
    font-size: 13px;
    color: #dc3545;
    margin-top: 4px;
    min-height: 20px;
}

.help-counter {
    font-size: 13px;
    color: #6c757d;
    text-align: right;
    margin-top: 4px;
}

/* ============================================
   ФАЙЛЫ
   ============================================ */
.help-file-upload {
    position: relative;
    margin-top: 4px;
}

.help-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.help-file-upload .help-file-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #fafbfc;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    min-height: 100px;
}

.help-file-upload .help-file-dropzone:hover {
    border-color: #FF9E00; /* Оранжевый */
    background: #fff8f0;
}

.help-file-upload .help-file-dropzone.dragover {
    border-color: #FF9E00;
    background: #fff8f0;
}

.help-file-upload .help-file-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.help-file-upload .help-file-text {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
}

.help-file-upload .help-file-text strong {
    color: #FF9E00; /* Оранжевый */
}

.help-file-upload .help-file-hint {
    font-size: 12px;
    color: #adb5bd;
    margin-top: 4px;
}

.help-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.help-file-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f1f3f5;
    border-radius: 6px;
    font-size: 13px;
    color: #495057;
}

.help-file-item .help-file-remove {
    cursor: pointer;
    color: #dc3545;
    font-size: 16px;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}

.help-file-item .help-file-remove:hover {
    color: #c82333;
}

/* ============================================
   КАРТА СДЭК
   ============================================ */
.help-note {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 16px 0;
}

.help-cdek-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #dee2e6;
    background: #f1f3f5;
    position: relative;
}

.help-cdek-map .cdek-widget-map {
    width: 100%;
    height: 100%;
}

.help-map-error {
    margin-top: 8px;
}

.help-cdek-selected {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #FF9E00; /* Оранжевый */
}

.help-cdek-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.help-cdek-info {
    flex: 1;
}

.help-cdek-title {
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.help-cdek-address {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a2e;
}

.help-cdek-meta {
    font-size: 13px;
    color: #6c757d;
    margin-top: 2px;
}

/* ============================================
   ЧЕКБОКС
   ============================================ */
.help-checkbox {
    margin-bottom: 24px;
}

.help-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}

.help-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.help-checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s;
    position: relative;
    margin-top: 1px;
}

.help-checkbox-label input:checked + .help-checkbox-custom {
    background: #FF9E00; /* Оранжевый */
    border-color: #FF9E00;
}

.help-checkbox-label input:checked + .help-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.help-checkbox-label input:focus + .help-checkbox-custom {
    box-shadow: 0 0 0 3px rgba(255, 158, 0, 0.2);
}

.help-checkbox-text {
    line-height: 1.5;
}

.help-checkbox-text a {
    color: #FF9E00; /* Оранжевый */
    text-decoration: none;
}

.help-checkbox-text a:hover {
    text-decoration: underline;
    color: #e68a00;
}

/* ============================================
   КНОПКА ОТПРАВКИ (инверсивный ховер)
   ============================================ */
.help-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #FF9E00;
    border: 2px solid #FF9E00;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 54px;
    position: relative;
    overflow: hidden;
}

/* Инверсивный ховер */
.help-submit:hover {
    background: transparent;
    color: #FF9E00;
    box-shadow: 0 4px 16px rgba(255, 158, 0, 0.15);
}

.help-submit:active {
    transform: scale(0.97);
}

.help-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Спиннер для загрузки */
.help-btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-spinner {
    width: 24px;
    height: 24px;
    animation: help-spin 0.8s linear infinite;
}

.help-spinner-path {
    stroke: #fff;
    stroke-linecap: round;
    stroke-dasharray: 150;
    stroke-dashoffset: 40;
}

/* При загрузке ховер не работает */
.help-submit:disabled:hover {
    background: #FF9E00;
    color: #fff;
    box-shadow: none;
}

@keyframes help-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 768px) {
    .help-page {
        padding: 20px 0 40px;
    }
    
    .help-form-wrapper {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .help-title {
        font-size: 28px;
    }
    
    .help-subtitle {
        font-size: 16px;
    }
    
    .help-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .help-cdek-map {
        height: 300px;
    }
    
    .help-submit {
        font-size: 15px;
        padding: 12px 24px;
        min-height: 48px;
    }
    
    .help-file-upload .help-file-dropzone {
        padding: 24px 16px;
        min-height: 80px;
    }
}

@media (max-width: 480px) {
    .help-form-wrapper {
        padding: 16px;
    }
    
    .help-title {
        font-size: 24px;
    }
    
    .help-cdek-map {
        height: 250px;
    }
}



/* ============================================
   ФАЙЛЫ - ИСПРАВЛЕННАЯ ВЕРСИЯ
   ============================================ */
.help-file-upload {
    position: relative;
    margin-top: 4px;
}

.help-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.help-file-upload .help-file-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    background: #fafbfc;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    min-height: 100px;
    position: relative;
    z-index: 1;
}

.help-file-upload .help-file-dropzone:hover {
    border-color: #FF9E00;
    background: #fff8f0;
}

.help-file-upload .help-file-dropzone.dragover {
    border-color: #FF9E00;
    background: #fff8f0;
}

.help-file-upload .help-file-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.help-file-upload .help-file-text {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
}

.help-file-upload .help-file-text strong {
    color: #FF9E00;
}

.help-file-upload .help-file-hint {
    font-size: 12px;
    color: #adb5bd;
    margin-top: 4px;
}

/* СПИСОК ФАЙЛОВ - ВАЖНО! */
.help-file-list {
    display: block !important; /* Принудительно показываем */
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 0;
    min-height: 20px;
}

.help-file-item {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f1f3f5;
    border-radius: 6px;
    font-size: 13px;
    color: #495057;
    margin-bottom: 8px;
    animation: help-file-appear 0.2s ease;
}

@keyframes help-file-appear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.help-file-item .help-file-remove {
    cursor: pointer;
    color: #dc3545;
    font-size: 18px;
    line-height: 1;
    background: none;
    border: none;
    padding: 0 4px;
    transition: transform 0.2s;
}

.help-file-item .help-file-remove:hover {
    transform: scale(1.2);
    color: #c82333;
}

.help-file-item .help-file-remove:focus {
    outline: none;
}


/* Индикатор загрузки карты */
.help-cdek-map .help-map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-size: 16px;
    background: #f8f9fa;
}

.help-cdek-map .help-map-error-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #dc3545;
    font-size: 16px;
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
}

/* Кнопка загрузки карты */
.help-load-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 20px 24px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 16px;
    color: #495057;
    margin-bottom: 16px;
}

.help-load-map-btn:hover {
    background: #fff8f0;
    border-color: #FF9E00;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 158, 0, 0.15);
}

.help-load-map-btn:active {
    transform: translateY(0);
}

.help-load-map-btn .help-load-map-icon {
    font-size: 28px;
}

.help-load-map-btn .help-load-map-hint {
    font-size: 12px;
    color: #adb5bd;
    display: block;
    margin-top: 2px;
}

.help-load-map-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

.help-load-map-btn.loaded {
    display: none;
}

/* ============================================
   СИСТЕМА УВЕДОМЛЕНИЙ
   ============================================ */
.help-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    max-width: 420px;
    width: 100%;
    animation: helpNotifSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.help-notification.hiding {
    animation: helpNotifSlideOut 0.3s ease forwards;
}

.help-notification-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #FF9E00;
    position: relative;
    overflow: hidden;
}

/* Типы уведомлений */
.help-notification.success .help-notification-content {
    border-left-color: #28a745;
}

.help-notification.error .help-notification-content {
    border-left-color: #dc3545;
}

.help-notification.warning .help-notification-content {
    border-left-color: #ffc107;
}

.help-notification.info .help-notification-content {
    border-left-color: #17a2b8;
}

/* Иконка */
.help-notification-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Тело уведомления */
.help-notification-body {
    flex: 1;
    min-width: 0;
}

.help-notification-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.help-notification-text {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    word-break: break-word;
}

/* Кнопка закрытия */
.help-notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #adb5bd;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s, transform 0.2s;
    margin-top: -4px;
}

.help-notification-close:hover {
    color: #495057;
    transform: rotate(90deg);
}

/* Прогресс-бар уведомления */
.help-notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #FF9E00;
    transition: width 0.1s linear;
    border-radius: 0 2px 0 0;
}

.help-notification.success .help-notification-progress {
    background: #28a745;
}

.help-notification.error .help-notification-progress {
    background: #dc3545;
}

.help-notification.warning .help-notification-progress {
    background: #ffc107;
}

.help-notification.info .help-notification-progress {
    background: #17a2b8;
}

/* Анимации */
@keyframes helpNotifSlideIn {
    from {
        transform: translateX(calc(100% + 40px));
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes helpNotifSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(calc(100% + 40px));
        opacity: 0;
    }
}

/* Адаптивность */
@media (max-width: 480px) {
    .help-notification {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
        width: auto;
    }
    
    .help-notification-content {
        padding: 14px 16px;
    }
    
    .help-notification-icon {
        font-size: 24px;
    }
    
    .help-notification-title {
        font-size: 14px;
    }
    
    .help-notification-text {
        font-size: 13px;
    }
}

/* Стек уведомлений (несколько подряд) */
.help-notification + .help-notification {
    margin-top: 12px;
}


/* ============================================
   БЫСТРЫЕ ОТВЕТЫ
   ============================================ */
.help-quick-problems {
    margin-bottom: 16px;
}

.help-quick-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 10px;
}

.help-quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.help-quick-btn {
    padding: 6px 14px;
    background: #f1f3f5;
    border: 1.5px solid #e9ecef;
    border-radius: 20px;
    font-size: 13px;
    font-family: inherit;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.help-quick-btn:hover {
    background: #fff8f0;
    border-color: #FF9E00;
    color: #FF9E00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 158, 0, 0.15);
}

.help-quick-btn:active {
    transform: translateY(0);
    transform: scale(0.97);
}

.help-quick-btn.selected {
    background: #FF9E00;
    border-color: #FF9E00;
    color: #fff;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .help-quick-buttons {
        gap: 6px;
    }
    
    .help-quick-btn {
        padding: 5px 12px;
        font-size: 12px;
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .help-quick-btn {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* ============================================
   ФОН СТРАНИЦЫ И ШРИФТЫ
   ============================================ */

/* Фон всей страницы */
.help-page {
    background: #F9F3F1;
    min-height: 100vh;
    padding: 40px 0 80px;
}

/* Убираем жирность у всех заголовков и текста */
.help-title,
.help-form-title,
.help-subtitle,
.help-field label,
.help-quick-label,
.help-cdek-title,
.help-notification-title,
.help-file-text strong,
.help-submit {
    font-weight: 400 !important;
}

/* Заголовок h1 делаем чуть плотнее, но не жирным */
.help-title {
    font-size: 36px;
    font-weight: 400 !important;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

/* Заголовки блоков формы */
.help-form-title {
    font-size: 20px;
    font-weight: 400 !important;
    color: #1a1a2e;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f3f5;
}

/* Подзаголовок */
.help-subtitle {
    font-size: 18px;
    font-weight: 400 !important;
    color: #6c757d;
    margin: 0;
}

/* Лейблы полей */
.help-field label {
    font-size: 14px;
    font-weight: 400 !important;
    color: #495057;
    margin-bottom: 6px;
}

/* Кнопка отправки */
.help-submit {
    font-weight: 400 !important;
}

/* Быстрые ответы */
.help-quick-label {
    font-weight: 400 !important;
}

/* Заголовок уведомлений */
.help-notification-title {
    font-weight: 400 !important;
}

/* ============================================
   ЗАГОЛОВОК "Гарантия и сервис"
   ============================================ */

.help-title {
    font-size: 36px;
    font-weight: 500 !important;
    color: #75420C;
    margin: 0 0 12px 0;
}