/* CSS Frontend - Nuevo diseño minimalista */
.ex180b-wizard {
    max-width: 900px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

/* Barra de progreso superior */
.ex180b-progress {
    background: #f8f9fa;
    height: 60px;
    margin-bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    padding: 0 20px;
}

.ex180b-progress-steps {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 700px;
    justify-content: space-between;
}

.ex180b-progress-step {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.ex180b-progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 60px;
    height: 2px;
    background: #e9ecef;
    transform: translateY(-50%);
    z-index: 1;
}

.ex180b-progress-step:last-child::after {
    display: none;
}

.ex180b-progress-step.active {
    color: #198754;
    font-weight: 600;
}

.ex180b-progress-step.active::after {
    background: #198754;
}

.ex180b-progress-step.completed {
    color: #198754;
}

.ex180b-progress-step.completed::after {
    background: #198754;
}

/* Pasos del wizard */
.ex180b-step {
    display: none;
    padding: 40px;
    min-height: 500px;
}

.ex180b-step.active {
    display: block;
}

/* Campos del formulario - Paso 1 */
.ex180b-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.ex180b-form-row .ex180b-field {
    flex: 1;
}

.ex180b-field {
    margin-bottom: 20px;
}

.ex180b-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.ex180b-field input,
.ex180b-field select,
.ex180b-field textarea {
    width: 100%;
    padding: 16px 16px;
    min-height: 48px;
    height: auto;
    line-height: 1.6;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ex180b-field input:focus,
.ex180b-field select:focus,
.ex180b-field textarea:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Selector de teléfono */
.ex180b-phone-group {
    display: flex;
    gap: 10px;
}

.ex180b-phone-prefix {
    flex: 0 0 100px;
}

.ex180b-phone-number {
    flex: 1;
}

/* Checkboxes */
.ex180b-checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ex180b-checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
}

.ex180b-checkbox-field label {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #495057;
}

/* Paso 2 - Preferencias - NUEVO DISEÑO MINIMALISTA */
.ex180b-time-preference-modern {
    margin-bottom: 30px;
}

.ex180b-time-preference-modern > label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.ex180b-time-range-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.ex180b-time-range-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ex180b-time-range-input label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.ex180b-time-range-input input[type="time"] {
    padding: 16px 16px;
    min-height: 48px;
    height: auto;
    line-height: 1.6;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    background: #fff;
    color: #212529;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ex180b-time-range-input input[type="time"]:hover {
    border-color: #adb5bd;
}

.ex180b-time-range-input input[type="time"]:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.ex180b-time-range-separator {
    font-size: 20px;
    font-weight: 300;
    color: #adb5bd;
    margin-top: 25px;
}

/* Paso 2 - Preferencias */
.ex180b-time-preference {
    margin-bottom: 30px;
}

.ex180b-time-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ex180b-time-input {
    position: relative;
}

.ex180b-time-input input {
    width: 80px;
    text-align: center;
}

.ex180b-time-separator {
    font-weight: 500;
    color: #495057;
}

.ex180b-days-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ex180b-day-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.ex180b-day-option:hover {
    background: #f8f9fa;
}

.ex180b-day-option.selected {
    background: #198754;
    color: white;
    border-color: #198754;
}

.ex180b-day-option input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

/* Paso 3 - Calendario */
.ex180b-calendar-section {
    margin-bottom: 30px;
}

.ex180b-date-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.ex180b-date-option {
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.ex180b-date-option:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.ex180b-date-option.selected {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.ex180b-date-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

/* Horarios */
.ex180b-time-slots-section {
    margin-top: 30px;
}

.ex180b-time-slots {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.ex180b-time-slot {
    padding: 10px 20px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.ex180b-time-slot:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.ex180b-time-slot.selected {
    background: #198754;
    color: white;
    border-color: #198754;
}


/* Estilos de .occupied eliminados - las horas ocupadas ya no se muestran */

/* Paso 4 - Pago */
.ex180b-payment-section {
    text-align: center;
    padding: 40px 0;
}

.ex180b-payment-free-badge {
    display: inline-block;
    background: #198754;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ex180b-payment-confirm-btn {
    background: #198754;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 20px;
}

.ex180b-payment-confirm-btn:hover {
    background: #157347;
    transform: translateY(-1px);
}

/* Botones de navegación */
.ex180b-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
}

.ex180b-btn {
    background: #198754;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.ex180b-btn:hover {
    background: #157347;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.ex180b-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.ex180b-btn-secondary {
    background: #6c757d;
}

.ex180b-btn-secondary:hover {
    background: #5c636a;
}

/* Estados de error */
.ex180b-field.error input,
.ex180b-field.error select {
    border-color: #dc3545;
}

.ex180b-error-msg {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Loading */
.ex180b-loading {
    text-align: center;
    padding: 40px;
}

.ex180b-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #198754;
    border-radius: 50%;
    animation: ex180b-spin 1s linear infinite;
}

@keyframes ex180b-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mensaje de éxito */
.ex180b-success-message {
    text-align: center;
    padding: 60px 40px;
}

.ex180b-success-message h3 {
    color: #198754;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.ex180b-success-message p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Gestión de citas */
.ex180b-manage-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ex180b-token-form,
.ex180b-booking-details,
.ex180b-error,
.ex180b-cancelled {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.ex180b-detail-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.ex180b-manage-actions {
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .ex180b-wizard {
        margin: 0;
    }
    
    .ex180b-step {
        padding: 20px;
    }
    
    .ex180b-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .ex180b-date-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ex180b-time-slots {
        flex-wrap: wrap;
    }
    
    .ex180b-days-selector {
        justify-content: center;
    }
    
    .ex180b-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .ex180b-btn {
        width: 100%;
    }
}/* MEJORAS AL CSS FRONTEND - Agregar al final de frontend.css */

/* Centrado y diseño moderno del wizard */
.ex180b-wizard {
    margin: 40px auto !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
}

/* Selector de rango horario moderno */
.ex180b-time-preference-modern {
    margin-bottom: 30px;
}

.ex180b-time-preference-modern > label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.ex180b-time-range-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.ex180b-time-range-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ex180b-time-range-input label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.ex180b-time-range-input input[type="time"] {
    padding: 16px 16px;
    min-height: 48px;
    height: auto;
    line-height: 1.6;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    background: #fff;
    color: #212529;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ex180b-time-range-input input[type="time"]:hover {
    border-color: #adb5bd;
}

.ex180b-time-range-input input[type="time"]:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.ex180b-time-range-separator {
    font-size: 20px;
    font-weight: 300;
    color: #adb5bd;
    margin-top: 25px;
}

/* Estilos mejorados para calendario */
.ex180b-date-day {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.ex180b-date-full {
    font-size: 13px;
    font-weight: 500;
    color: #212529;
}

/* Mejorar legibilidad de campos de formulario */
.ex180b-phone-prefix {
    font-size: 13px !important;
}

#appointment_type {
    font-size: 13px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .ex180b-wizard {
        margin: 20px 10px !important;
        border-radius: 8px !important;
    }
    
    .ex180b-time-range-selector {
        flex-direction: column;
        gap: 15px;
    }
    
    .ex180b-time-range-separator {
        transform: rotate(90deg);
        margin: 0;
    }
}
