/* 
 * Archivo: css/frontend.css 
 * Estilos para el formulario de citas en el frontend
 */

#ma-appointment-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#ma-appointment-form h3 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.ma-form-group {
    margin-bottom: 20px;
}

.ma-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.ma-form-group input,
.ma-form-group select,
.ma-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.ma-form-group input:focus,
.ma-form-group select:focus,
.ma-form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

.ma-form-group input:required:invalid {
    border-color: #dc3232;
}

.ma-form-group button {
    background: #007cba;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.ma-form-group button:hover {
    background: #005a87;
}

.ma-form-group button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#ma-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

#ma-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#ma-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Responsive */
@media (max-width: 768px) {
    #ma-appointment-form {
        margin: 10px;
        padding: 15px;
    }
    
    #ma-appointment-form h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* Loader para cuando se están cargando horarios */
.ma-loading {
    position: relative;
}

.ma-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: ma-spin 1s linear infinite;
}

@keyframes ma-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}