/* === Formular Layout === */
form.terminbuchung-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 25px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

/* Layout width presets applied via wrapper class .layout-width-* */
.layout-width-compact form.terminbuchung-form { max-width: 380px; }
.layout-width-medium form.terminbuchung-form { max-width: 500px; }
.layout-width-wide form.terminbuchung-form { max-width: 800px; }
.layout-width-full form.terminbuchung-form { max-width: 100%; }

/* Optional generic container presets (also used by other components) */
.fsbk-layout.layout-width-compact { max-width: 720px; margin-left:auto; margin-right:auto; }
.fsbk-layout.layout-width-medium { max-width: 960px; margin-left:auto; margin-right:auto; }
.fsbk-layout.layout-width-wide { max-width: 1200px; margin-left:auto; margin-right:auto; }
.fsbk-layout.layout-width-full { width: 100%; max-width: 100%; margin: 0; }

/* Labels */
form.terminbuchung-form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 600;
    color: #333;
}

form.terminbuchung-form .infoText {
    display: block;
    margin: 15px 0 5px;
    font-weight: 600;
    color: #333;
}

/* Inputs */
form.terminbuchung-form input[type="text"],
form.terminbuchung-form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #bbb;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

form.terminbuchung-form input[type="text"]:focus,
form.terminbuchung-form input[type="email"]:focus {
    border-color: #0073aa;
    outline: none;
}

/* === Location & Timeslot Grids === */
form.terminbuchung-form .location-group,
form.terminbuchung-form .timeslot-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

/* Buttons */
form.terminbuchung-form .location-button,
form.terminbuchung-form .timeslot-button {
    padding: 10px;
    border: 1px solid #0073aa;
    background-color: #fff;
    color: #0073aa;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

form.terminbuchung-form .location-button:hover,
form.terminbuchung-form .location-button.selected,
form.terminbuchung-form .timeslot-button:hover,
form.terminbuchung-form .timeslot-button.selected {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

form.terminbuchung-form .timeslot-button.disabled {
    background-color: #eee !important;
    color: #999 !important;
    cursor: not-allowed;
    border: 1px solid #ccc;
}

/* === Submit Button === */
form.terminbuchung-form input[type="submit"] {
    margin-top: 25px;
    background-color: #0073aa;
    color: #fff;
    cursor: pointer;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

form.terminbuchung-form input[type="submit"]:hover {
    background-color: #fff;
    color: #0073aa;
    border: 1px solid #0073aa;
}

/* === Datum Anzeige === */
form.terminbuchung-form #date-display {
    margin: 15px 20px 20px;
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* === Erfolgs- & Fehlermeldungen === */
.success-message,
.error-message {
    max-width: 500px;
    margin: 20px auto;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.success-message {
    border: 1px solid #4CAF50;
    background-color: #e8f5e9;
    color: #2e7d32;
}

.error-message {
    border: 1px solid #f44336;
    background-color: #fdecea;
    color: #c62828;
}

/* Manage-my-bookings container width presets */
.layout-width-compact .manage-bookings-container { max-width: 720px; }
.layout-width-medium .manage-bookings-container { max-width: 900px; }
.layout-width-wide .manage-bookings-container { max-width: 1200px; }
.layout-width-full .manage-bookings-container { max-width: 100%; width: 100%; }

