.reservation-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.reservation-form-container h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
    font-size: 24px;
}

.reservation-form .form-group {
    margin-bottom: 25px;
}

.reservation-form .form-row {
    display: flex;
    gap: 15px;
}

.reservation-form .form-group.half {
    flex: 1;
}

.reservation-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.reservation-form input[type="text"],
.reservation-form input[type="email"],
.reservation-form input[type="tel"],
.reservation-form input[type="date"],
.reservation-form input[type="time"],
.reservation-form select,
.reservation-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0,124,186,0.3);
}

.reservation-form textarea {
    resize: vertical;
    min-height: 80px;
}

.reservation-submit-btn {
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.reservation-submit-btn:hover {
    background: #005a87;
}

.reservation-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#reservation-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

#reservation-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#reservation-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.reservation-info-message {
    margin: 20px 0;
}

.info-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 20px;
    color: #856404;
}

.info-box p {
    margin: 10px 0;
}

.info-box strong {
    color: #000;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
    font-size: 15px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-label:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    accent-color: #007cba;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #007cba;
    font-weight: 600;
}

.checkbox-label span {
    color: #333;
    flex: 1;
}

#time-slot-selection {
    padding: 10px 0;
}

#selected-date-display {
    font-size: 17px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.time-slot-item {
    padding: 20px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.time-slot-item:hover {
    border-color: #007cba;
    background: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,124,186,0.25);
}

.time-slot-time {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.time-slot-availability {
    font-size: 14px;
    color: #28a745;
    font-weight: 600;
}

.no-slots {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 17px;
}

.booking-summary {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 5px solid #007cba;
}

.booking-summary p {
    margin: 8px 0;
    font-size: 16px;
}

.booking-summary strong {
    color: #007cba;
    font-size: 17px;
}

/* Frontend Calendar Styles */
#frontend-calendar-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin: 30px auto;
    max-width: 1200px;
}

#frontend-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 2px solid #e0e0e0;
}

#frontend-calendar-controls h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

#frontend-calendar-controls button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,124,186,0.2);
}

#frontend-calendar-controls button:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,124,186,0.3);
}

.frontend-calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    table-layout: fixed;
}

.frontend-calendar-table th {
    background: #f8f9fa;
    padding: 15px 8px;
    text-align: center;
    font-weight: 700;
    color: #333;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.frontend-calendar-table td {
    width: 14.28%;
    height: 120px;
    vertical-align: top;
    border: 1px solid #e0e0e0;
    position: relative;
    background: white;
    padding: 0;
}

.calendar-day {
    height: 100%;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day:hover:not(.past-day):not(.unavailable-day) {
    background: #e3f2fd;
}

.calendar-day.available-day {
    background: #fafafa;
}

.calendar-day.selected {
    background: #007cba !important;
    color: white;
}

.calendar-day.past-day {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-day.unavailable-day {
    background: #ffebee;
    cursor: not-allowed;
}

.calendar-day.has-bookings {
    background: #fff9e6;
}

.empty-day {
    background: #fafafa;
}

.day-number {
    padding: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.calendar-day.selected .day-number {
    color: white;
}

.calendar-day.past-day .day-number {
    color: #aaa;
}

.day-content {
    padding: 4px;
    font-size: 10px;
    text-align: center;
}

.reservation-count {
    background: #007cba;
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin: 2px auto;
    display: inline-block;
    text-align: center;
}

.reservation-details {
    font-size: 10px;
    line-height: 1.3;
}

.reservation-details .time-slot {
    display: block;
    margin: 2px;
    padding: 3px 4px;
    border-radius: 3px;
    font-size: 9px;
    text-align: center;
    border: none;
    cursor: default;
    font-weight: 600;
}

.reservation-details .time-slot.confirmed {
    background: #28a745;
    color: white;
}

.reservation-details .time-slot.pending {
    background: #ffc107;
    color: #333;
}

.slot-info {
    font-weight: bold;
}

.availability-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5cb85c;
}

.availability-indicator.limited {
    background: #f0ad4e;
}

.availability-indicator.full {
    background: #d9534f;
}

/* Booking Modal */
#booking-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.booking-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.booking-close {
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.2s ease;
}

.booking-close:hover,
.booking-close:focus {
    color: #000;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.time-slot {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.time-slot:hover {
    background: #f5f5f5;
    border-color: #007cba;
}

.time-slot.selected {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.time-slot.unavailable {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.quick-booking-form {
    margin-top: 20px;
}

.quick-booking-form .form-group {
    margin-bottom: 15px;
}

.quick-booking-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.quick-booking-form input,
.quick-booking-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.quick-booking-form input:focus,
.quick-booking-form select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0,124,186,0.3);
}

.booking-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.booking-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.booking-btn.primary {
    background: #007cba;
    color: white;
}

.booking-btn.primary:hover {
    background: #005a87;
}

.booking-btn.secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
}

