/**
 * Booking Calendar Styles
 * Custom styles for the booking interface, calendar, time slots, and modal
 */

/* Booking Content Layout */
.booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 968px) {
    .booking-content {
        grid-template-columns: 1fr;
    }
}

/* Calendar Section */
.calendar-section {
    background: rgba(20, 20, 20, 0.9);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.calendar-section h2 {
    margin-top: 0;
    color: #d4af37;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FullCalendar Customization */
#booking-calendar {
    max-width: 100%;
    color: #fff;
}

.fc .fc-toolbar-title {
    color: #d4af37 !important;
}

.fc .fc-button-primary {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    color: #000 !important;
    font-weight: bold !important;
}

.fc .fc-button-primary:hover {
    background-color: #c19b2e !important;
    border-color: #c19b2e !important;
}

.fc .fc-button-primary:disabled {
    background-color: #555 !important;
    border-color: #555 !important;
}

.fc-col-header-cell-cushion {
    color: #d4af37 !important;
    text-decoration: none !important;
}

.fc-daygrid-day-number {
    color: #fff !important;
    padding: 8px !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

.fc-day-disabled {
    opacity: 0.2;
    pointer-events: none;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.fc-daygrid-day:hover:not(.fc-day-disabled) {
    background-color: rgba(212, 175, 55, 0.1);
    cursor: pointer;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(212, 175, 55, 0.2) !important;
}

/* Time Slots Container */
#time-slots-container {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid rgba(212, 175, 55, 0.3);
}

#time-slots-container h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
}

#selected-date-display {
    color: #d4af37;
    font-weight: bold;
}

/* Time Slots Grid */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.time-slot-btn {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95em;
    font-weight: 500;
    color: #fff;
}

.time-slot-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.time-slot-btn.selected {
    background: #d4af37;
    border-color: #d4af37;
    color: white;
    font-weight: bold;
}

.loading,
.no-slots,
.error {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.error {
    color: #dc3545;
}

/* Form Section */
.form-section {
    background: rgba(20, 20, 20, 0.9);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.form-section h2 {
    margin-top: 0;
    color: #d4af37;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-section label {
    display: block;
    margin-bottom: 8px;
    color: #f0f0f0;
    font-weight: 500;
    font-size: 0.95em;
}

.form-section input[type="text"],
.form-section input[type="email"],
.form-section input[type="tel"],
.form-section textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1em;
    color: #fff;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-section input:focus,
.form-section textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.form-section textarea {
    resize: vertical;
    min-height: 100px;
}

/* Consent Section */
.consent-section {
    margin: 20px 0;
    padding: 15px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border-left: 4px solid #d4af37;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9em;
    color: #ddd;
}

.consent-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.consent-label span {
    flex: 1;
}

/* Selected Time Display */
.selected-time-info {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-time-info i {
    color: #4caf50;
    font-size: 1.2em;
}

.selected-time-info span {
    color: #2e7d32;
    font-weight: 500;
}

/* Book Now Button */
.book-now-btn {
    width: 100%;
    padding: 15px 25px;
    background: #d4af37;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.book-now-btn:hover:not(:disabled) {
    background: #c19b2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.3);
}

.book-now-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Form Messages */
.form-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
    display: block;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
    display: block;
}

/* Confirmation Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #1a1a1a;
    padding: 35px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease;
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    margin-top: 0;
    color: #d4af37;
    font-size: 1.6em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-content h2 i {
    color: #4caf50;
}

.modal-content p {
    color: #ddd;
    margin-bottom: 20px;
}

/* Booking Summary */
.booking-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-detail {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.booking-detail:last-child {
    border-bottom: none;
}

.booking-detail strong {
    color: #d4af37;
    min-width: 120px;
}

/* Modal Buttons */
.modal-buttons {
    display: flex;
    gap: 15px;
}

.btn-confirm,
.btn-cancel {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-confirm {
    background: #4caf50;
    color: white;
}

.btn-confirm:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-confirm:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-cancel {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        padding: 25px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .booking-detail {
        flex-direction: column;
        gap: 5px;
    }

    .booking-detail strong {
        min-width: auto;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}