/* Citizen Portal — public-facing styles. Self-contained (no Tailwind / KTUI dependency). */

:root {
    --c-bg: #ffffff;
    --c-bg-soft: #f8fafc;
    --c-fg: #0f172a;
    --c-fg-soft: #64748b;
    --c-border: #e2e8f0;
    --c-primary: #1e40af;
    --c-primary-soft: #dbeafe;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--c-fg);
    background: var(--c-bg-soft);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.cz-nav {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid var(--c-border);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.cz-nav-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1.5rem; gap: 1rem; }
.cz-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; }
.cz-brand img { width: 42px; height: 42px; }
.cz-brand .title { font-size: 0.9375rem; font-weight: 700; line-height: 1.15; }
.cz-brand .sub { font-size: 0.75rem; color: var(--c-fg-soft); }
.cz-nav-links { display: flex; gap: 1.5rem; align-items: center; }
.cz-nav-links a { color: var(--c-fg-soft); font-weight: 500; font-size: 0.875rem; }
.cz-nav-links a:hover { color: var(--c-fg); text-decoration: none; }
.cz-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--c-primary);
    color: #fff !important;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: transform .15s, box-shadow .15s;
}
.cz-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgb(30 64 175 / 0.4); text-decoration: none !important; }

.cz-wrap { max-width: 1180px; margin: 0 auto; padding: 2rem 1.5rem; }
.cz-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 1rem;
    padding: 1.75rem;
}

.cz-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: 4rem;
}
.cz-footer-inner { max-width: 1180px; margin: 0 auto; }
.cz-footer-top { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 768px) { .cz-footer-top { grid-template-columns: 1fr; } }
.cz-footer h4 { font-size: 0.875rem; font-weight: 700; color: #f1f5f9; margin: 0 0 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cz-footer ul { list-style: none; padding: 0; margin: 0; }
.cz-footer li { margin-bottom: 0.5rem; }
.cz-footer a { color: #cbd5e1; font-size: 0.875rem; }
.cz-footer a:hover { color: #fff; }
.cz-footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.75rem; color: #64748b; }

.cz-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .15s;
    text-decoration: none;
}
.cz-btn-primary { background: var(--c-primary); color: #fff; }
.cz-btn-primary:hover { background: #1e3a8a; text-decoration: none; }
.cz-btn-outline { background: transparent; border-color: var(--c-border); color: var(--c-fg); }
.cz-btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }

.cz-input, .cz-select, .cz-textarea {
    width: 100%; padding: 0.625rem 0.875rem;
    border: 1px solid var(--c-border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: #fff;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.cz-input:focus, .cz-select:focus, .cz-textarea:focus {
    outline: none; border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgb(30 64 175 / 0.12);
}
.cz-label { display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.375rem; color: var(--c-fg); }
.cz-hint { font-size: 0.75rem; color: var(--c-fg-soft); margin-top: 0.25rem; }
