


#booking-form {
    opacity: 0;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    height: 0;
    visibility: hidden;
    margin: 20px 0;
}

#booking-form.active {
    opacity: 1;
    height: auto;
    visibility: visible;
}

/* Komunikaty potwierdzenia */
.confirmation-message {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.confirmation-message.success {
    border-left: 4px solid #28a745;
}

.confirmation-message.error {
    border-left: 4px solid #dc3545;
}

.confirmation-message h3 {
    margin-top: 0;
    color: #333;
}

.confirmation-message.success h3 {
    color: #28a745;
}

.confirmation-message.error h3 {
    color: #dc3545;
}

.booking-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: left;
}

.booking-details p {
    margin: 8px 0;
}

#booking-form-header {
    transition: opacity 0.3s ease;
}

#booking-form-header.hidden {
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin: 20px 0;
}
.day-column {
    border: 1px solid #ddd;
    padding: 10px;
    min-height: 300px;
}
.day-header {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 5px;
    background: #f1f1f1;
    border-radius: 3px;
}
.time-slot {
    padding: 8px;
    margin: 2px 0;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.time-slot.available {
    background: #d4edda;
    color: #155724;
}
.time-slot.available:hover {
    background: #c3e6cb;
    transform: scale(1.02);
}
.time-slot.unavailable {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}
.time-slot.booked {
    background: #ffeaa7;
    color: #856404;
    cursor: not-allowed;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}
.nav-button {
    padding: 10px 15px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.nav-button:hover {
    background: #005a87;
}
.nav-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Loader overlay */
.calendar-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.calendar-loader.active {
    opacity: 1;
    visibility: visible;
}

/* Animowany loader */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Kontener główny */
#availability-calendar {
    position: relative;
    min-height: 500px;
}

/* Kalendarz */
.calendar-view {
    transition: all 0.3s ease;
}

.calendar-view.hidden {
    display: none;
}





/* Przycisk zmiany daty */
.back-to-calendar {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.back-to-calendar:hover {
    background: #5a6268;
}

/* Responsywność - Mobile First */
@media (max-width: 991px) {
    .calendar-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    .day-column {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 10px;
    }
    .day-header {
        background: #007cba;
        color: white;
        padding: 12px;
        border-radius: 6px;
        margin: -15px -15px 15px -15px;
        text-align: center;
    }
    .time-slots-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    .time-slot {
        flex: 0 0 calc(50% - 8px);
        margin: 0;
    }
}
@media (min-width: 992px) {
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    .time-slots-container {
        display: block;
    }
    .time-slot {
        width: 100%;
        margin: 2px 0;
    }
}