@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Manrope:wght@400;500;600&display=swap');

/* ═══════════════════════════════════════════════
   TRUCKSTAR 2026 – Design tokens
   Paletten: donker staal + fel oranje
═══════════════════════════════════════════════ */
:root {
    --orange:      #f97316;
    --orange-lt:   #fb923c;
    --orange-dk:   #ea580c;
    --orange-glow: rgba(249,115,22,0.18);

    --bg:          #0c0e13;
    --bg-card:     #13171f;
    --bg-card2:    #1a1f2b;
    --border:      rgba(255,255,255,0.08);
    --border-focus:#f97316;

    --text:        #f1f5f9;
    --text-muted:  #94a3b8;
    --text-dim:    #64748b;

    --green:       #22c55e;
    --red:         #ef4444;
    --red-bg:      rgba(239,68,68,0.1);

    --font-head:   'Bricolage Grotesque', system-ui, sans-serif;
    --font-body:   'Manrope', system-ui, sans-serif;

    --radius-sm:   8px;
    --radius:      14px;
    --radius-lg:   20px;
    --shadow:      0 8px 32px rgba(0,0,0,0.5);
}

/* ── Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 10% 0%,  rgba(249,115,22,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(249,115,22,0.04) 0%, transparent 50%);
    color: var(--text);
    min-height: 100vh;
}

/* ── Container ────────────────────────────────── */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* ── Hero ─────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 3rem 0 2.5rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(249,115,22,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(249,115,22,0.12);
    border: 1px solid rgba(249,115,22,0.3);
    color: var(--orange-lt);
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 1rem;
}
.hero-title span {
    color: var(--orange);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 40px rgba(249,115,22,0.4);
}

.hero-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 440px;
    margin: 0 auto;
}

/* ── Status bar ───────────────────────────────── */
.system-status {
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ── Form card ────────────────────────────────── */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ── Sections ─────────────────────────────────── */
.form-section {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: none; }
.form-section-title {
    font-family: var(--font-head);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-bottom: 1.25rem;
}

/* ── Form rows & groups ───────────────────────── */
.form-row { margin-bottom: 1.25rem; }
.form-row:last-child { margin-bottom: 0; }
.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}
.required { color: var(--orange); }
.optional { color: var(--text-dim); font-weight: 400; }

/* ── Inputs ───────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
input.field-invalid, textarea.field-invalid {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}
textarea { resize: vertical; min-height: 80px; }

.field-error {
    font-size: 0.8rem;
    color: var(--red);
    margin-top: 0.35rem;
    min-height: 1.1em;
}

.char-counter {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: right;
    margin-top: 0.25rem;
}

/* ── Radio group (leeftijd) ───────────────────── */
.radio-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.radio-card { cursor: pointer; flex: 1; min-width: 120px; }
.radio-card input { display: none; }

.radio-card-inner {
    display: block;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card2);
    text-align: center;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.radio-card:hover .radio-card-inner {
    border-color: rgba(249,115,22,0.4);
    background: rgba(249,115,22,0.05);
}
.radio-card.selected .radio-card-inner {
    border-color: var(--orange);
    background: rgba(249,115,22,0.1);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

.radio-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}
.radio-card.selected .radio-card-title { color: var(--orange-lt); }

/* ── Dag cards (pricing grid) ─────────────────── */
.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

.day-card { cursor: pointer; }
.day-card input { display: none; }

.day-card-inner {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card2);
    padding: 0.9rem 1rem;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    height: 100%;
}
.day-card:hover .day-card-inner {
    border-color: rgba(249,115,22,0.4);
    background: rgba(249,115,22,0.05);
}
.day-card.selected .day-card-inner {
    border-color: var(--orange);
    background: rgba(249,115,22,0.1);
    box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}
.day-card-featured .day-card-inner {
    border-color: rgba(249,115,22,0.25);
}

.day-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-family: var(--font-head);
}
.day-card.selected .day-name { color: var(--orange-lt); }

.day-prices {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.dp {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.15s, font-weight 0.15s;
}
.dp::before {
    content: attr(data-groep) ': ';
    font-size: 0.7rem;
    color: var(--text-dim);
}
.dp.dp-active {
    color: var(--orange-lt);
    font-weight: 700;
}
.dp.dp-active::before { color: var(--text-muted); }

/* Baankaart special */
.day-card-baankaart .day-card-inner {
    border-style: dashed;
}

/* ── Prijs box ────────────────────────────────── */
.prijs-box {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(249,115,22,0.08);
    border: 2px solid rgba(249,115,22,0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.prijs-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.prijs-bedrag {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(249,115,22,0.3);
}
.prijs-omschrijving {
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ── Deelnemers (meerdere personen aanmelden) ─── */
.section-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
}
.deelnemer-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.deelnemer-card-header .deelnemer-titel { margin-bottom: 0; }
.btn-remove-deelnemer {
    background: none;
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.btn-remove-deelnemer:hover {
    background: var(--red-bg);
    border-color: rgba(239,68,68,0.5);
}
.deelnemer-prijs {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--orange-lt);
}
.form-section-add { padding-top: 0; padding-bottom: 0; }
.btn-add-deelnemer {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-card2);
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-add-deelnemer:hover {
    border-color: rgba(249,115,22,0.5);
    color: var(--orange-lt);
    background: rgba(249,115,22,0.05);
}
.prijs-overzicht-lijst {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}
.prijs-overzicht-lijst span.li-naam { color: var(--text-muted); }

/* ── Privacy ──────────────────────────────────── */
.form-section-privacy {
    padding: 1.5rem 2rem;
}
.checkbox-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--bg-card2);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--orange);
}

/* ── Alerts ───────────────────────────────────── */
.alert {
    margin: 1rem 2rem 0;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
}
.alert-error {
    background: var(--red-bg);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}
.alert-success {
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.25);
    color: #86efac;
}

/* ── Submit button ────────────────────────────── */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: calc(100% - 4rem);
    margin: 1.5rem 2rem 2rem;
    padding: 1rem 2rem;
    background: var(--orange);
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 24px rgba(249,115,22,0.35);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.btn-submit:hover:not(:disabled) {
    background: var(--orange-lt);
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(249,115,22,0.45);
}
.btn-submit:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.submit-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin: 0 2rem 1.5rem;
    padding-bottom: 0.5rem;
}

/* ── Spinner ──────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Loading overlay ──────────────────────────── */
.loading-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    flex-direction: column;
    gap: 1rem;
}
.loading-overlay-inner { text-align: center; }
.loading-overlay-inner p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.75rem;
}
.loading-spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(249,115,22,0.2);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
    text-align: center;
    padding: 2rem 0 1rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}
.site-footer a { color: var(--orange); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 600px) {
    .container { padding: 1rem 0.75rem 3rem; }
    .form-section { padding: 1.5rem 1.25rem; }
    .form-row.two-col { grid-template-columns: 1fr; }
    .days-grid { grid-template-columns: 1fr 1fr; }
    .btn-submit, .submit-note { margin-left: 1.25rem; margin-right: 1.25rem; width: calc(100% - 2.5rem); }
    .alert { margin-left: 1.25rem; margin-right: 1.25rem; }
    .prijs-bedrag { font-size: 1.6rem; }
}
