/**
 * Estilos para el sistema de citas ACI
 */

/* Contenedor principal */
.aci-citas-wrap {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Encabezado */
.aci-citas-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.aci-citas-header h2 {
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.aci-citas-header p {
    color: #777;
    margin: 0;
}

/* Secciones del formulario */
.aci-form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.aci-form-section h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

/* Campos de formulario */
.aci-field {
    margin-bottom: 15px;
}

.aci-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.aci-field input[type="text"],
.aci-field input[type="email"],
.aci-field input[type="tel"],
.aci-field input[type="date"],
.aci-field input[type="time"],
.aci-field select,
.aci-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.aci-field input:focus,
.aci-field select:focus,
.aci-field textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Grupo de radio buttons */
.aci-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.aci-radio-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.2s;
    flex: 1;
    min-width: 200px;
}

.aci-radio-label:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.aci-radio-label input[type="radio"] {
    margin-right: 10px;
    margin-top: 3px;
}

.aci-radio-text strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.aci-radio-text small {
    color: #777;
    font-size: 0.9em;
}

/* Fechas y horas */
.aci-date-time-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .aci-date-time-fields {
        grid-template-columns: 1fr;
    }
}

/* Slots de horarios */
.aci-slots-container {
    margin-top: 20px;
}

.aci-slots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.aci-slot {
    padding: 10px;
    text-align: center;
    background: #e8f4f8;
    border: 1px solid #bee0ec;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.aci-slot:hover {
    background: #d1e7f0;
    border-color: #3498db;
}

.aci-slot.selected {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.aci-slot.unavailable {
    background: #f8f8f8;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
}

/* Botones */
.aci-btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: all 0.2s;
}

.aci-btn-primary {
    background: #3498db;
    color: white;
}

.aci-btn-primary:hover {
    background: #2980b9;
}

.aci-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Cargando */
.aci-loading {
    display: inline-block;
    margin-left: 10px;
    color: #777;
}

/* Mensajes */
.aci-citas-message {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.aci-citas-message.aci-citas-error {
    background: #fdf2f2;
    border-left-color: #e74c3c;
    color: #c0392b;
}

.aci-citas-message.aci-citas-success {
    background: #f2fdf2;
    border-left-color: #27ae60;
    color: #27ae60;
}

.aci-citas-message.aci-citas-warning {
    background: #fdf8f2;
    border-left-color: #f39c12;
    color: #d35400;
}

/* Autenticación */
.aci-auth-wrap {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .aci-citas-wrap {
        margin: 10px;
        padding: 15px;
    }
    
    .aci-form-section {
        padding: 15px;
    }
    
    .aci-radio-group {
        flex-direction: column;
    }
    
    .aci-radio-label {
        min-width: auto;
    }
}