/*
 * ============================================================================
 * inc/report-problem/assets/report-problem.css — стили формы техподдержки
 * ============================================================================
 *
 * @version    1.0.2
 * @build      2026-10-23-134500
 * @generated  2026-10-23 13:45:00 (MSK)
 *
 * НАЗНАЧЕНИЕ:
 *   - Стили ссылки «Сообщить о проблеме» в шапке.
 *   - Модальное окно с формой обращения.
 *   - Плашка благодарности после успешной отправки.
 *
 * ИЗМЕНЕНИЯ ОТ v1.0.1:
 *   - .header__info-part: text-align: right (телефон и ссылка по правому краю).
 *   - .header__report: text-align: right (для выравнивания ссылки по телефону).
 *
 * ОТКУДА ВЫЗЫВАЕТСЯ:
 *   - inc/report-problem/class-report-problem.php (wp_enqueue_style).
 *
 * ВНЕШНИЕ ЗАВИСИМОСТИ:
 *   - Нет. Использует CSS-переменные кабинета, если они есть, иначе
 *     локальные значения по умолчанию.
 *
 * ИСТОРИЯ ОБНОВЛЕНИЙ:
 *   v1.0.0 — 2026-10-23 — Создан.
 *   v1.0.1 — 2026-10-23 — Фикс вёрстки ссылки в шапке (block + nowrap).
 *   v1.0.2 — 2026-10-23 — Выравнивание по правому краю.
 *
 * ============================================================================
 */

/* ---------------------------------------------------------------------------
 * Ссылка «Сообщить о проблеме» в шапке
 * ------------------------------------------------------------------------- */

.header__info-part {
    text-align: right;
}

.header__report {
    display: block;
    clear: both;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    text-align: right;
    color: #768492;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    transition: color 0.15s ease;
    font-family: "Raleway", sans-serif;
}

.header__report:hover {
    color: var(--tst-cabinet-primary, #1e6fd9);
}

@media (max-width: 1024px) {
    .header__report {
        display: none;
    }
}

/* ---------------------------------------------------------------------------
 * Модальное окно
 * ------------------------------------------------------------------------- */

body.tst-report-modal-open {
    overflow: hidden;
}

.tst-report-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 23, 35, 0.55);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.tst-report-modal-overlay.is-open {
    display: flex;
}

.tst-report-modal {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(15, 23, 35, 0.35);
    padding: 28px 28px 24px;
    box-sizing: border-box;
    font-family: "Raleway", sans-serif;
    color: #1f2733;
}

.tst-report-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #6b7688;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.tst-report-modal__close:hover {
    background: #f0f3f8;
    color: #1f2733;
}

.tst-report-modal__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2733;
    padding-right: 32px;
}

.tst-report-modal__intro {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #4a5464;
}

.tst-report-modal__intro p {
    margin: 0 0 8px;
}

.tst-report-modal__intro p:last-child {
    margin-bottom: 0;
}

.tst-report-modal__field {
    margin: 0 0 14px;
}

.tst-report-modal__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2733;
}

.tst-report-modal__textarea {
    width: 100%;
    min-height: 140px;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #e2e6ee;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2733;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tst-report-modal__textarea:focus {
    outline: none;
    border-color: #1e6fd9;
    box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.15);
}

.tst-report-modal__textarea.is-invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.tst-report-modal__hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7688;
}

.tst-report-modal__error {
    display: none;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #c0392b;
    font-size: 13px;
    line-height: 1.4;
}

.tst-report-modal__error.is-visible {
    display: block;
}

/* Honeypot: скрытое поле для ботов. */
.tst-report-modal__hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.tst-report-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.tst-report-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid #e2e6ee;
    background: #ffffff;
    color: #1f2733;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tst-report-modal__btn:hover {
    background: #f7f9fc;
}

.tst-report-modal__btn--primary {
    background: #1e6fd9;
    border-color: #1e6fd9;
    color: #ffffff;
}

.tst-report-modal__btn--primary:hover {
    background: #1558b0;
    border-color: #1558b0;
}

.tst-report-modal__btn:disabled,
.tst-report-modal__btn.is-loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------------------
 * Плашка благодарности (внутри модалки)
 * ------------------------------------------------------------------------- */

.tst-report-modal__success {
    display: none;
    margin: 12px 0 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: #e6f7ec;
    border: 1px solid #c3e6cb;
    color: #1e8449;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.tst-report-modal__success.is-visible {
    display: block;
}

/* ---------------------------------------------------------------------------
 * Мобильная адаптация
 * ------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .tst-report-modal {
        padding: 22px 18px 18px;
        border-radius: 10px;
    }
    .tst-report-modal__title {
        font-size: 18px;
    }
    .tst-report-modal__actions {
        flex-direction: column-reverse;
    }
    .tst-report-modal__btn {
        width: 100%;
    }
}

/*
 * ----------------------------------------------------------------------------
 * Файл:    report-problem.css
 * Версия:  v1.0.2
 * Путь:    wp-content/themes/tstnext/inc/report-problem/assets/report-problem.css
 * Дата:    2026-10-23
 * Время:   13:45:00 (MSK)
 * ----------------------------------------------------------------------------
 * Commit:  report-problem.css: выравнивание по правому краю
 * ----------------------------------------------------------------------------
 */