/* ── SUPPORT TICKET FORM (/support) ───────────────────────────── */
/* Builds on contact.css; only what the ticket form adds. */

.support-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.support-field-error {
    font-size: 0.8rem;
    color: #f87171;
}

.support-input-invalid {
    border-color: rgba(239, 68, 68, 0.6);
}

.contact-field[hidden] {
    display: none;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.support-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── CONFIRMATION (/support/submitted) ────────────────────────── */
.support-done {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.04) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.support-done h1 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.support-done-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-size: 1.6rem;
    line-height: 56px;
}

.support-done-ref {
    font-size: 1.15rem;
}

.support-done-ref strong {
    color: var(--accent-sky);
}

.support-done-note {
    margin: 24px 0;
    padding: 16px 20px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.08);
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: left;
}

.support-done-links {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .support-row {
        grid-template-columns: 1fr;
    }

    .support-done {
        padding: 32px 20px;
    }
}

/* Attachment picker on the public form. */
.support-file-input {
    padding: 8px 12px;
}

.support-field-help {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Files picked so far (attachments Stimulus controller). */
.ticket-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.ticket-files[hidden],
.ticket-files-notice[hidden] {
    display: none;
}

.ticket-file {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-surface);
    font-size: 0.85rem;
}

.ticket-file-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}

.ticket-file-size {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.ticket-file-too-large .ticket-file-size {
    color: #f87171;
}

.ticket-file-remove {
    border: 0;
    background: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.ticket-file-remove:hover {
    color: #f87171;
}

.ticket-files-notice {
    font-size: 0.8rem;
    color: #fbbf24;
}

/* ── LOGIN REQUIRED (/support for guests) ─────────────────────── */
.support-login-required {
    max-width: 620px;
    margin: 0 auto;
    padding: 48px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.04) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.support-login-required h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
    line-height: 1.4;
}

.support-login-required p {
    color: var(--text-muted);
}

.support-login-icon {
    margin-bottom: 16px;
    font-size: 2rem;
}

.support-login-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 640px) {
    .support-login-required {
        padding: 32px 20px;
    }
}
