:root
{
    --bg: #0f172a;
    --bg-card: #0b1120;
    --bg-card-accent: #020617;
    --border-subtle: #1f2937;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.16);
    --danger: #f97373;
    --radius-lg: 14px;
}

*,
*::before,
*::after
{
    box-sizing: border-box;
}

body
{
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    background: radial-gradient(circle at top, #1f2937 0, #020617 60%);
    color: var(--text-main);
}

.page
{
    min-height: 100vh;
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-header
{
    text-align: center;
}

.page-header h1
{
    margin: 0 0 6px;
    font-size: 2rem;
    letter-spacing: 0.03em;
}

.page-tagline
{
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.layout
{
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 900px)
{
    .layout
    {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }
}

@media (max-width: 600px)
{
    body
    {
        font-size: 17px;
    }

    .page
    {
        padding: 16px 10px;
    }

    .page-header h1
    {
        font-size: 1.7rem;
    }

    .card
    {
        padding: 14px 12px 16px;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.8);
    }

    input,
    textarea
    {
        padding: 10px 12px;
        font-size: 1rem;
    }

    .btn
    {
        padding: 9px 18px;
        font-size: 0.95rem;
    }
}

.card
{
    flex: 1;
    max-width: 520px;
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px 16px 18px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.75);
}

.card-accent
{
    background: linear-gradient(145deg, var(--bg-card-accent), #020617);
}

.card h2
{
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.hint
{
    margin-top: 0;
    margin-bottom: 14px;
    color: #cbd5e1; 
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.015em;
}

.form-grid
{
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px 14px;
}

.form-row
{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-row label
{
    color: #cbd5e1; 
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.015em;
}

input,
textarea
{
    background: #020617;
    border-radius: 8px;
    border: 1px solid #111827;
    padding: 9px 11px;
    color: var(--text-main);
    font: inherit;
    font-size: 0.98rem;
    outline: none;
}

input::placeholder,
textarea::placeholder
{
    color: #4b5563;
}

input:focus,
textarea:focus
{
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

textarea
{
    resize: vertical;
    min-height: 72px;
}

.form-actions
{
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.btn
{
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    background: #111827;
    color: var(--text-main);
    transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.btn.primary
{
    background: linear-gradient(135deg, var(--accent), #0ea5e9);
    color: #02121f;
}

.btn:hover
{
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
}

.btn:active
{
    transform: translateY(0);
    box-shadow: none;
}

.required
{
    color: var(--danger);
}

.turnstile-wrapper
{
    padding: 6px 8px;
    background: #020617;
    border-radius: 10px;
    border: 1px dashed #1f2937;
}

.status-text
{
    margin-top: 10px;
    font-size: 0.83rem;
    color: var(--text-muted);
}

.results-list
{
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.results-list > div
{
    padding: 7px 9px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid #111827;
}

.results-list strong
{
    color: var(--accent);
}

.page-footer
{
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    padding-top: 4px;
}

.status-banner
{
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.status-banner.hidden
{
    display: none;
}

.status-banner.success
{
    background: rgba(34, 197, 94, 0.12);   /* green-ish */
    border: 1px solid #22c55e;
    color: #bbf7d0;
}

.status-banner.error
{
    background: rgba(248, 113, 113, 0.12); /* red-ish */
    border: 1px solid #f97373;
    color: #fecaca;
}

.page-tagline-secondary
{
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Green box for "no matches" message on search page */
.status-text.no-results
{
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #022c22;      /* dark green */
    color: #bbf7d0;           /* light green text */
    border: 1px solid #22c55e;
}

.status-text-secondary
{
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
}

.password-overlay
{
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.password-modal
{
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
    max-width: 360px;
    width: 90%;
}

.password-modal h2
{
    margin: 0 0 8px;
    font-size: 1.25rem;
}

#pw-error
{
    margin-top: 8px;
    color: var(--danger);
}

.guidelines {
    max-width: 600px;
    margin: 0 auto 24px;
    text-align: left;
    padding-left: 0.25rem;
}

.guidelines ul {
    list-style: none;
    padding-left: 2rem;
    margin: 0 0 16px 0;
}

@media (max-width: 600px) {
    .guidelines ul {
        padding-left: 2rem;
    }
}

.guidelines li {
    position: relative;
    margin-bottom: 0.5rem;
}

.guidelines li::before {
    content: "⚜";
    position: absolute;
    left: -1.25rem;
    color: #38bdf8;   /* or white, or accent color */
    font-size: 0.9em;
}

.guidelines-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.guidelines-title.secondary {
    margin-top: 12px;
    opacity: 0.9;
}

.hotline
{
    margin-top: 28px;
    padding: 16px;
    text-align: center;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #1f2937;
}

.hotline-text
{
    margin: 0;
    font-size: 0.95rem;
    color: #e5e7eb;
}

.hotline-text.secondary
{
    margin-top: 6px;
    color: #cbd5e1;
}
