/* Al Faisal Restaurant Booking Styles */
:root {
    --primary-color: #d18d3b;
    /* Orange/Gold */
    --secondary-color: #f1e4d1;
    /* Light Cream */
    --bg-dark: #1a1a1a;
    --text-white: #ffffff;
    --border-color: #ffffff33;
}

.alfaisal-booking-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: transparent;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--border-color);
}

.booking-section h2 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-row {
    display: flex;
    gap: 20px;
}

.half {
    flex: 1;
}

input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    border-radius: 4px;
    box-sizing: border-box;
}

select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d18d3b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
}

input#booking_date {
    display: none;
}

#calendar-container {
    margin-top: 10px;
}

/* Custom Restaurant Calendar Styling */
#alfaisal-booking-wrapper #calendar-container {
    background: #1f1f1f !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    font-family: 'Inter', sans-serif !important;
    display: block !important;
    visibility: visible !important;
    min-height: 380px !important;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.current-month-label {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cal-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
}

.cal-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.weekday-label {
    color: rgba(241, 228, 209, 0.6);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding-bottom: 10px;
}

.day-cell {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.day-cell:hover:not(.disabled):not(.selected) {
    background: rgba(209, 141, 59, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.day-cell.selected {
    background: var(--primary-color);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(209, 141, 59, 0.3);
}

.day-cell.disabled {
    color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.day-cell.today {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Time Slots Grid */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    background: var(--primary-color);
}

.time-slot.selected {
    background: var(--primary-color);
    border-color: var(--secondary-color);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Submission Message */
#booking-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    display: none;
}

#booking-message.success {
    background: #4caf5022;
    border: 1px solid #4caf50;
    color: #4caf50;
    display: block;
}

#booking-message.error {
    background: #f4433622;
    border: 1px solid #f44336;
    color: #f44336;
    display: block;
}

/* House Full Banner */
.alfaisal-house-full-banner {
    background: #f44336;
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 4px;
    font-weight: bold;
}

div#alfaisal-js-debug {
    display: none;
}

/* Submit Button */
button#submit-booking {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

button#submit-booking:hover {
    background: var(--secondary-color);
    color: #000;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .alfaisal-booking-container {
        padding: 10px;
        margin: 10px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
      .form-row {
        flex-direction: column;
        gap: 0;
    }

    .half {
        width: 100%;
    }

    .calendar-grid {
        gap: 2px;
    }

    .day-cell {
        height: 40px;
        font-size: 0.9rem;
    }

    .booking-section h2 {
        font-size: 1rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #alfaisal-booking-wrapper #calendar-container {
        min-height: 300px !important;
        padding: 10px !important;
    }
}

@media (max-width: 400px) {
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .current-month-label {
        font-size: 1rem;
    }
 
}