.booking-btn.secondary:hover {
    background: #e9ecef;
}

.booking-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* Tablet */
@media (max-width: 1024px) {
    .reservation-form-container {
        padding: 25px 20px;
    }

    .booking-modal-content {
        padding: 25px 20px;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .reservation-form-container {
        padding: 20px 15px;
        margin: 10px;
    }

    .reservation-form-container h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .reservation-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .reservation-form .form-group.half {
        width: 100%;
    }

    .reservation-form label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .reservation-form input[type="text"],
    .reservation-form input[type="email"],
    .reservation-form input[type="tel"],
    .reservation-form input[type="date"],
    .reservation-form input[type="time"],
    .reservation-form select,
    .reservation-form textarea {
        font-size: 16px;
        padding: 12px;
    }

    .reservation-form .form-group {
        margin-bottom: 20px;
    }

    .reservation-submit-btn {
        font-size: 16px;
        padding: 14px 20px;
    }

    #frontend-calendar-container {
        padding: 15px 10px;
        margin: 15px 5px;
        border-radius: 8px;
    }

    #frontend-calendar-controls {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
        padding: 10px 0;
    }

    #frontend-calendar-controls h3 {
        width: 100%;
        text-align: center;
        font-size: 20px;
        order: -1;
        margin-bottom: 10px;
    }

    #frontend-calendar-controls button {
        flex: 1;
        min-width: 120px;
        padding: 10px 15px;
        font-size: 14px;
    }

    #frontend-reservation-calendar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .frontend-calendar-table {
        min-width: 600px;
    }

    .frontend-calendar-table th {
        font-size: 13px;
        padding: 12px 8px;
        letter-spacing: 0;
    }

    .frontend-calendar-table td {
        height: 100px;
        min-width: 85px;
    }

    .day-number {
        font-size: 15px;
        padding: 8px;
    }

    .day-content {
        font-size: 10px;
        padding: 4px;
    }

    .reservation-count {
        font-size: 10px;
        padding: 3px 5px;
    }

    .reservation-details .time-slot {
        font-size: 9px;
        padding: 2px 4px;
        margin: 2px;
    }

    #booking-modal {
        padding: 10px;
    }

    .booking-modal-content {
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        max-height: calc(100vh - 20px);
        border-radius: 8px;
    }

    .booking-modal-header {
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .booking-modal-header h3 {
        font-size: 18px;
    }

    .booking-close {
        font-size: 28px;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .time-slot-item {
        padding: 15px 10px;
    }

    .time-slot-time {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .time-slot-availability {
        font-size: 13px;
    }

    #selected-date-display {
        font-size: 15px;
        padding: 12px;
        margin-bottom: 20px;
    }

    .booking-summary {
        padding: 15px;
        margin-bottom: 20px;
    }

    .booking-summary p {
        font-size: 15px;
        margin: 6px 0;
    }

    .booking-summary strong {
        font-size: 16px;
    }

    .checkbox-label {
        font-size: 14px;
        padding: 14px 12px;
        gap: 10px;
    }

    .checkbox-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    .checkbox-label span {
        font-size: 14px;
    }

    .info-box {
        padding: 15px;
        font-size: 14px;
    }

    .no-slots {
        font-size: 15px;
        padding: 30px 15px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .reservation-form-container {
        padding: 15px 12px;
        margin: 5px;
    }

    .booking-modal-content {
        padding: 15px 12px;
    }

    #frontend-calendar-container {
        padding: 10px 8px;
        margin: 10px 5px;
    }

    #frontend-calendar-controls {
        padding: 8px 0;
        margin-bottom: 15px;
    }

    #frontend-calendar-controls h3 {
        font-size: 18px;
    }

    #frontend-calendar-controls button {
        font-size: 13px;
        padding: 8px 12px;
        min-width: 100px;
    }

    #frontend-reservation-calendar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .frontend-calendar-table {
        min-width: 550px;
    }

    .frontend-calendar-table th {
        font-size: 12px;
        padding: 10px 6px;
    }

    .frontend-calendar-table td {
        height: 90px;
        min-width: 78px;
    }

    .day-number {
        font-size: 14px;
        padding: 6px;
    }

    .day-content {
        font-size: 9px;
    }

    .reservation-count {
        font-size: 9px;
        padding: 2px 4px;
    }

    .reservation-details .time-slot {
        font-size: 8px;
        padding: 2px 3px;
    }

    .time-slots-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .time-slot-item {
        padding: 12px 8px;
    }

    .time-slot-time {
        font-size: 16px;
    }

    .time-slot-availability {
        font-size: 12px;
    }
}