/**
 * Support section — AOU identity
 */

.support-page {
    padding: 0 0 3.5rem;
    min-height: 60vh;
    background:
        radial-gradient(ellipse 70% 36% at 100% 0%, rgba(var(--np-hero-primary-rgb, 0, 45, 88), 0.06), transparent 55%),
        radial-gradient(ellipse 50% 28% at 0% 18%, color-mix(in oklab, var(--atelier-gold, #c5a572) 14%, transparent), transparent 50%),
        var(--atelier-mist, #f4f6fa);
}

.support-page__container {
    max-width: 1100px;
    padding-top: 0.75rem;
}

.support-page__container--narrow {
    max-width: 920px;
}

.support-subnav-wrap {
    padding: 1.15rem 1rem 0;
    margin-bottom: 0.35rem;
}

.support-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.4rem;
    background: #fff;
    border: 1px solid color-mix(in oklab, var(--primary, #002d58) 12%, #fff);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.support-subnav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: #5b6778;
    text-decoration: none;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    transition: color 0.15s, background 0.15s;
}

.support-subnav__link i {
    font-size: 0.78rem;
}

.support-subnav__link:hover {
    color: var(--primary, #002d58);
    background: color-mix(in oklab, var(--primary, #002d58) 6%, #fff);
}

.support-subnav__link.is-active {
    color: #fff;
    background: var(--primary, #002d58);
}

.support-head {
    margin: 1.5rem 0 1.35rem;
}

.support-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.5rem;
    color: var(--atelier-gold, #c5a572);
    font-size: 0.78rem;
    font-weight: 800;
}

.support-head__eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.support-page__title {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 800;
    color: var(--sa-ink, #0f172a);
}

.support-page__lead {
    max-width: 38rem;
    margin: 0.45rem 0 0;
    color: #5b6778;
    font-size: 0.96rem;
    line-height: 1.7;
}

.support-track,
.support-compose {
    display: grid;
    gap: 1.15rem;
    align-items: stretch;
}

.support-track {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.support-compose {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
    align-items: start;
}

.support-form-card {
    background: #fff;
    border: 1px solid color-mix(in oklab, var(--primary, #002d58) 12%, #fff);
    border-radius: 22px;
    padding: clamp(1.25rem, 2.4vw, 1.75rem);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
}

.support-field__error {
    display: block;
    margin-top: 0.35rem;
    color: #b42318;
    font-size: 0.8rem;
    font-weight: 700;
}

.support-page .form-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--sa-ink, #0f172a);
    margin-bottom: 0.4rem;
}

.support-page .form-control,
.support-page .form-select {
    min-height: 46px;
    border-radius: 12px;
    border-color: #e2e8f0;
    box-shadow: none;
}

.support-page textarea.form-control {
    min-height: 9rem;
}

.support-page .form-control:focus,
.support-page .form-select:focus {
    border-color: var(--primary, #002d58);
    box-shadow: 0 0 0 3px rgba(var(--np-hero-primary-rgb, 0, 45, 88), 0.12);
}

.support-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    border-radius: 999px !important;
    font-weight: 800;
    background: var(--primary, #002d58) !important;
    border-color: var(--primary, #002d58) !important;
}

.support-alert {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
    font-size: 0.86rem;
    font-weight: 700;
}

.support-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: clamp(1.35rem, 2.4vw, 1.8rem);
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 0%, color-mix(in oklab, var(--atelier-gold, #c5a572) 28%, transparent), transparent 42%),
        linear-gradient(145deg, var(--sa-green-dark, #001a33) 0%, var(--primary, #002d58) 62%, #0b1a2e 100%);
    box-shadow: 0 16px 36px rgba(var(--np-hero-overlay-rgb, 0, 26, 51), 0.22);
}

.support-panel::before {
    content: "";
    position: absolute;
    inset-inline-end: -2.5rem;
    bottom: -3rem;
    width: 8.5rem;
    height: 8.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.support-panel__icon {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: color-mix(in oklab, var(--atelier-gold, #c5a572) 22%, #fff);
    color: var(--primary, #002d58);
    font-size: 1.15rem;
}

.support-panel h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
}

.support-panel p,
.support-panel__list,
.support-panel__steps {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.88rem;
    line-height: 1.7;
}

.support-panel__list,
.support-panel__steps {
    display: grid;
    gap: 0.45rem;
    padding: 0;
    list-style: none;
}

.support-panel__list li,
.support-panel__steps li {
    padding-inline-start: 1rem;
    position: relative;
}

.support-panel__list li::before,
.support-panel__steps li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.55rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 99px;
    background: var(--atelier-gold, #c5a572);
}

.support-panel__steps {
    counter-reset: support-step;
}

.support-panel__steps li {
    padding-inline-start: 1.7rem;
    counter-increment: support-step;
}

.support-panel__steps li::before {
    content: counter(support-step);
    inset-inline-start: 0;
    top: 0.1rem;
    width: 1.2rem;
    height: 1.2rem;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: var(--atelier-gold, #c5a572);
    font-size: 0.68rem;
    font-weight: 800;
}

.support-panel a,
.support-panel__link {
    color: var(--atelier-gold, #c5a572);
    font-weight: 800;
    text-decoration: none;
}

.support-panel a:hover,
.support-panel__link:hover {
    color: #fff;
}

.support-panel__link {
    position: relative;
    z-index: 1;
    font-size: 0.84rem;
}

.support-success {
    text-align: center;
    background: #fff;
    border: 1px solid color-mix(in oklab, var(--primary, #002d58) 12%, #fff);
    border-radius: 22px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    max-width: 520px;
    margin: 2rem auto 0;
}

.support-success__icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 16px;
    background: color-mix(in oklab, var(--atelier-gold, #c5a572) 22%, #fff);
    color: var(--primary, #002d58);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin: 0 auto 1rem;
}

.support-success h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sa-ink, #0f172a);
}

.support-success__ref {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary, #002d58);
    margin: 0.5rem 0;
    padding: 0.55rem 1rem;
    background: var(--atelier-mist, #f4f6fa);
    border-radius: 12px;
}

.support-success__hint {
    font-size: 0.86rem;
    color: #5b6778;
}

.support-success__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.support-ticket-view {
    background: #fff;
    border-radius: 22px;
    border: 1px solid color-mix(in oklab, var(--primary, #002d58) 12%, #fff);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    margin-top: 1.5rem;
}

.support-ticket-view__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f6;
    margin-bottom: 1rem;
}

.support-back {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary, #002d58);
    text-decoration: none;
    margin-bottom: 0.35rem;
}

.support-back:hover {
    text-decoration: underline;
}

.support-thread {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.support-msg {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: var(--atelier-mist, #f4f6fa);
    border: 1px solid #eef2f6;
}

.support-msg--staff {
    background: color-mix(in oklab, var(--primary, #002d58) 6%, #fff);
    border-color: color-mix(in oklab, var(--primary, #002d58) 14%, #fff);
}

.support-msg__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
}

.support-msg__head strong {
    color: var(--primary, #002d58);
}

.support-msg__head time {
    color: #5b6778;
}

.support-msg__body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #1a1a1a;
}

.support-reply-form {
    padding-top: 1rem;
    border-top: 1px solid #eef2f6;
}

.support-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.support-faq-item {
    background: #fff;
    border: 1px solid color-mix(in oklab, var(--primary, #002d58) 12%, #fff);
    border-radius: 14px;
    overflow: hidden;
}

.support-faq-item summary {
    padding: 0.85rem 1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.support-faq-item summary::-webkit-details-marker {
    display: none;
}

.support-faq-num {
    color: var(--primary, #002d58);
    font-weight: 800;
    flex-shrink: 0;
}

.support-faq-body {
    padding: 0 1rem 1rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #5b6778;
}

.support-faq-body a {
    color: var(--primary, #002d58);
    font-weight: 700;
}

.support-channels-hero {
    background:
        radial-gradient(circle at 88% 0%, color-mix(in oklab, var(--atelier-gold, #c5a572) 22%, transparent), transparent 42%),
        linear-gradient(135deg, var(--sa-green-dark, #001a33), var(--primary, #002d58));
    color: #fff;
    padding: 2rem 0;
    margin: 1.25rem 0 1.5rem;
}

.support-channels-hero .support-page__title,
.support-channels-hero .support-page__lead {
    color: #fff;
}

.support-channels-hero .support-page__lead {
    opacity: 0.88;
    max-width: 36rem;
}

.support-channel-card {
    background: #fff;
    border: 1px solid color-mix(in oklab, var(--primary, #002d58) 12%, #fff);
    border-radius: 16px;
    padding: 1.35rem;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.support-channel-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: color-mix(in oklab, var(--primary, #002d58) 8%, #fff);
    color: var(--primary, #002d58);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.support-channel-card h2 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.support-channel-card p {
    font-size: 0.82rem;
    color: #5b6778;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.support-channel-card a:not(.btn) {
    color: var(--primary, #002d58);
    font-weight: 700;
    text-decoration: none;
}

.support-channel-card a:not(.btn):hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .support-compose,
    .support-track {
        grid-template-columns: 1fr;
    }

    .support-track .support-panel {
        order: -1;
    }
}

@media (max-width: 768px) {
    .support-subnav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        border-radius: 18px;
    }

    .support-subnav__link {
        white-space: nowrap;
    }
}
