/* ── ZRXOA Member Registry — Stylesheet ─────────────────────── */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --kawi-green:     #11F322;
    --kawi-green-dim: #0cc41c;
    --kawi-dark:      #0a1a0c;
    --bg-primary:     #0d0d0d;
    --bg-card:        #1a1a1a;
    --bg-input:       #222;
    --text-primary:   #e8e8e8;
    --text-muted:     #999;
    --text-link:      #5ef06a;
    --accent-purple:  #92007B;
    --border-color:   #333;
    --error-red:      #ff4444;
    --success-green:  #4caf50;
    --radius:         6px;
    --shadow:         0 2px 12px rgba(0,0,0,.4);
}

/* ── Reset / Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
    background: linear-gradient(180deg, #111 0%, var(--bg-primary) 100%);
    border-bottom: 3px solid var(--kawi-green);
    padding: 1.5rem 0;
    text-align: center;
}

.site-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
}
.site-header h1 span {
    color: var(--kawi-green);
}
.site-header .member-count {
    font-size: 1.1rem;
    color: var(--kawi-green);
    font-weight: 600;
    margin-top: 0.25rem;
}
.site-header nav {
    margin-top: 0.75rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.site-header nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}
.site-header nav a:hover { color: var(--kawi-green); text-decoration: none; }

/* ── Flash messages ────────────────────────────────────────── */
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    font-size: 0.95rem;
}
.flash-error   { background: #2a0a0a; border: 1px solid var(--error-red); color: #ff6b6b; }
.flash-success { background: #0a2a0a; border: 1px solid var(--success-green); color: #7dde7d; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
    border-bottom: 2px solid var(--kawi-green);
    padding-bottom: 0.5rem;
}

/* ── Search form ───────────────────────────────────────────── */
.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
@media (max-width: 768px) {
    .search-grid { grid-template-columns: 1fr; }
}

.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--kawi-green);
    box-shadow: 0 0 0 2px rgba(17, 243, 34, 0.15);
}

.checkbox-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.checkbox-row input[type="checkbox"] {
    accent-color: var(--kawi-green);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}
.btn-primary {
    background: var(--kawi-green);
    color: #000;
}
.btn-primary:hover {
    background: var(--kawi-green-dim);
    text-decoration: none;
}
.btn-secondary {
    background: transparent;
    color: var(--text-link);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--kawi-green);
    text-decoration: none;
}

/* ── Country links ─────────────────────────────────────────── */
.country-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    font-size: 0.85rem;
}
.country-links a {
    color: var(--text-link);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    transition: background 0.1s;
}
.country-links a:hover {
    background: rgba(17, 243, 34, 0.1);
    text-decoration: none;
}

/* ── Results table ─────────────────────────────────────────── */
.results-summary {
    margin: 1.5rem 0 1rem;
    font-size: 1rem;
    color: var(--text-muted);
}
.results-summary strong { color: var(--kawi-green); }

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.results-table th {
    background: var(--kawi-green);
    color: #000;
    font-weight: 600;
    padding: 0.6rem 0.75rem;
    text-align: left;
    white-space: nowrap;
}
.results-table th a {
    color: #000;
    text-decoration: none;
}
.results-table th a:hover { text-decoration: underline; }

.results-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.results-table tr:hover td {
    background: rgba(17, 243, 34, 0.04);
}
.results-table .email-cell a {
    color: var(--text-link);
}

/* ── Pagination ────────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
}
.pagination a {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-link);
}
.pagination a:hover {
    border-color: var(--kawi-green);
    text-decoration: none;
}
.pagination .current {
    background: var(--kawi-green);
    color: #000;
    font-weight: 700;
}

/* ── Registration ──────────────────────────────────────────── */
.reg-choice {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}
.reg-choice a {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: border-color 0.15s;
    font-size: 1.1rem;
    font-weight: 600;
}
.reg-choice a:hover {
    border-color: var(--kawi-green);
    text-decoration: none;
}

.review-table {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}
.review-table th {
    text-align: left;
    padding: 0.5rem 1rem 0.5rem 0;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}
.review-table td {
    padding: 0.5rem 0;
    color: #fff;
    font-weight: 600;
}

.model-year-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.model-year-group label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
}
.model-year-group input[type="radio"] {
    accent-color: var(--kawi-green);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.site-footer a { color: var(--text-link); }

/* ── Error list ────────────────────────────────────────────── */
.error-list {
    list-style: none;
    margin: 1rem 0;
}
.error-list li {
    color: var(--error-red);
    padding: 0.25rem 0;
    font-size: 0.9rem;
}
.error-list li::before {
    content: "⚠ ";
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
    .results-table { font-size: 0.8rem; }
    .results-table th, .results-table td { padding: 0.4rem; }
    .reg-choice { flex-direction: column; align-items: center; }
}
