/*
 * page-support.css
 * Styles for the support section and every page that shares its frame
 * (shared/acct_shell_open.php loads this file): /support/*, the order lookup,
 * and the auth/* + account/* pages. No bare element selectors — everything is
 * scoped to a sup- / faq- / support- class.
 */

/* The legacy wizard utilities (.subject-option, .navigation, .mt-25, .hidden,
   .left/.center, #dynamic-message, .inset-border, .pi-request-*, .pi-check-*)
   and the bare `label` / `p` / `i` rules that sat here were retired 2026-09-30,
   when every support page moved into the shared frame. Those bare rules are
   what made support text thin, grey and small; card text is now set by
   .sup-dash-card and the form scale further down. */

/* Small "working…" dot used while a live check or a send is in flight. */
.pi-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
    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); }

/* The "Account — soon" placeholder entry was retired 2026-09-15: the customer
   account surface is built, so the nav either links to it or omits it. Its
   .sup-soon / .sup-soon-badge rules went with it. */

/* 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; }

/* Destructive action (turning off two-step verification). A fixed red, not a
   theme colour: a studio's accent may itself be red, and this must still read
   as the dangerous one. The label always says what it does. */
.sup-btn--danger { border-color: #b02a37; color: #b02a37; }
.sup-btn--danger:hover,
.sup-btn--danger:focus-visible { background: #b02a37; color: #fff; }

/* 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); }
/* Chrome icons take their colour from the thing they sit in. (This once
   countered a bare `i { color: #333 }` rule, retired 2026-09-30; kept so a
   global icon colour can never paint them near-black on an orange button.) */
.sup-nav-link i,
.sup-bottomnav-item i,
.sup-btn i,
.sup-action-icon i,
.sup-countdown-icon i,
.sup-subject-icon i,
.sup-alert i { color: inherit; }
.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); }
/* Account rail (2026-09-16): on /account/* the rail lists the account's own
   sections first, then the support links under a "Help" label. Only the last
   list grows, so the contact footer still sits at the bottom. */
.sup-nav-list--grouped { flex: 0 0 auto; }
.sup-sidenav-group {
    letter-spacing: 0.08em; text-transform: uppercase;
    font-size: 0.72rem; font-weight: 700;
    color: var(--font-light-color); opacity: 0.7;
    padding: 16px 12px 6px; margin-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.mode-dark .sup-sidenav-group { color: var(--font-dark-color); border-top-color: rgba(255, 255, 255, 0.10); }
.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); }

/* ===================================================================
   Order lookup (2026-09-15) — /login/orderstatus + /login/searchorder.
   Those two pages are the support section's "My Order" tab, so they now
   render inside .sup-shell with the same rail, cards and buttons as
   /support. These are the few pieces the dashboard vocabulary was
   missing: a themed alert, a form block, and a wider content column for
   the order table.
   =================================================================== */

/* The order table needs more room than the 900px dashboard column. */
.sup-dash--wide { max-width: 1140px; }

/* Forms inside a .sup-dash-card. Capped well short of the card so a
   three-field lookup doesn't stretch into a full-width banner. */
.sup-form { max-width: 520px; }
.sup-form .form-control {
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    padding: 10px 14px;
}
.sup-form .form-control:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.06);
    outline: none;
}
.sup-field-help {
    font-size: 0.82rem;
    color: #6c757d;
    margin-top: 4px;
}

/* Themed alert. Replaces .alert-danger / .alert-success, whose fixed
   red/green ignored the theme. Meaning never rests on colour alone
   (§18e): each tone carries its own icon and its own words. */
