.bbs-booking-fields {
    margin-bottom: 2em;
    padding: 2em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #B8D1C7;
}

.booking-datetime-container {
    margin: 1.5em 0;
}

/* Estilos para el input de código postal */
#booking_postal_code {
    width: 100%;
    padding: 12px;
    border: 2px solid #B8D1C7;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#booking_postal_code:focus {
    outline: none;
    border-color: #96b5a9;
    box-shadow: 0 0 0 3px rgba(184, 209, 199, 0.2);
}

/* Estilos para el selector de hora */
#booking_time {
    width: 100%;
    padding: 12px;
    border: 2px solid #B8D1C7;
    border-radius: 4px;
    font-size: 16px;
    height: auto;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

#booking_time:focus {
    outline: none;
    border-color: #96b5a9;
    box-shadow: 0 0 0 3px rgba(184, 209, 199, 0.2);
}

/* Estilos para el calendario Flatpickr */
.flatpickr-calendar {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1.5em;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #fff;
}

.flatpickr-months {
    background: #B8D1C7;
    padding: 10px 0;
    position: relative;
}

.flatpickr-months .flatpickr-month {
    background: #B8D1C7;
    color: #fff;
    height: 34px;
    line-height: 1;
    text-align: center;
    position: relative;
    user-select: none;
    overflow: hidden;
    flex: 1;
}

.flatpickr-current-month {
    font-size: 18px;
    line-height: 34px;
    font-weight: 600;
    color: #fff;
    position: absolute;
    width: 75%;
    left: 12.5%;
    padding: 0;
    height: 34px;
    display: inline-block;
    text-align: center;
    transform: translate3d(0px, 0px, 0px);
}

.flatpickr-current-month .cur-month {
    font-family: inherit;
    font-weight: 600;
    color: inherit;
    display: inline-block;
    margin-right: 0.5ch;
    padding: 0;
}

/* Estilos específicos para el input del año */
.numInput.cur-year {
    background: transparent;
    box-sizing: border-box;
    color: #fff !important;
    cursor: text;
    margin: 0;
    display: inline-block;
    font-size: inherit;
    font-family: inherit;
    font-weight: 600;
    line-height: inherit;
    height: auto;
    border: 0;
    border-radius: 0;
    vertical-align: initial;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0 0 0 0.5ch;
    width: 3.5em;
}

.numInput.cur-year:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
}

/* Estilos para los botones de incremento/decremento del año */
.numInputWrapper span {
    position: absolute;
    right: 0;
    width: 14px;
    padding: 0 4px 0 2px;
    height: 50%;
    line-height: 50%;
    opacity: 0;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.15);
    box-sizing: border-box;
}

.numInputWrapper span:hover {
    background: rgba(255, 255, 255, 0.2);
}

.numInputWrapper span.arrowUp {
    top: 6px;
    border-bottom: 0;
}

.numInputWrapper span.arrowDown {
    top: 80%;
}

.numInputWrapper:hover {
    background: rgba(255, 255, 255, 0.05);
}

.numInputWrapper:hover span {
    opacity: 1;
}

/* Mejorar visibilidad del mes y año actual */
.flatpickr-current-month {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.flatpickr-current-month .numInputWrapper {
    display: inline-block;
    position: relative;
    padding: 0 2px;
    width: 7ch;
}

/* Ajustar el contenedor del mes actual */
.cur-month {
    font-size: 18px;
    font-weight: 600;
}

/* Ajustar el input del año */
.flatpickr-current-month input.cur-year {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    text-decoration: none;
    cursor: pointer;
    position: absolute;
    top: 7px;
    height: 34px;
    padding: 10px;
    z-index: 3;
    color: #fff;
    fill: #fff;
}

.flatpickr-months .flatpickr-prev-month {
    left: 0;
}

.flatpickr-months .flatpickr-next-month {
    right: 0;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: rgba(255, 255, 255, 0.1);
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    width: 14px;
    height: 14px;
}

/* Corregir dirección de las flechas */
.flatpickr-months .flatpickr-prev-month svg {
    transform: rotate(-90deg);
}

.flatpickr-months .flatpickr-next-month svg {
    transform: rotate(-90deg);
}

.flatpickr-innerContainer {
    width: 100% !important;
}

.flatpickr-rContainer {
    width: 100% !important;
}

.flatpickr-days {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 5px;
    justify-items: center;
    padding: 0 !important;
    max-width: none !important;
}

.flatpickr-day {
    width: 100% !important;
    max-width: none !important;
    height: 45px !important;
    line-height: 45px !important;
    font-size: 16px;
    border-radius: 4px !important;
    margin: 0 !important;
    border: 1px solid transparent;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #B8D1C7 !important;
    border-color: #B8D1C7 !important;
    color: #fff !important;
}

.flatpickr-day:hover {
    background: rgba(184, 209, 199, 0.2) !important;
    border-color: #B8D1C7 !important;
}

.flatpickr-day.today {
    border-color: #B8D1C7 !important;
    color: #B8D1C7 !important;
    font-weight: bold;
}

.flatpickr-weekday {
    color: #666 !important;
    font-weight: 600;
    font-size: 14px;
    background: transparent;
    text-align: center;
    width: 100% !important;
}

.flatpickr-weekdays {
    background: transparent;
    padding: 10px 0;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
}

.flatpickr-weekdaycontainer {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
}

/* Estilos para los números del input del año */
.numInputWrapper span {
    border: none;
    padding: 0 5px;
    height: auto;
    opacity: 1;
}

.numInputWrapper span:hover {
    background: rgba(255, 255, 255, 0.2);
}

.numInputWrapper span.arrowUp,
.numInputWrapper span.arrowDown {
    border: none;
}

/* Estilos para días deshabilitados */
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: rgba(72, 72, 72, 0.3) !important;
    background: transparent !important;
    border-color: transparent !important;
    cursor: not-allowed;
}

