/* ────────────────────────────────────────────────────────────────────────────
   Gemeindebus Buchung — Buchungsformular CSS
   ──────────────────────────────────────────────────────────────────────────── */

.gb-booking-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    font-family: inherit;
}

/* ── Fieldsets ── */
.gb-fieldset {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.gb-fieldset legend {
    font-weight: 600;
    font-size: .92em;
    padding: 0 5px;
}

/* ── Felder ── */
.gb-field {
    margin-bottom: 7px;
}
.gb-field:last-child { margin-bottom: 0; }

.gb-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
    font-size: .86em;
}

.gb-field input[type="text"],
.gb-field input[type="email"],
.gb-field input[type="tel"],
.gb-field input[type="date"],
.gb-field input[type="time"] {
    width: 100%;
    box-sizing: border-box;
    padding: 4px 7px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: .88em;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s;
}
.gb-field input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34,113,177,.2);
}

.gb-field-hint {
    font-size: .8em;
    color: #666;
    margin: 0 0 7px;
}

/* ── Slot-Zeilen ── */
.gb-slot-row {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 6px 32px 6px 10px;
    margin-bottom: 5px;
    position: relative;
}

.gb-slot-fields {
    display: grid;
    grid-template-columns: 2.4em 1fr 7.5em;
    gap: 3px 5px;
    align-items: center;
}
@media (max-width: 380px) {
    .gb-slot-fields {
        grid-template-columns: 2.2em 1fr 6em;
        gap: 3px 3px;
    }
}

.gb-slot-lbl {
    font-size: .8em;
    font-weight: 600;
    color: #555;
    text-align: right;
    padding-right: 2px;
    line-height: 1;
}

.gb-slot-fields input[type="date"],
.gb-slot-fields select {
    width: 100%;
    box-sizing: border-box;
    height: 1.9em;
    padding: 0 6px;
    border: 1px solid #ccd0d4;
    border-radius: 3px;
    font-size: .86em;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s;
}
.gb-slot-fields input:focus,
.gb-slot-fields select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34,113,177,.2);
}

.gb-slot-remove {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 8px;
    background: none;
    border: none;
    color: #d63638;
    cursor: pointer;
    font-size: 1.1em;
    padding: 0 4px;
    line-height: 1;
}
.gb-slot-remove:hover { color: #8d1d1d; }

/* ── Hinzufügen-Buttons ── */
.gb-btn-add {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 10px;
    border: 1px dashed #bbb;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    font-size: .82em;
    color: #555;
    transition: border-color .15s, color .15s;
}
.gb-btn-add:hover {
    border-color: #2271b1;
    color: #2271b1;
}

/* ── Unterschrift ── */
.gb-sig-container {
    display: inline-block;
}

#gb-sig-canvas {
    display: block;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    background: #fff;
    max-width: 100%;
    cursor: crosshair;
    touch-action: none;
}

.gb-btn-secondary {
    margin-top: 4px;
    padding: 3px 10px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    background: #f6f7f7;
    cursor: pointer;
    font-size: .82em;
    font-family: inherit;
}
.gb-btn-secondary:hover { background: #e5e5e5; }

/* ── Submit ── */
.gb-form-submit {
    margin-top: 4px;
}

.gb-btn-primary {
    display: inline-block;
    padding: 9px 22px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: .92em;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s;
}
.gb-btn-primary:hover    { background: #135e96; }
.gb-btn-primary:disabled { background: #a7b5c2; cursor: not-allowed; }

/* ── Datenschutz-Checkbox ── */
.gb-privacy-check {
    margin-bottom: 10px;
}

.gb-privacy-check label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .88em;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.45;
    margin-bottom: 0;
}

.gb-privacy-check input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.gb-privacy-check a {
    color: #2271b1;
    text-decoration: underline;
}
.gb-privacy-check a:hover { color: #135e96; }

/* ── Fehler + Erfolg ── */
.gb-form-error {
    background: #fce8e8;
    border: 1px solid #f0a0a0;
    border-radius: 4px;
    padding: 7px 11px;
    color: #6e1a1a;
    margin-bottom: 8px;
    font-size: .86em;
    display: none;
}
.gb-form-error:not(:empty) { display: block; }

.gb-form-success {
    background: #eef6ee;
    border: 1px solid #90cc90;
    border-radius: 5px;
    padding: 14px 18px;
    color: #1a4d1a;
}

.gb-form-success h3 {
    margin: 0 0 5px;
}

.gb-error {
    color: #d63638;
    font-style: italic;
}
