/* includes/assets/css/style.css */

.booking-header {
    margin-bottom: 50px;
}

.mqbm-booking {
    padding: 20px;
    /* background: black; */
    max-width: 1200px; /* Optional: constrain max width for large screens */
    margin: 0 auto;
}

.mqbm-booking h2, .mqbm-booking p, .mqbm-booking h3, .mqbm-booking h4 {
    color: white;
    margin: 0;
}

.mqbm-booking h3 {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid gray;
}

.mqbm-booking h4 {
    padding-top: 10px;
}

.booking-header h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.booking-body {
    display: flex;
    flex-direction: column;
}

#step-1 {
    width: 100%;
    display: flex;
    gap: 20px;
}

#calendar-wrap {
    display: flex;
    gap: 20px;
}

#current-month {
    color: gray;
    font-size: 20px;
}

#booking-calendar-time {
    width: 66%;
}

#mqbm-calendar-wrapper, #mqbm-times {
    width: 48%;
}


#times-list {
    display: flex;
    gap: 15px; /* Reduced gap for mobile */
    justify-content: flex-start;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

#times-list li {
    list-style: none;
    margin: 5px 0;
}

.select-time {
    background: #3a3a3a;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 90px; /* Slightly reduced for mobile */
    font-size: 14px;
}

.select-time:hover, .select-time.selected {
    background: #4a4a4a;
}

#service-detail {
    width: 33%;
}

.calendar-header button {
    font-size: 24px;
    color: gray;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.calendar-header button:hover {
    color: #ccc;
}

#form-others {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

#mqbm-form {
    display: none;
}

#mqbm-form form {
    display: flex;
    gap: 30px;
}

#mqbm-form label {
    font-size: 0.9em;
    color: #ccc;
}

#mqbm-form input, #mqbm-form textarea {
    background: #2a2a2a;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    width: 100%;
    font-size: 14px;
}

#mqbm-form button[type="submit"] {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

#next-to-form, #check-next-avail, .mq-mera-button {
    background: #6a6a6a;
    color: #fff;
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    margin-top: 20px;
    font-size: 16px;
}

#next-to-form:hover, #check-next-avail:hover {
    background: #7a7a7a;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    background: #2a2a2a;
}

.calendar th, .calendar td {
    text-align: center;
    padding: 8px; /* Reduced padding for mobile */
    border: 1px solid #333;
}

.calendar th {
    background: #333;
    color: #fff;
}

.day {
    cursor: pointer;
    background: #2a2a2a;
    color: #fff;
}

.day:hover {
    background: #3a3a3a;
}

.day.today {
    background: #4a4a4a;
    font-weight: bold;
}

.day.past, .day.off {
    background: #111;
    color: #666;
    cursor: not-allowed;
}

#main-form {
    width: 66%;
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 20px;
}
#go-to-step-1 {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #6a6a6a;
    color: #fff;
    border: none;
    padding: 10px;
}

#form-others {
    width: 33%;
}

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

.form-row label {
    width: 100%;
}

.form-row label input {
    margin-top: 5px;
}

#mqbm-section-1, #mqbm-section-2 {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
}

#booking-datetime {
    color: gray;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #step-1 {
        flex-direction: column;
    }

    #booking-calendar-time, #service-detail {
        width: 100%;
    }

    #calendar-wrap {
        flex-direction: column;
    }

    #mqbm-calendar-wrapper, #mqbm-times {
        width: 100%;
    }

    #mqbm-form form {
        flex-direction: column;
    }

    #main-form, #form-others {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row label {
        margin-bottom: 15px;
    }

    #times-list {
        gap: 10px;
    }

    .select-time {
        width: 80px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .mqbm-booking {
        padding: 10px;
    }

    .booking-header {
        margin-bottom: 30px;
    }

    .booking-header h2 {
        font-size: 1.2em;
    }

    #booking-calendar-time h3, #mqbm-form h3 {
        font-size: 1.1em;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    #current-month {
        font-size: 18px;
    }

    .calendar th, .calendar td {
        padding: 6px;
        font-size: 12px;
    }

    #next-to-form, #check-next-avail, .mq-mera-button {
        font-size: 14px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .mqbm-booking h3 {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    #times-list {
        gap: 5px;
    }

    .select-time {
        width: 70px;
        font-size: 10px;
        padding: 8px;
    }

    #service-detail p {
        font-size: 14px;
    }

    #mqbm-form input, #mqbm-form textarea {
        font-size: 12px;
        padding: 8px;
    }
}