.cfc-booking-gateway {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px; /* Un poco más redondo */
    padding: 24px; /* Más aire general */
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.cfc-booking-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 32px;
    padding: 0 10px;
}

/* Línea de conexión de progreso */
.cfc-booking-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #e2e9f0;
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 3px;
}

.cfc-booking-steps span {
    position: relative;
    z-index: 2;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f4f6f8;
    color: #6d6e71;
    font-size: 14px;
    font-weight: 600;
    border: 3px solid #fff; /* Para crear el corte en la línea */
    transition: all 0.3s ease;
}

.cfc-booking-steps span.is-active {
    background: #55b9d7; /* Usar el celeste del logo */
    color: #fff;
    box-shadow: 0 4px 10px rgba(85, 185, 215, 0.3);
}

.cfc-step {
    display: none;
}

.cfc-step.is-active {
    display: block;
    animation: cfcFadeIn 0.3s ease;
}

@keyframes cfcFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.cfc-booking-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px; /* Espacio vertical y horizontal */
}

.cfc-field-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cfc-field-row label {
    margin-bottom: 0;
    line-height: 1.2;
}

/* Ocultar etiquetas <br> generadas por wpautop */
.cfc-field-row br {
    display: none;
}

/* Ocupar todo el ancho para botones y checkboxes largos si es necesario */
.cfc-field-row.is-checkbox,
.cfc-next-step {
    grid-column: 1 / -1;
}

.cfc-next-step {
    margin-top: 12px;
    justify-self: start;
}

.cfc-field-row input[type="text"],
.cfc-field-row input[type="date"],
.cfc-field-row input[type="tel"],
.cfc-field-row input[type="email"] {
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    border-radius: 6px;
    border: 1px solid #c2d4e3;
    padding: 0 12px;
}

.cfc-input-error {
    border-color: #c0392b !important;
    background-color: #fdf2f1;
}

.cfc-error-message {
    color: #c0392b;
    font-size: 12px;
    margin-top: 2px;
    display: none;
}
.cfc-error-message.is-visible {
    display: block;
}

.cfc-field-row.is-checkbox {
    display: block;
}

.cfc-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cfc-checkbox-label input[type="checkbox"] {
    margin: 0;
}

.cfc-required {
    color: #c0392b;
    margin-left: 4px;
    font-weight: 700;
}

.cfc-none-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.cfc-input-hidden {
    display: none;
}

#cfc-booking-calendar {
    margin-bottom: 12px;
}

.cfc-slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
}

.cfc-slot-button.is-selected {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.cfc-payment-mode {
    margin: 16px 0;
}

.cfc-channel-mode {
    margin: 16px 0;
}

/* Resaltado del día seleccionado en el calendario */
.cfc-selected-date {
    background-color: rgba(85, 185, 215, 0.15) !important;
    border: 2px solid #55b9d7 !important;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(85, 185, 215, 0.5);
}

/* Modal de verificación de WhatsApp */
.cfc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.cfc-modal-box {
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.cfc-modal-message {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 20px;
}

.cfc-modal-close {
    font-size: 14px;
    padding: 8px 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cfc-booking-gateway {
        padding: 16px;
    }

    .cfc-booking-steps span {
        font-size: 12px;
        padding: 6px 10px;
    }

    .cfc-booking-form {
        grid-template-columns: 1fr; /* 1 sola columna en móvil */
        gap: 12px;
    }
    
    .cfc-next-step,
    .cfc-submit-booking,
    .cfc-prev-step {
        width: 100%;
        justify-self: stretch;
    }
}
