/* Tips & klagomål — public form styling. Mobile-first (375px) per FR-010. */

.tips-klagomal-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem;
    font-family: inherit;
}

.tips-emergency-banner {
    background-color: #b71c1c;
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.4;
    border-left: 6px solid #7f0000;
}

.tips-emergency-banner strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.tips-heading {
    font-size: 2rem;
    margin: 0 0 1rem;
    color: #1a1a1a;
}

.tips-ingress {
    color: #444;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.tips-form-wrapper {
    background-color: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Mer luft mellan e-post-hjälptexten och Skicka-knappen */
.tips-form-wrapper .k-form .k-form-buttons {
    margin-top: 2rem;
}

.tips-form-wrapper .k-form-field + .k-form-buttons {
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* FR-015: honeypot field is invisible but reachable to dumb bots that auto-fill any input. */
.tips-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tips-error {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background-color: #fff3cd;
    border-left: 4px solid #ff9800;
    color: #663c00;
    border-radius: 4px;
}

.tips-confirmation {
    background-color: #e8f5e9;
    padding: 2rem;
    border-radius: 8px;
    border-left: 6px solid #2e7d32;
    text-align: center;
}

.tips-confirmation h2 {
    color: #2e7d32;
    margin-top: 0;
}

.tips-privacy-notice {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.875rem;
    line-height: 1.45;
}

.tips-privacy-notice a {
    color: #1565c0;
}

@media (min-width: 768px) {
    .tips-klagomal-container {
        padding: 2rem;
    }

    .tips-heading {
        font-size: 2.5rem;
    }
}

/* Admin styles ---------------------------------------------------------- */

.tips-admin-container {
    padding: 1rem;
}

.tips-admin-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    background-color: #f5f5f5;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.tips-admin-stat {
    color: #555;
}

.tips-admin-stat-warning {
    color: #b71c1c;
}

.tips-admin-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

.tips-admin-filters label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.tips-admin-empty {
    padding: 2rem;
    text-align: center;
    color: #888;
}

.tips-stale-marker {
    color: #b71c1c;
    font-weight: bold;
    margin-right: 0.25rem;
}

.tips-admin-detail {
    padding: 1rem;
}

.tips-admin-message {
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    padding: 0.75rem;
    border-radius: 4px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 200px;
    overflow: auto;
    font-family: inherit;
    font-size: 0.95rem;
}

.tips-admin-detail-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.tips-admin-error {
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: #fff3cd;
    border-left: 3px solid #ff9800;
    color: #663c00;
    border-radius: 4px;
    font-size: 0.9rem;
}
