/*
 * page-support.css
 * Styles specific to the support section views (support, ticket, tickets, newticket,
 * ticketstatus, claim-download, text-email, gdpr_request).
 * Loaded via <link> in each support view. Contains bare element selectors (label, p, i)
 * that are intentionally scoped to support pages only.
 */

/* --- Subject / navigation wizard --- */
.subject-option {
    border: 2px solid #f5f5f5;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: border 0.3s, background-color 0.3s;
    color: #777;
    font-weight: 900;
    font-size: 1.1rem;
}

.subject-option:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.subject-option.selected {
    border-color: #007bff;
    background-color: #e7f3ff;
}

.navigation {
    margin-top: 20px;
}

#nextButton:disabled {
    background-color: #c0c0c0;
    cursor: not-allowed;
}

/* --- Support spacing utilities --- */
.ms-25 {
    margin-left: 25px;
}

.mt-25 {
    margin-top: 25px;
}

.mb-25 {
    margin-bottom: 25px;
}

.p-25 {
    padding: 25px;
}

.hidden {
    display: none;
}

/* --- Support typography --- */
/* Note: bare element selectors below are intentional — this stylesheet is
   loaded exclusively on support pages, so they don't bleed globally. */
label {
    font-weight: 400;
    color: #444;
    font-size: 1.1rem;
    text-align: left;
}

p {
    font-weight: 100;
    color: #777;
    font-size: 0.9rem;
}

i {
    color: #333;
}

.left {
    text-align: left;
}

.center {
    text-align: center;
}

#dynamic-message {
    font-weight: 400;
    color: #444;
    font-size: 1.1rem;
    text-align: left;
}

/* --- claim-download / text-email --- */
.inset-border {
    border: 3px solid #001F3F;
    border-radius: 10px;
}

/* --- GDPR request form --- */
.pi-request-wrap {
    min-height: 89vh;
    padding-bottom: 180px;
}

.pi-request-card {
    height: auto !important;
    min-height: 0 !important;
}

.pi-check-item {
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}

.pi-check-ok {
    color: #198754;
    font-weight: 600;
}

.pi-check-no {
    color: #dc3545;
    font-weight: 600;
}

.pi-check-na {
    color: #6c757d;
}

.pi-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
    background: #0d6efd;
    animation: piPulse 1.1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes piPulse {
    0%   { transform: scale(0.75); opacity: 0.5; }
    50%  { transform: scale(1.2);  opacity: 1; }
    100% { transform: scale(0.75); opacity: 0.5; }
}

/* ===================================================================
   Support glow-up (2026-06-08) — themed buttons, FAQ question text, and
   the offcanvas "soon" badge. Theme-variable driven so it follows the
   active theme instead of raw Bootstrap blue/info/warning. The support
   cards are Bootstrap-light surfaces, so FAQ question text stays a dark,
   readable colour in both light and dark mode (the card itself is light).
   =================================================================== */
.sup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    border: 2px solid var(--accent-orange);
    background: transparent;
    color: var(--accent-orange);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease,
                background-color 0.15s ease, color 0.15s ease;
}
.sup-btn:hover,
.sup-btn:focus-visible {
    background: var(--accent-orange);
    color: var(--font-white, #fff);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.sup-btn--primary {
    background: var(--accent-orange);
    color: var(--font-white, #fff);
}
.sup-btn--primary:hover,
.sup-btn--primary:focus-visible {
    color: var(--font-white, #fff);
}
.sup-btn--block { width: 100%; }

/* FAQ accordion question label — replaces raw Bootstrap .text-primary (blue). */
.faq-q {
    color: var(--font-light-color);
    font-weight: 600;
}
.faq-q strong { color: var(--accent-orange); }

/* Offcanvas "Account — soon" disabled entry. */
.sup-soon {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}
.sup-soon-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--accent-orange);
    color: var(--font-white, #fff);
    border-radius: 999px;
    padding: 1px 8px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Section eyebrow / muted intro text on the FAQ landing. */
.sup-eyebrow {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-orange);
}

@media (prefers-reduced-motion: reduce) {
    .sup-btn:hover, .sup-btn:focus-visible { transform: none; }
}

/* Smaller button variant for table-row / inline actions. */
.sup-btn--sm { padding: 6px 14px; font-size: 0.85rem; }

/* Subject picker — clean selectable rows (replaces the big-icon tiles). */
.sup-subject-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}
.sup-subject-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: left;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.sup-subject-row:hover,
.sup-subject-row:focus-visible {
    border-color: var(--accent-orange);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    outline: none;
}
.sup-subject-icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--accent-orange);
    background: var(--bg-light-secondary);
    background: color-mix(in srgb, var(--accent-orange) 14%, transparent);
}
.sup-subject-text {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}
.sup-subject-title {
    font-weight: 700;
    color: var(--font-light-color);
    font-size: 1.02rem;
    line-height: 1.25;
}
.sup-subject-help {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.3;
    margin-top: 2px;
}
.sup-subject-arrow {
    flex: 0 0 auto;
    color: var(--accent-orange);
    font-size: 0.9rem;
}
@media (prefers-reduced-motion: reduce) {
    .sup-subject-row:hover, .sup-subject-row:focus-visible { transform: none; }
}

