/* ── Page ── */
.sp-page {
    padding: 120px 0 80px;
    background: var(--bg-primary);
    min-height: 100vh;
}

.sp-container {
    max-width: 860px;
}

/* ── Header ── */
.sp-header {
    margin-bottom: 40px;
}

.sp-title {
    font-size: clamp(28px, 4vw, 40px);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.sp-title-accent {
    color: var(--accent);
}

.sp-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
}

/* ── Flash alerts ── */
.sp-alert {
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.sp-alert-icon {
    font-size: 20px;
}

/* ── Layout ── */
.sp-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .sp-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Card header inner ── */
.sp-card-header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Required star ── */
.sp-required {
    color: var(--accent);
}

/* ── Label hint ── */
.sp-label-hint {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
    margin-left: 4px;
}

/* ── Topic grid ── */
.sp-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.sp-topic-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    user-select: none;
}

.sp-topic-option:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.sp-topic-option input[type="radio"] {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.sp-topic-option.is-checked {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* ── Field error ── */
.sp-field-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Input error state ── */
.setting-input.is-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(227, 57, 44, 0.1);
}

/* ── VIN input ── */
.sp-input-vin {
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
}

/* ── Textarea ── */
.sp-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ── Char counter ── */
.sp-char-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    text-align: right;
}

/* ── File upload ── */
.sp-file-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.sp-file-label:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.sp-file-icon {
    font-size: 20px;
    color: var(--accent);
}

.sp-file-label.is-dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.sp-file-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.sp-file-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Form footer ── */
.sp-form-footer {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.sp-secure-note {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.sp-secure-note i {
    color: var(--success);
    font-size: 14px;
}

/* ── Sidebar ── */
.sp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Channel item (reuses report-item sizing) ── */
.sp-channel-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
}

.sp-channel-label {
    font-size: 13px;
}

/* ── FAQ list inside section-card ── */
.sp-faq-item {
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 20px;
}

.sp-faq-item i:first-child {
    font-size: 18px;
}

.sp-faq-item-text {
    font-size: 13px;
}

.sp-faq-item-arrow {
    margin-left: auto;
    font-size: 16px;
    color: var(--text-muted);
}

.sp-faq-spacer {
    padding: 4px;
}

/* ── Contact card ── */
.sp-contact-card {
    background: var(--accent-soft);
    border-color: var(--border-accent);
}

.sp-contact-body {
    padding: 20px;
}

.sp-contact-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sp-contact-title {
    font-size: 14px;
}

.sp-contact-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.sp-contact-link {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Back link ── */
.sp-back-row {
    margin-top: 28px;
}

.sp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.sp-back-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ── Dark mode ── */
[data-theme="dark"] .sp-topic-option {
    background: var(--bg-secondary);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .sp-topic-option:hover,
[data-theme="dark"] .sp-topic-option.is-checked {
    background: var(--accent-soft);
    border-color: var(--accent);
}

[data-theme="dark"] .sp-file-label {
    background: var(--bg-secondary);
}

[data-theme="dark"] .sp-file-label:hover,
[data-theme="dark"] .sp-file-label.is-dragover {
    background: var(--accent-soft);
}

[data-theme="dark"] .sp-contact-card {
    background: var(--accent-soft);
}
