/* Schwimmbad Booking – Public CSS */
.sb-booking {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 780px;
    margin: 0 auto;
    color: #222;
}
.sb-step-h {
    font-size: 1.1em;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid #0073aa;
    color: #0073aa;
    margin-bottom: 14px;
}

/* Calendar */
.sb-cal-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
#sb-pub-month {
    font-weight: 700;
    font-size: 1.1em;
    min-width: 160px;
    text-align: center;
}
#sb-pub-cal {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.sb-ph { /* header cell */
    background: #0073aa;
    color: #fff;
    text-align: center;
    padding: 7px 2px;
    border-radius: 4px;
    font-size: .8em;
    font-weight: 700;
}
.sb-pd { /* day cell */
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 70px;
    padding: 5px;
    background: #fafafa;
}
.sb-pd.empty { background: transparent; border-color: transparent; }
.sb-pd.past  { opacity: .4; }
.sb-pd-num   { font-weight: 700; font-size: .85em; color: #666; margin-bottom: 3px; }
.sb-slot-btn {
    display: block;
    width: 100%;
    margin-top: 3px;
    padding: 4px 5px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: .7em;
    cursor: pointer;
    text-align: left;
    line-height: 1.3;
    transition: background .15s;
}
.sb-slot-btn:hover:not(:disabled) { background: #005c8a; }
.sb-slot-btn.full { background: #999; cursor: not-allowed; }

/* Info box */
.sb-info-box {
    background: #e9f5ff;
    border-left: 4px solid #0073aa;
    padding: 10px 14px;
    border-radius: 0 5px 5px 0;
    margin-bottom: 14px;
    font-size: .93em;
    line-height: 1.6;
}

/* Form */
.sb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media(max-width:480px){ .sb-row2 { grid-template-columns: 1fr; } }
.sb-row2 label, .sb-booking label {
    display: flex; flex-direction: column;
    font-size: .88em; font-weight: 600; color: #444; gap: 3px;
}
.sb-inp {
    padding: 7px 9px; border: 1px solid #ccc; border-radius: 4px;
    font-size: 1em; width: 100%; box-sizing: border-box;
}
.sb-inp:focus { border-color: #0073aa; outline: none; }
.sb-form-acts { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.sb-logged-note { font-size: .88em; color: #555; margin-bottom: 12px; }

/* Buttons */
.sb-btn {
    padding: 9px 18px; border-radius: 5px;
    font-size: .93em; font-weight: 600; cursor: pointer;
    border: 2px solid transparent; transition: background .15s, color .15s;
}
.sb-btn-pri { background: #0073aa; color: #fff; }
.sb-btn-pri:hover { background: #005c8a; }
.sb-btn-sec { background: #fff; color: #0073aa; border-color: #0073aa; }
.sb-btn-sec:hover { background: #e9f5ff; }

/* Notices */
.sb-notice { padding: 10px 14px; border-radius: 5px; margin-top: 12px; font-size: .9em; }
.sb-err  { background: #fde8e8; border-left: 4px solid #c00; color: #700; }
.sb-warn { background: #fff3cd; border-left: 4px solid #e6a817; color: #7a5000; }

/* Success */
.sb-success { text-align: center; padding: 28px 16px; }
.sb-check {
    display: inline-block;
    width: 60px; height: 60px; line-height: 60px;
    background: #28a745; color: #fff;
    border-radius: 50%; font-size: 2em;
    margin-bottom: 10px;
}
.sb-success h3 { color: #28a745; font-size: 1.35em; }
.sb-loading { color: #888; font-style: italic; margin: 10px 0; }
