.simplebooking {
    position: relative;
    padding: 16px;
    background-color: rgba(34, 34, 34, 0.47);
}

@media (max-width: 420px) {
    .simplebooking {
        padding: 16px;
    }
}

/* Calendar Styles */
.simplebooking .tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 16px;
    justify-content: start;
}

.simplebooking .tabs li {
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    border: 1px solid #ffe610;
    background-color: #ffe610;
    cursor: pointer;
}

@media (min-width: 992px) {
    .simplebooking .tabs li {
        padding-top: 8px;
        padding-bottom: 8px;
        padding-left: 16px;
        padding-right: 16px;
        font-size: 14px;
    }
}

.simplebooking .tabs li.current {
    background-color: #fff;
    color: #000;
}

.simplebooking .tab-content {
    display: none;
}

.simplebooking .tab-content.current {
    display: block;
}

/* Calendar Styles */
.simplebooking-calendar {
    width: 100%;
    border-collapse: collapse;
}

.simplebooking-calendar th,
.simplebooking-calendar td {
    padding: 10px;
    text-align: center;
}

.simplebooking-calendar th {
    background-color: #ffe610;
    font-weight: bold;
    color: #000;
}

.simplebooking-calendar td {
    font-weight: bold;
    color: #000;
    background-color: #fff;
    border: 1px solid #333;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.simplebooking-calendar td:empty {
    cursor: default;
    background-color: transparent;
}

.simplebooking-calendar td:not(:empty, .date-passed, .time-passed):hover {
    background-color: #ffe610;
    color: #fff;
}

.simplebooking-calendar td.date-passed {
    background-color: #f0f5fa;
    color: #000;
    cursor: not-allowed;
    font-weight: 100;
}

.simplebooking-calendar td.active {
    background-color: #ffe610;
    color: #000;  
}

.no-touch .simplebooking-calendar td:hover { /* Just to override weird old CSS issues (style.css) */
    background: transparent;
    color: #000;
}

.simplebooking-calendar td:not(:empty, .date-passed):hover {
    cursor: pointer;
    background: #ffe610;
    color: #000;
}

table.simplebooking-calendar tbody tr { /* Just to override weird old CSS issues (style.css) */
    border-bottom: none;
}

@media only screen and (min-width: 768px) {
    #booking_form {
        width: 100%;
    }
}

#booking_form input {
    margin-bottom: 0;
}

/* Time Selection Styles */
/* .time-selection {
    margin-top: 16px;
} */
.time-select {
    float: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.time-select + .time-select {
    margin-top: 16px;
}

/* Center the title */
.time-select h2 {
    margin-bottom: 8px;
    font-size: 24px;
    color: #ffe610;
}

/* Flexbox layout for time slots */
.simplebooking .simplebooking-timelist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

@media (min-width: 768px) {
    .simplebooking .simplebooking-timelist {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .simplebooking .simplebooking-timelist {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.simplebooking-timelist>li {
    margin: 0;
}

/* Style for individual time slots */
.simplebooking-timelist .booking-select-date {
    background-color: #fff;
    /* border: 1px solid #D1D5DB; */
    color: #000;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.simplebooking-timelist .booking-select-date:not(.opened, .booked):hover {
    background-color: #ffe610;
}

/* Styling for the price inside the box */
.booking-select-date .booking-price {
    display: block;
    font-size: 12px;
    color: #000;
    font-weight: normal;
}

/* Form Styles */
.booking-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 360px) {
    .booking-form__grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.booking-form__grid .col-12,
.booking-form__grid-item--full-width {
    grid-column: 1 / -1;
}

.booking-form .booking-form__message {
    margin-top: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 24px;
    padding-right: 24px;
    font-size: 16px;
    text-align: center;
    color: #fff;
    background-color: #000;
}

.booking-form .booking-form__message.is-error {
    color: #ffe610;
}

.booking-form label:not(.newsletter-label) {
    font-weight: bold;
    color: #ffe610;
    margin-bottom: 8px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: #000;
}

.booking-form input[type="submit"] {
    margin-top: 16px;
    margin-bottom: 0;
    padding-top: 16px;
    padding-bottom: 16px;
    padding-left: 24px;
    padding-right: 24px;
    font-size: 18px;
    color: #000;
    border: none;
    background-color: #ffe610;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        color 0.3s ease
    ;
}

/* .booking-form input[type="submit"]:hover {
    background-color: #5d2394;
} */

.booking-form .field__message {
    margin-top: 1px;
    padding: 4px 12px;
    font-size: 12px;
    color: #fff;
    color: #ffe610;
}

.booking-form :is([type="text"], [type="email"], [type="tel"], [type="date"], select).has-error {
    border-color: #ffe610 !important;
}

/* Overlay styling for hidden elements */
.form__overlay {
    display: none; /* Hidden by default, can be shown with JS */
    background-image: none;
}

.form__overlay.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    background-color: rgba(0, 0, 0, .64);
}

.form__spinner {
    display: flex;
    justify-content: space-between;
    width: 60px;
    margin-left: auto;
    margin-right: auto;
}

.form__spinner div {
    width: 15px;
    height: 15px;
    background-color: #fff;
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
}

.form__spinner div:nth-child(2) {
    animation-delay: -0.4s;
}

.form__spinner div:nth-child(3) {
    animation-delay: -0.2s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Checkbox and Newsletter Styling */
.newsletter-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-label input {
    flex-grow: 0;
    margin: 0;
    width: 24px;
    height: 24px;
    /* accent-color: #ffe610; */
    accent-color: #000;
}

/* Responsive Styles for form */
@media (max-width: 480px) {
    .booking-form input,
    .booking-form select,
    .booking-form textarea {
        font-size: 14px;
    }

    .booking-form input[type="submit"] {
        font-size: 16px;
        padding: 10px 16px;
    }
}