/* Estilos para el botón de verificar disponibilidad */
#check_availability {
    background-color: #B8D1C7;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1em;
}

#check_availability:hover {
    background-color: #96b5a9;
}

#check_availability:disabled {
    background-color: #B8D1C7;
    cursor: not-allowed;
}

/* Estilos para las etiquetas */
.form-row label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: #333;
}

.form-row {
    margin-bottom: 1.5em;
}

/* Mensaje de verificación requerida */
.bbs-checkout-message {
    background-color: #f8f8f8;
    border: 1px solid #B8D1C7;
    padding: 12px;
    margin: 10px 0;
    border-radius: 4px;
    text-align: center;
    color: #666;
}

/* Responsive */
@media (min-width: 768px) {
    .booking-datetime-container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 20px;
        align-items: start;
    }
}

/* Agregar estilos específicos para Select2 */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 45px;
    border: 2px solid #B8D1C7;
    border-radius: 4px;
    padding: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 43px;
}

.select2-dropdown {
    border: 2px solid #B8D1C7;
    border-radius: 4px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #B8D1C7;
}

.select2-results__option {
    padding: 8px 12px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
    background: #f7f7f7;
    padding: 15px;
    border-radius: 8px;
}

.time-slot-button {
    background: #b8d1c7 !important;
    border: 2px solid #B8D1C7;
    border-radius: 4px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.time-slot-button:hover:not([disabled]) {
    background: #B8D1C7;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.time-slot-button.selected {
    background: #B8D1C7;
    color: #FFFFFF;
    border-color: #96b5a9;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.time-slot-button[disabled] {
    background: #f2f2f2;
    border-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.8;
    box-shadow: none;
}

.no-slots-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 20px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin: 0;
}

@media (max-width: 768px) {
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
        padding: 10px;
    }

    .time-slot-button {
        padding: 8px 6px;
        font-size: 13px;
    }
}

/* Estilos para la Modal */
.bbs-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bbs-modal.show {
    display: block;
    opacity: 1;
}

.bbs-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.bbs-modal.show .bbs-modal-content {
    transform: translateY(0);
}

.bbs-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    border-radius: 8px 8px 0 0;
}

.bbs-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.bbs-modal-body {
    padding: 20px;
    color: #666;
    font-size: 1.1em;
    line-height: 1.5;
}

.bbs-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
    border-radius: 0 0 8px 8px;
}

.bbs-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.bbs-modal-close:hover {
    color: #666;
}

.bbs-modal-button {
    padding: 10px 20px !important;
    background-color: #B8D1C7 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease !important;
}

.bbs-modal-button:hover {
    background-color: #96b5a9 !important;
}

/* Estilos para diferentes tipos de modal */
.bbs-modal.success .bbs-modal-header {
    background-color: #B8D1C7;
}

.bbs-modal.success .bbs-modal-header h3 {
    color: #fff;
}

.bbs-modal.error .bbs-modal-header {
    background-color: #dc3545;
}

.bbs-modal.error .bbs-modal-header h3 {
    color: #fff;
}

@media (max-width: 768px) {
    .bbs-modal-content {
        margin: 20% auto;
        width: 95%;
    }
}