.sup-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.92rem;
    line-height: 1.4;
    margin-bottom: 16px;
}
.sup-alert i { flex: 0 0 auto; margin-top: 2px; font-size: 1rem; }
.sup-alert--error { background: rgba(176, 42, 55, 0.08); border-color: rgba(176, 42, 55, 0.28); color: #842029; }
.sup-alert--warn  { background: rgba(255, 193, 7, 0.12); border-color: rgba(255, 193, 7, 0.38); color: #664d03; }
.sup-alert--ok    { background: rgba(25, 135, 84, 0.09); border-color: rgba(25, 135, 84, 0.28); color: #0f5132; }

/* Grand total gets the accent so the one number people came to check
   is the one the eye lands on. */
.order-summary-box--total {
    border-color: var(--accent-orange);
    border-color: color-mix(in srgb, var(--accent-orange) 45%, transparent);
    background: #fff;
    background: color-mix(in srgb, var(--accent-orange) 6%, #fff);
}
.order-summary-box--total .order-price { color: var(--accent-orange); font-size: 1.25rem; }
.order-summary-note { font-size: 0.8rem; color: #6c757d; margin-top: 4px; }

/* The support cards are light surfaces in both modes, so the table
   inside one stays light too rather than following Bootstrap's dark
   variables. */
.sup-dash-card .order-table { --bs-table-bg: transparent; }
.sup-dash-card .order-summary-grid { margin-top: 4px; }

@media (max-width: 575.98px) {
    /* Six tabs at phone width: keep every label on one line. */
    .sup-bottomnav-item { font-size: 0.6rem; }
    .sup-bottomnav-item span { white-space: nowrap; }
}

/* ===================================================================
   Support pages — one frame, one type scale (2026-09-30).
   Every /support page now renders inside shared/acct_shell_open.php, in the
   same .sup-dash column (900px; --wide for tables), with a page-title card
   first and content in .sup-dash-card below. These rules are the pieces the
   pages share: the title, readable card text, a form scale sized for phones,
   the request list, the ticket conversation, and the illustrated how-to steps.
   Cards are light surfaces in both modes (see the dashboard), so text inside
   them uses the light-mode tokens.
   =================================================================== */
.sup-dash-hello { margin: 0 0 6px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem); line-height: 1.2; }
.sup-dash-sub { font-size: 1.02rem; line-height: 1.5; }
.sup-dash-card { color: var(--font-light-color); font-size: 1.02rem; line-height: 1.55; }
.sup-dash-card p { color: inherit; font-size: inherit; font-weight: 400; }
.sup-dash-card > :last-child { margin-bottom: 0; }
.sup-card-title {
    font-family: 'Poppins', sans-serif; font-weight: 800;
    font-size: 1.2rem; line-height: 1.3; margin: 0 0 10px;
    color: var(--font-light-color);
}
.sup-muted { color: #5f6570; }
.sup-dash-card a:not(.sup-btn):not(.sup-action):not(.sup-subject-row) { color: var(--accent-orange); font-weight: 600; }

/* Form scale — big enough to tap and read on a phone, one field per row. */
.sup-dash-card .form-label {
    font-size: 1rem; font-weight: 700; color: var(--font-light-color);
    margin-bottom: 6px;
}
.sup-dash-card .form-control,
.sup-dash-card .form-select {
    font-size: 1.05rem; min-height: 50px; padding: 11px 14px;
    border-radius: 12px; border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: #fff; color: #212529;
}
.sup-dash-card textarea.form-control { min-height: 140px; line-height: 1.5; }
.sup-dash-card .form-control:focus,
.sup-dash-card .form-select:focus {
    border-color: var(--accent-orange); outline: none;
    box-shadow: 0 0 0 0.22rem rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 0 0.22rem color-mix(in srgb, var(--accent-orange) 22%, transparent);
}
.sup-dash-card .form-control[aria-invalid="true"],
.sup-dash-card .form-select[aria-invalid="true"] { border-color: #b02a37; }
.sup-field { margin-bottom: 22px; }
.sup-field-help { font-size: 0.9rem; color: #5f6570; margin-top: 6px; line-height: 1.45; }
.sup-field-error {
    display: flex; align-items: flex-start; gap: 6px;
    font-size: 0.92rem; font-weight: 600; color: #a61e2d; margin-top: 6px;
}
.sup-field-error i { color: inherit; margin-top: 3px; }
.sup-optional { font-weight: 500; color: #5f6570; font-size: 0.9rem; }
.sup-required { color: #a61e2d; }
.sup-honeypot { position: absolute; left: -99999px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons sized to match the fields. */
.sup-btn--lg { padding: 13px 28px; font-size: 1.05rem; }
.sup-btn-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.sup-btn-row--end { justify-content: flex-end; }
.sup-link-btn {
    border: 0; background: none; padding: 0; font: inherit; font-weight: 700;
    color: var(--accent-orange); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.sup-link-btn i { color: inherit; }

/* Status text — always words, the colour only reinforces them. */
.sup-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px; white-space: nowrap;
    font-size: 0.85rem; font-weight: 700;
    background: rgba(0, 0, 0, 0.06); color: #3d424b;
}
.sup-status i { color: inherit; font-size: 0.8rem; }
.sup-status--open   { background: rgba(13, 110, 253, 0.10); color: #0a4fb5; }
.sup-status--waiting{ background: rgba(255, 193, 7, 0.18); color: #6b5003; }
.sup-status--done   { background: rgba(25, 135, 84, 0.12); color: #0f5132; }

/* My Requests — one row per request. */
.sup-req-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sup-req-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px;
    padding: 16px 18px; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 14px; background: #fff;
}
.sup-req-subject { font-weight: 700; font-size: 1.05rem; color: var(--font-light-color); }
.sup-req-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; font-size: 0.9rem; color: #5f6570; }
.sup-empty { text-align: center; padding: 26px 10px; }
.sup-empty-icon {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
    color: var(--accent-orange);
    background: var(--bg-light-secondary);
    background: color-mix(in srgb, var(--accent-orange) 12%, transparent);
}
.sup-empty-icon i { color: inherit; }
@media (max-width: 575.98px) {
    .sup-req-row { grid-template-columns: 1fr; }
    .sup-req-row .sup-btn { width: 100%; }
}

/* Ticket conversation. The customer's own messages sit on the right. */
.sup-thread { display: flex; flex-direction: column; gap: 18px; }
.sup-msg { max-width: 88%; }
.sup-msg--mine { align-self: flex-end; }
.sup-msg-author { font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; color: var(--font-light-color); }
.sup-msg--mine .sup-msg-author,
.sup-msg--mine .sup-msg-time { text-align: right; }
.sup-msg-bubble {
    padding: 14px 16px; border-radius: 16px; line-height: 1.55;
    background: #f3f4f6; color: #212529; border-top-left-radius: 4px;
    overflow-wrap: anywhere;
}
.sup-msg--team .sup-msg-bubble {
    background: var(--bg-light-secondary);
    background: color-mix(in srgb, var(--accent-orange) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent-orange) 22%, transparent);
}
.sup-msg--mine .sup-msg-bubble { border-top-left-radius: 16px; border-top-right-radius: 4px; }
.sup-msg-time { font-size: 0.82rem; color: #5f6570; margin-top: 6px; }
.sup-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 22px; margin: 0; }
.sup-facts dt { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: #5f6570; }
.sup-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--font-light-color); overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .sup-msg { max-width: 100%; } }

/* Illustrated how-to steps (claim downloads, no text or email). */
.sup-steps { list-style: none; margin: 0; padding: 0; counter-reset: supstep; display: flex; flex-direction: column; gap: 22px; }
.sup-step { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; counter-increment: supstep; }
.sup-step img { width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(0, 0, 0, 0.12); }
.sup-step-title { font-weight: 800; font-size: 1.1rem; margin: 0 0 6px; color: var(--font-light-color); }
.sup-step-title::before { content: counter(supstep) ". "; color: var(--accent-orange); }
@media (max-width: 767.98px) { .sup-step { grid-template-columns: 1fr; gap: 12px; } }

/* FAQ page: the search row above whichever layout the photographer picked. */
.sup-search { display: flex; gap: 10px; }
.sup-search .form-control { flex: 1 1 auto; }
@media (max-width: 575.98px) { .sup-search { flex-direction: column; } }
.sup-filter { flex: 1 1 220px; max-width: 320px; }
.sup-step--text { grid-template-columns: 1fr; }
.sup-form--wide { max-width: 640px; }

/* ===================================================================
   Submit a Request — the stepped form (support/newticket.php +
   assets/js/support-request.js). One question per screen, a progress bar,
   big answer buttons, and a review step before sending.
   =================================================================== */
.sup-flow { padding-top: 22px; }
.sup-flow-progress { margin-bottom: 6px; }
.sup-flow-bar { height: 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); overflow: hidden; }
.sup-flow-bar span {
    display: block; height: 100%; width: 0; border-radius: inherit;
    background: var(--accent-orange); transition: width 0.25s ease;
}
.sup-flow-count { font-size: 0.85rem; font-weight: 700; color: #5f6570; margin: 0 0 14px; min-height: 1.2em; }
.sup-flow-title {
    font-family: 'Poppins', sans-serif; font-weight: 800;
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); line-height: 1.3;
    color: var(--font-light-color); margin: 0 0 10px;
}
/* Focus is moved to each step's heading so screen readers announce it; the
   heading is not a control, so it draws no ring. */
.sup-flow-title:focus { outline: none; }
.sup-flow .sup-field { max-width: 640px; }

/* Topic rows: the same rows as before, wider and a touch larger. */
.sup-subject-list--wide { max-width: none; margin: 0; }
.sup-subject-list--wide .sup-subject-row { padding: 16px 20px; }
.sup-subject-list--wide .sup-subject-title { font-size: 1.08rem; }
.sup-subject-list--wide .sup-subject-help { font-size: 0.92rem; color: #5f6570; }
a.sup-subject-row { text-decoration: none; color: inherit; }

/* Quick checks: one yes/no question at a time. */
.sup-check { text-align: center; padding: 8px 0 4px; }
.sup-check p { max-width: 520px; margin: 0 auto 20px; color: #4b515c; }
.sup-check-icon {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
    color: var(--accent-orange);
    background: var(--bg-light-secondary);
    background: color-mix(in srgb, var(--accent-orange) 12%, transparent);
}
.sup-check-icon i { color: inherit; }
.sup-check-answers { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sup-check-answers .sup-btn { min-width: 170px; }
@media (max-width: 575.98px) {
    .sup-check-answers { flex-direction: column; }
    .sup-check-answers .sup-btn { width: 100%; }
    .sup-btn-row .sup-btn--lg { flex: 1 1 auto; }
}

.sup-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); gap: 0 20px; }
.sup-dash-card .form-control.sup-input-short { max-width: 200px; }
.sup-dash-card input[type="file"].form-control { min-height: 0; padding: 10px 12px; }

/* Review before sending. */
.sup-review { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.sup-review-section { border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 14px; padding: 16px 18px; }
.sup-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sup-review-title { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; color: #5f6570; margin: 0; }
.sup-review-list { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.sup-review-list dt { font-weight: 600; color: #4b515c; }
.sup-review-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--font-light-color); }
@media (max-width: 575.98px) {
    .sup-review-list { grid-template-columns: 1fr; gap: 2px; }
    .sup-review-list dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .sup-flow-bar span { transition: none; } }

/* Photographer-built intake forms (custom_newticket.php). */
.sup-fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.sup-fieldset > legend { float: none; width: auto; margin-bottom: 14px; }
.sup-fieldset + .sup-fieldset { border-top: 1px solid rgba(0, 0, 0, 0.1); padding-top: 20px; }
.sup-choice-group { border: 0; padding: 0; min-width: 0; max-width: 640px; }
.sup-choice-group > legend { float: none; width: auto; font-size: 1rem; }
.sup-choice {
    display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
    padding: 13px 16px; margin-bottom: 8px; min-height: 50px;
    border: 1px solid rgba(0, 0, 0, 0.16); border-radius: 12px; background: #fff;
    font-size: 1.02rem; color: var(--font-light-color);
}
.sup-choice input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent-orange); flex: 0 0 auto; }
.sup-choice:hover { border-color: var(--accent-orange); }
.sup-choice:has(input:checked) {
    border-color: var(--accent-orange);
    background: color-mix(in srgb, var(--accent-orange) 7%, #fff);
}
.sup-choice:has(input:focus-visible) { outline: 2px solid var(--accent-orange); outline-offset: 2px; }

/* Headings inside support cards.
   style.css sets every h1-h6 to the theme's heading colour for the current
   mode, and h1-h3 to a fixed 22-24px with !important. The support cards stay
   light in dark mode, so the dark-mode heading colour (light) came out white on
   white — the page title, every step question and the review labels vanished.
   Card headings always take the light-surface heading colour, and the card
   type scale. The !important on size is the only way past the global one; it
   is scoped to headings that carry a support class. */
.sup-dash-card :is(h1, h2, h3, h4),
.mode-light .sup-dash-card :is(h1, h2, h3, h4),
.mode-dark .sup-dash-card :is(h1, h2, h3, h4) {
    color: var(--heading-light-color, var(--font-light-color));
}
.sup-dash-card h1.sup-dash-hello { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.9rem) !important; font-weight: 800; }
.sup-dash-card h2.sup-card-title { font-size: 1.2rem !important; font-weight: 800; }
.sup-dash-card :is(h2, h3).sup-flow-title { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem) !important; font-weight: 800; }
.sup-dash-card h3.sup-step-title { font-size: 1.1rem !important; font-weight: 800; }
.sup-dash-card h3.sup-review-title { font-size: 0.8rem !important; font-weight: 800; color: #5f6570; }
.sup-fieldset > legend.sup-review-title { font-size: 0.8rem; color: #5f6570; }
.sup-choice-group > legend.form-label { color: var(--font-light-color); font-weight: 700; }
.sup-dash-card :is(h2, h3).faq-group-title,
.sup-dash-card :is(h2, h3).faq-cat-panel-title,
.sup-dash-card h2.support-articles-title { font-size: 1.15rem !important; font-weight: 800; }

/* FAQ category tiles: the icon circle took --accent-light-orange, which some
   themes define as a solid colour — the accent icon on it disappeared. Tint it
   from the accent instead, like every other support icon circle. */
.sup-dash-card .faq-cat-visual {
    background: var(--bg-light-secondary);
    background: color-mix(in srgb, var(--accent-orange) 12%, transparent);
}
