/* Network support page. Uses the landing page colour system, Poppins, and header. */

.net-page {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* This header has two extra links, so keep a little room for Pay online.
   These rules apply only while the links are in the bar, not in the mobile menu. */
@media (min-width: 993px) {
    .net-page .nav-menu {
        gap: 14px;
    }
}

@media (max-width: 1320px) and (min-width: 993px) {
    .net-page .nav-menu {
        gap: 10px;
    }

    .net-page .nav-link {
        font-size: 12px;
        letter-spacing: 0.2px;
    }
}

@media (max-width: 1100px) and (min-width: 993px) {
    .net-page .nav-menu {
        gap: 8px;
    }

    .net-page .nav-link {
        font-size: 11px;
        letter-spacing: 0.15px;
    }
}

@media (max-width: 1040px) and (min-width: 993px) {
    .net-page .nav-logo .logo-img {
        height: 40px;
    }

    .net-page .nav-menu {
        gap: 6px;
    }

    .net-page .nav-actions .btn-primary {
        padding: 8px 10px;
        font-size: 11px;
    }
}

.net-page main {
    padding-bottom: 96px;
}

.net-page button,
.net-page input,
.net-page textarea {
    font-family: inherit;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.net-hero {
    padding: 130px 0 24px;
}

.net-hero h1 {
    font-size: 34px;
    line-height: 1.15;
    font-weight: 700;
    max-width: 16ch;
    margin: 8px 0 16px;
}

.net-hero .gradient-text {
    display: inline;
}

.net-lead-wide {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 68ch;
    margin-bottom: 16px;
}

.net-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.net-section {
    padding: 28px 0 12px;
}

.net-section .section-header {
    margin-bottom: 22px;
}

.net-section .section-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.net-section .section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 16px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--bright-red), var(--deep-red));
}

.net-checklist,
.net-faq-list {
    display: grid;
    gap: 12px;
    max-width: 860px;
}

.net-checklist {
    list-style: none;
    counter-reset: check;
    padding: 0;
    margin: 0;
}

.net-checklist li {
    counter-increment: check;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 16px 16px 64px;
    position: relative;
    font-size: 16px;
    line-height: 1.5;
}

.net-checklist li::before {
    content: counter(check);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(120, 15, 22, 0.1);
    color: var(--bright-red);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.net-checklist a {
    color: var(--ruby-red);
}

.wizard {
    max-width: 760px;
}

.net-panel-title {
    font-size: 26px;
    line-height: 1.25;
    margin: 8px 0 10px;
}

.net-lead,
.net-step-body p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 12px;
}

.net-kicker {
    color: var(--bright-red);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.net-problem-grid,
.net-actions {
    display: grid;
    gap: 12px;
}

.net-problem,
.net-choice,
.net-quick,
.net-contact-link,
.net-text-button,
.btn-primary,
.btn-secondary {
    min-height: 52px;
}

.net-problem {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    width: 100%;
    text-align: left;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
}

.net-problem-index {
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(120, 15, 22, 0.1);
    color: var(--bright-red);
    font-weight: 700;
    align-self: center;
}

.net-problem-title {
    font-weight: 600;
    font-size: 16px;
}

.net-problem-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.net-problem:hover,
.net-choice:hover,
.net-quick:hover,
.net-contact-link:hover {
    border-color: var(--bright-red);
    background: var(--card-hover-bg);
}

.net-choice,
.net-quick {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    border-radius: 14px;
    border: 2px solid var(--ruby-red);
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.35;
}

.net-back {
    margin-bottom: 8px;
    width: auto;
    align-self: flex-start;
}

.net-text-button {
    background: none;
    border: none;
    color: var(--ruby-red);
    font-weight: 600;
    text-align: left;
    padding: 8px 0;
    cursor: pointer;
    text-decoration: underline;
}

.net-fields,
#net-chat-extra {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.net-fields label,
#net-chat-extra label {
    font-weight: 600;
    font-size: 14px;
}

.net-fields input,
.net-fields textarea,
#net-chat-extra input,
#net-chat-extra textarea,
#wizard-panel > textarea,
#net-chat-input {
    width: 100%;
    display: block;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    padding: 12px 14px;
}

#wizard-panel > label,
#net-chat-extra label {
    display: block;
    margin-top: 14px;
}

#wizard-panel > .btn-primary,
#wizard-panel > .btn-secondary {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    margin-top: 12px;
}