/* ===================================================================
   Support shell — persistent left rail (desktop) + bottom tab bar (mobile).
   Replaces the modal offcanvas + the "Need a hand?" card. The nav uses the
   theme's PAGE background (not a white panel) so it reads as app chrome.
   .sup-shell on the page container reserves the gutter / bottom space.
   =================================================================== */
.sup-shell { position: relative; }
/* The persistent rail/bar makes the top-nav hamburger redundant everywhere. */
.sup-shell .menu-button { display: none !important; }
@media (min-width: 992px) {
    .sup-shell { padding-left: 248px; }
}
@media (max-width: 991.98px) {
    .sup-shell { padding-bottom: 74px; }
    /* lift the floating accessibility button above the bottom bar */
    .accessibility-btn { bottom: 84px; }
}
@media (min-width: 992px) {
    /* keep the floating accessibility button clear of the left rail */
    .accessibility-btn { left: 262px; }
}

.sup-sidenav {
    display: none;
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 248px; z-index: 1031;
    padding: 22px 14px;
    overflow-y: auto;
    background: var(--bg-light-color);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}
.mode-dark .sup-sidenav { background: var(--bg-dark-color); border-right-color: rgba(255, 255, 255, 0.10); }
@media (min-width: 992px) { .sup-sidenav { display: flex; flex-direction: column; } }
.sup-sidenav-head {
    font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.05rem;
    color: var(--accent-orange); padding: 2px 12px 14px;
}
.sup-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.sup-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 10px;
    color: var(--font-light-color); text-decoration: none;
    font-size: 0.95rem; font-weight: 600; line-height: 1.2;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.mode-dark .sup-nav-link { color: var(--font-dark-color); }
