/* Variables CSS */
:root {
    --primary-color: #0984E3;
    --secondary-color: #3197D6;
    --text-color: #fafafa;
    --background-color: #f8f8f8;
    --border-color: #0984E3;
    --highlight-color: #eaeaea;
}

/* Eliminar espacio entre secciones y área de datos */
#fbuilder *, #fbuilder ::after, #fbuilder ::before {
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
}

/* Estilizar área de datos */
#fbuilder legend {
    border: 1px solid #ccc;
    padding: 5px 10px;
    background-color: whitesmoke;
    color: black;
    border-radius: 5px;
}

#fbuilder fieldset {
    border: 1px solid #ccc;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
}

/* Responsivo */
#fbuilder .ui-datepicker-inline {
    max-width: none !important;
}

/* Servicio */
.ahb_m3 .ahbfield_service {
    width: 100%;
    height: 40px;
    border-radius: 5px;
}

/* Header del Datepicker (NUEVAS CLASES INCLUIDAS) */
#fbuilder .ui-datepicker .ui-widget-header,
#fbuilder .ui-datepicker-header {
    background: var(--primary-color) !important;
    color: var(--text-color) !important;
    border-radius: 5px 5px 0 0 !important;
}

#fbuilder .ui-datepicker-title {
    color: var(--text-color) !important;
}

/* Selección de mes */

.ahb_m3 #fbuilder .ui-datepicker-next,
.ahb_m3 #fbuilder .ui-datepicker-prev {
    border-top: 3px solid white !important;
    border-right: 3px solid white !important;
}


/* Días disponibles */
#fbuilder .ui-datepicker td a:not(.ui-state-disabled) {
    background: none !important;
    color: black !important;
    border-radius: 5px !important;
}

/* Hover */
#fbuilder .ui-datepicker td a:hover {
    color: white !important;
    background: var(--secondary-color) !important;
    border-radius: 5px !important;
}

/* Día seleccionado */
#fbuilder .ui-datepicker td a.ui-state-active {
    color: white !important;
    background: var(--primary-color) !important;
    border-radius: 5px !important;
}

/* Fondo del calendario */
#fbuilder .ui-datepicker table {
    border-collapse: collapse;
    background-color: var(--background-color);
    border-radius: 5px;
}

/* Semana (NUEVAS CLASES) */
#fbuilder .ui-datepicker th,
#fbuilder .ui-widget-content th {
    background-color: var(--highlight-color) !important;
    color: black !important;
}

/* Formulario campo de selección */
#fbuilder select {
    height: 50px;
    border-radius: 5px;
}

/* Ocultar elementos no deseados */
.uh_phone .l,
#fbuilder label .r {
    display: none;
}

/* Botón enviar */
#fbuilder .pbSubmit {
    width: 100%;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px;
}

/* ——— HORARIOS (CLASES NUEVAS DE AHB) ——— */

/* Agregar Contenedor 
#fbuilder .slotsCalendar {
    background: var(--background-color) !important;
    border-radius: 5px !important;
    padding: 10px !important;
}

/* Contenedor full width y centrado */
#fbuilder .slotsCalendar {
    width: 100% !important;       /* ocupa todo el ancho disponible */
    max-width: 600px;              /* opcional: limita ancho máximo para que no se estire demasiado */
    margin: 0 auto !important;     /* lo centra horizontalmente */
    background: var(--background-color) !important;
    border-radius: 5px !important;
    padding: 10px !important;
    box-sizing: border-box;        /* evita que el padding sume al ancho total */
}

/* Slots disponibles */
#fbuilder .availableslot a {
    display: inline-block;
    width: 100%;
    padding: 10px 12px !important;
    background: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 5px !important;
    color: black !important;
}

/* Hover */
#fbuilder .availableslot a:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Slot seleccionado */
#fbuilder .currentSelection.choosen a {
    background: var(--primary-color) !important;
    color: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 5px !important;
    transform: scale(1.02);
}

/* Slots no disponibles */
#fbuilder .htmlUsed.pending.old a {
/*    background: #ddd !important; */
    color: #888 !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
}

/* Ocultar disponibilidad numérica si molesta */
#fbuilder .ahb_slot_availability {
    display: none !important;
}