/* Matches the look of bethel-sliedrecht.nl (Lato, navy #2A314D, copper #B56A32). */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");

:root {
    --navy: #2A314D;
    --copper: #B56A32;
    --copper-dark: #94552a;
    --border: #cccccc;
    --muted: #666666;
    --error: #b3261e;
    --success-bg: #eef6ee;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: transparent;
    color: #333;
    font-family: 'Lato', "Helvetica", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.page {
    max-width: 720px;
    padding: 4px 4px 16px;
}

fieldset {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 0 0 8px;
    padding: 12px 0 0;
}

legend {
    color: var(--navy);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0 8px 0 0;
}

.field { margin-bottom: 16px; }
.field.nested { margin: 8px 0 0 26px; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row > div { flex: 1 1 140px; }

label, .label {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.req { color: var(--copper); }

.hint {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 6px;
}

input[type=text], input[type=email], input[type=tel], input[type=date], input[type=time], input:not([type]), textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font: inherit;
    background: #fff;
}

input[type=date], input[type=time] { max-width: 220px; }

input:focus, textarea:focus {
    outline: 2px solid var(--copper);
    outline-offset: 0;
    border-color: var(--copper);
}

/* Date/time rows */
.slots { display: flex; flex-direction: column; gap: 8px; }
.slot {
    display: grid;
    grid-template-columns: minmax(130px, 200px) minmax(95px, 130px) minmax(95px, 130px) 36px;
    gap: 8px;
    align-items: center;
}
.slot input[type=date], .slot input[type=time] { max-width: none; }
.slot-header span { font-size: 0.85rem; color: var(--muted); font-weight: 700; }
.slot-remove {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: #fff;
    color: var(--muted);
    font-size: 16px;
    cursor: pointer;
    display: none; /* needs JS */
}
.js .slot-remove { display: block; }
.slot-remove:hover, .slot-remove:focus { color: var(--error); border-color: var(--error); }
.slot:last-child .slot-remove { visibility: hidden; }

@media (max-width: 480px) {
    .slot { grid-template-columns: 1fr 1fr 36px; }
    .slot input[type=date] { grid-column: 1 / -1; }
    .slot-header { display: none; }
}

.choices { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.choices-stacked { flex-direction: column; }
.choices label { font-weight: 400; display: flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; }
.choices input { width: 18px; height: 18px; accent-color: var(--copper); margin: 0; }

.button {
    display: inline-block;
    background: var(--copper);
    color: #fff;
    border: 0;
    border-radius: 3px;
    padding: 10px 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.button:hover, .button:focus { background: var(--copper-dark); }

.actions { margin-top: 8px; }

.validation-message { color: var(--error); font-size: 0.9rem; margin-top: 4px; }
.invalid { border-color: var(--error) !important; }
.validation-errors { margin: 0; padding-left: 20px; }

.notice {
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.notice h2 { color: var(--navy); margin-top: 0; }
.notice-success { background: var(--success-bg); border-left: 4px solid #3d8b40; }
.notice-error { background: #fdecea; border-left: 4px solid var(--error); }
.notice-error p { margin: 0 0 4px; }

/* Honeypot */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

[hidden] { display: none !important; }