.sup-nav-link i { width: 20px; text-align: center; font-size: 0.95rem; flex: 0 0 auto; }
.sup-nav-link:hover { background: var(--bg-light-secondary); color: var(--accent-orange); }
.mode-dark .sup-nav-link:hover { background: var(--bg-dark-secondary); }
.sup-nav-link.active { background: var(--accent-orange); color: var(--font-white, #fff); }
.sup-nav-link.active i { color: var(--font-white, #fff); }
.sup-nav-soon { opacity: 0.5; cursor: default; }
.sup-sidenav-foot { padding: 14px 12px 4px; margin-top: 10px; border-top: 1px solid rgba(0, 0, 0, 0.08); display: flex; flex-direction: column; gap: 4px; }
.mode-dark .sup-sidenav-foot { border-top-color: rgba(255, 255, 255, 0.10); }
.sup-sidenav-foot a { font-size: 0.82rem; color: var(--font-light-color); opacity: 0.82; text-decoration: none; word-break: break-word; }
.mode-dark .sup-sidenav-foot a { color: var(--font-dark-color); }
.sup-sidenav-foot a:hover { color: var(--accent-orange); opacity: 1; }

.sup-bottomnav {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1031;
    background: var(--bg-light-color);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.10);
}
.mode-dark .sup-bottomnav { background: var(--bg-dark-color); border-top-color: rgba(255, 255, 255, 0.10); }
@media (min-width: 992px) { .sup-bottomnav { display: none; } }
.sup-bottomnav-item {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 9px 2px 8px; min-height: 60px;
    color: var(--font-light-color); text-decoration: none;
    font-size: 0.66rem; font-weight: 600; text-align: center;
}
.mode-dark .sup-bottomnav-item { color: var(--font-dark-color); }
.sup-bottomnav-item i { font-size: 1.15rem; }
.sup-bottomnav-item.active, .sup-bottomnav-item.active i { color: var(--accent-orange); }

/* ===================================================================
   Support dashboard (/support) — white cards on the themed background.
   =================================================================== */
.sup-dash { max-width: 900px; margin: 0 auto; padding: 8px 0 30px; }
.sup-dash-card {
    background: #fff; border-radius: 16px; padding: 26px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); margin-bottom: 22px;
}
.sup-dash-hello { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--font-light-color); margin-bottom: 6px; }
.sup-dash-sub { color: #6c757d; margin-bottom: 0; }
.sup-section-label { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.74rem; font-weight: 700; color: var(--accent-orange); margin: 4px 0 12px; }
.sup-countdown { display: flex; align-items: center; gap: 18px; }
.sup-countdown-icon {
    flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    color: var(--accent-orange);
    background: var(--bg-light-secondary);
    background: color-mix(in srgb, var(--accent-orange) 14%, transparent);
}
.sup-countdown-body { flex: 1 1 auto; min-width: 0; }
.sup-countdown-date { font-weight: 800; color: var(--font-light-color); font-size: 1.12rem; }
.sup-countdown-sub { color: #6c757d; font-size: 0.92rem; }
.sup-countdown-urgent .sup-countdown-icon { color: #b02a37; background: rgba(176, 42, 55, 0.12); }
.sup-countdown-urgent .sup-countdown-date { color: #b02a37; }
.sup-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.sup-action {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 18px 16px; border-radius: 14px; text-decoration: none;
    background: #fff; border: 1px solid rgba(0, 0, 0, 0.10);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.sup-action:hover, .sup-action:focus-visible {
    border-color: var(--accent-orange); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px); outline: none;
}
.sup-action-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    color: var(--accent-orange);
    background: var(--bg-light-secondary);
    background: color-mix(in srgb, var(--accent-orange) 12%, transparent);
}
.sup-action-title { font-weight: 700; color: var(--font-light-color); }
.sup-action-desc { font-size: 0.82rem; color: #6c757d; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) {
    .sup-action:hover, .sup-action:focus-visible { transform: none; }
}

/* ===================================================================
   FAQ accordion — modern card-style accordion (2026-06-08).
   Retires the boxed default-Bootstrap look across ALL four FAQ layouts
   (flat / grouped / category-grid / searchable): each Q&A is a separated,
   rounded, softly-shadowed card that lifts on hover, with an accent-tinted
   open state and a smooth border-drawn chevron — matching the .sup-action
   card vocabulary above. Scoped to .faq-accordion so it never touches the
   legacy .panel collapse on the ticket views. The support card is a light
   surface in both light + dark mode, so one light design serves both. The
   .faq-accordion prefix also raises specificity over Bootstrap's own
   .accordion rules, so no !important is needed.
   =================================================================== */
.faq-accordion {
    --bs-accordion-border-color: transparent;
    --bs-accordion-btn-focus-box-shadow: none;
}

/* Each question is its own floating, rounded card. */
.faq-accordion .accordion-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.faq-accordion .accordion-item:last-child { margin-bottom: 0; }
/* Bootstrap squares off the first/last item — keep them rounded. */
.faq-accordion .accordion-item:first-of-type,
.faq-accordion .accordion-item:last-of-type { border-radius: 14px; }

/* Hover lift on a closed card (matches .sup-action). */
.faq-accordion .accordion-item:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: color-mix(in srgb, var(--accent-orange) 30%, transparent);
}
/* Open card: accent border + soft elevation (progressive — :has() degrades). */
.faq-accordion .accordion-item:has(.accordion-button:not(.collapsed)) {
    border-color: color-mix(in srgb, var(--accent-orange) 45%, transparent);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
}

.faq-accordion .accordion-button {
    padding: 18px 20px;
    background: transparent;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    box-shadow: none;
    transition: background-color 0.2s ease;
}
/* Clean accent focus ring — no Bootstrap blue glow. */
.faq-accordion .accordion-button:focus {
    box-shadow: none;
    outline: 2px solid color-mix(in srgb, var(--accent-orange) 60%, transparent);
    outline-offset: -2px;
}
/* Open button: faint accent wash, square the bottom so it meets the body. */
.faq-accordion .accordion-button:not(.collapsed) {
    background: color-mix(in srgb, var(--accent-orange) 7%, #fff);
    border-radius: 14px 14px 0 0;
    box-shadow: none;
    color: var(--font-light-color);
}

/* Border-drawn chevron — no font / SVG dependency; rotates open. */
.faq-accordion .accordion-button::after {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-left: 16px;
    background-image: none;
    border-right: 2px solid var(--accent-orange);
    border-bottom: 2px solid var(--accent-orange);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}
.faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(-135deg);
}

.faq-accordion .accordion-body {
    padding: 4px 20px 20px;
    color: #555;
    line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    .faq-accordion .accordion-item { transition: none; }
    .faq-accordion .accordion-button::after { transition: none; }
}

/* Ticket attachments — image thumbnails + document links in the thread. */
.sup-ticket-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.sup-ticket-file {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #fff;
}
.sup-ticket-file img {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: cover;
}
.sup-ticket-file--doc {
    width: auto;
    height: auto;
    padding: 10px 14px;
    gap: 8px;
    color: var(--accent-orange);
    font-weight: 600;
}
.sup-ticket-file:hover { border-color: var(--accent-orange); }