.net-fields textarea,
#net-chat-extra textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.45;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.net-contact-links {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.net-contact-link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    background: var(--card-bg);
}

.net-faq {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4px 16px;
}

.net-faq summary {
    cursor: pointer;
    font-weight: 600;
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.net-faq p {
    color: var(--text-secondary);
    padding-bottom: 14px;
}

.net-static-contact {
    display: grid;
    gap: 10px;
    max-width: 760px;
}

.net-page .scroll-to-top {
    bottom: 96px;
}

/* Help chat */
.net-chat-launcher {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: var(--ruby-red);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(120, 15, 22, 0.35);
}

.net-chat-launcher svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.net-chat-panel {
    position: fixed;
    z-index: 1200;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.net-chat-panel[hidden] {
    display: none !important;
}

#net-chat-extra[hidden] {
    display: none !important;
}

.net-chat-head,
.net-chat-form,
.net-chat-note {
    flex-shrink: 0;
}

.net-chat-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.net-chat-head h2 {
    font-size: 18px;
    margin: 0;
    flex: 1;
}

.net-lang {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    overflow: hidden;
}

.net-lang button {
    min-height: 44px;
    min-width: 64px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
}

.net-lang button[aria-pressed="true"] {
    background: var(--ruby-red);
    color: #fff;
}

.net-chat-close {
    min-width: 48px;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.net-chat-log {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.net-msg {
    max-width: 92%;
    border-radius: 16px;
    padding: 10px 12px;
}

.net-msg p {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.45;
    font-size: 16px;
}

.net-msg-bot {
    align-self: flex-start;
    background: var(--bg-tertiary);
}

.net-msg-user {
    align-self: flex-end;
    background: var(--ruby-red);
    color: #fff;
}

.net-chat-replies {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
    padding: 2px 0 8px;
    margin: 0;
}

.net-chat-replies:empty {
    display: none;
    padding: 0;
    margin: 0;
}

.net-quick,
.net-choice {
    height: auto;
    min-height: 48px;
    flex: 0 0 auto;
    white-space: normal;
    overflow: visible;
    line-height: 1.4;
    box-sizing: border-box;
}

.net-quick {
    display: block;
    width: 100%;
}

#net-chat-extra:not([hidden]) {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}

.net-actions .btn-primary,
.net-actions .btn-secondary,
#wizard-panel > .btn-primary,
#wizard-panel > .btn-secondary {
    height: auto;
    min-height: 48px;
    white-space: normal;
    overflow: visible;
    line-height: 1.35;
}

.net-field-error {
    color: var(--bright-red);
    font-size: 14px;
    margin: 0;
}

.net-ticket-form {
    display: grid;
    gap: 8px;
    margin: 8px 0 16px;
}

.net-ticket-form label {
    display: block;
    font-weight: 600;
    margin-top: 6px;
}

.net-ticket-form input,
.net-ticket-form textarea,
.net-ticket-form .btn-primary,
.net-ticket-form .btn-secondary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.net-ticket-ok {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
}

.net-ticket-status {
    margin: 12px 0 0;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg-tertiary);
    font-weight: 600;
}

.net-ticket-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 18px;
    font-weight: 700;
    margin: 8px 0;
    word-break: break-all;
}

.net-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.net-chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--border-color);
}

#net-chat-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.net-chat-form button {
    flex: 0 0 auto;
    min-width: 72px;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--ruby-red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.net-chat-note {
    margin: 0;
    padding: 0 12px 12px;
    color: var(--text-tertiary);
    font-size: 13px;
}

body.net-chat-open .net-chat-launcher,
body.net-chat-open .scroll-to-top {
    visibility: hidden;
}

@media (min-width: 720px) {
    .net-hero h1 {
        font-size: 52px;
    }

    .net-section .section-title {
        font-size: 42px;
    }

    .net-problem-grid {
        grid-template-columns: 1fr 1fr;
    }

    .net-chat-panel {
        right: 20px;
        bottom: 88px;
        width: 400px;
        height: min(680px, calc(100vh - 120px));
        border-radius: 20px;
        box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }
}

@media (max-width: 719px) {
    .net-hero {
        padding-top: 108px;
    }

    .net-actions-row .btn-primary,
    .net-actions-row .btn-secondary {
        width: 100%;
    }

    .net-chat-launcher {
        width: 56px;
        height: 56px;
        min-height: 56px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .net-chat-launcher span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .net-page *,
    .net-chat-panel * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
