/* css/pages/help.css */
.help-page {
    --help-accent: #12b8c8;
    --help-accent-strong: #0891b2;
    --help-green: #10b981;
    --help-warning: #f59e0b;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 36px;
}

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

.help-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 22px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid color-mix(in srgb, var(--help-accent) 24%, var(--border));
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 16%, rgba(18, 184, 200, 0.22), transparent 28%),
        linear-gradient(135deg, color-mix(in srgb, var(--card-bg) 92%, #0f172a) 0%, color-mix(in srgb, var(--card-bg) 82%, #082f49) 100%);
    box-shadow: var(--shadow-sm);
}

.help-hero-content {
    max-width: 760px;
}

.help-eyebrow,
.help-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--help-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.help-hero h1,
.help-search-panel h2,
.faq-section-title h2,
.support-panel h2,
.support-form h3 {
    margin: 0;
    color: var(--text);
    letter-spacing: -0.03em;
}

.help-hero h1 {
    font-size: clamp(2rem, 6vw, 4.2rem);
    line-height: 0.96;
    max-width: 680px;
}

.help-hero p {
    max-width: 660px;
    margin: 18px 0 0;
    color: var(--text-secondary, var(--text-muted));
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.65;
}

.help-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.help-primary-action,
.help-secondary-action,
.faq-empty-state a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.help-primary-action {
    background: linear-gradient(135deg, var(--help-accent), #22c55e);
    color: #04111d;
}

.help-secondary-action,
.faq-empty-state a {
    border: 1px solid var(--border);
    color: var(--text);
    background: color-mix(in srgb, var(--card-bg) 70%, transparent);
}

.help-primary-action:hover,
.help-secondary-action:hover,
.faq-empty-state a:hover,
.support-submit:hover,
.support-card:hover {
    transform: translateY(-2px);
}

.help-hero-card {
    display: grid;
    gap: 8px;
    align-self: end;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    backdrop-filter: blur(14px);
}

.help-hero-card strong {
    font-size: 1rem;
}

.help-hero-card span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.help-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
}

.help-search-panel h2 {
    font-size: 1.05rem;
}

.help-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    color: var(--text-muted);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.help-search-input-wrap:focus-within {
    border-color: var(--help-accent);
    box-shadow: 0 0 0 4px rgba(18, 184, 200, 0.14);
}

.help-search-input-wrap input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.help-result-count {
    min-height: 20px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.help-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.faq-section,
.support-panel {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-section-title,
.support-panel-header {
    padding: 22px;
    border-bottom: 1px solid var(--border);
}

.faq-section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.faq-section-title h2,
.support-panel h2 {
    font-size: 1.1rem;
}

.faq-source-badge {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--help-accent) 14%, transparent);
    color: var(--help-accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.faq-list {
    min-height: 220px;
}

.faq-item {
    border-bottom: 1px solid var(--border-light, var(--border));
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 19px 22px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background var(--transition);
}

.faq-question:hover {
    background: rgba(18, 184, 200, 0.06);
}

.faq-question-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
}

.faq-question-meta {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-icon {
    flex: 0 0 auto;
    color: var(--help-accent);
    transition: transform 180ms ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 22px 20px;
    color: var(--text-secondary, var(--text-muted));
    font-size: 0.9rem;
    line-height: 1.7;
}

.faq-answer[hidden] {
    display: none;
}

.faq-empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 38px 22px;
    color: var(--text-muted);
    text-align: center;
}

.faq-empty-state[hidden] {
    display: none;
}

.faq-empty-state strong {
    color: var(--text);
}

.faq-skeleton {
    height: 74px;
    margin: 14px 18px;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.24), rgba(148, 163, 184, 0.12));
    background-size: 180% 100%;
    animation: helpSkeleton 1.4s ease-in-out infinite;
}

.support-panel {
    display: grid;
    gap: 0;
}

.support-panel-header p {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.support-cards {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.support-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.support-card:hover {
    border-color: var(--help-accent);
    background: rgba(18, 184, 200, 0.06);
}

.support-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex: 0 0 auto;
}

.support-icon.email {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.support-icon.linkedin {
    background: rgba(10, 102, 194, 0.14);
    color: #0a66c2;
}

.support-info {
    display: grid;
    gap: 4px;
}

.support-title {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
}

.support-desc {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.support-form {
    display: grid;
    gap: 10px;
    padding: 0 18px 20px;
}

.support-form-heading {
    display: grid;
    gap: 4px;
    margin-top: 4px;
}

.support-form-heading h3 {
    font-size: 1rem;
}

.support-form-heading span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.support-form label {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.support-form input,
.support-form select,
.support-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    outline: 0;
    padding: 12px 13px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.support-form textarea {
    resize: vertical;
    min-height: 124px;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    border-color: var(--help-accent);
    box-shadow: 0 0 0 4px rgba(18, 184, 200, 0.14);
}

.support-submit {
    min-height: 46px;
    margin-top: 4px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--help-accent), var(--help-green));
    color: #04111d;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    transition: transform 160ms ease, opacity 160ms ease;
}

.support-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.support-feedback {
    min-height: 20px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.support-feedback.success {
    color: var(--help-green);
}

.support-feedback.error {
    color: #ef4444;
}

.faq-question:focus-visible,
.help-primary-action:focus-visible,
.help-secondary-action:focus-visible,
.faq-empty-state a:focus-visible,
.support-card:focus-visible,
.support-submit:focus-visible {
    outline: 3px solid var(--help-accent);
    outline-offset: 3px;
}

@keyframes helpSkeleton {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

@media (min-width: 860px) {
    .help-search-panel {
        grid-template-columns: minmax(180px, 0.42fr) minmax(280px, 1fr) auto;
        align-items: center;
    }

    .help-result-count {
        min-width: 140px;
        text-align: right;
    }
}

@media (min-width: 1120px) {
    .help-hero {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .help-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
}

@media (max-width: 640px) {
    .help-page {
        padding-inline: 14px;
    }

    .help-hero,
    .help-search-panel,
    .faq-section,
    .support-panel {
        border-radius: 20px;
    }

    .help-hero-actions {
        flex-direction: column;
    }

    .help-primary-action,
    .help-secondary-action {
        width: 100%;
    }

    .faq-section-title {
        flex-direction: column;
    }
}