/* Estilos Minimalistas para SukyMoto Créditos */
.sukymoto-creditos-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.sukymoto-creditos-form h2 {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 400;
}

/* Botón de regresar */
.top-buttons {
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #e5e5e5;
    border-color: #ccc;
}

/* Formulario */
#sukymoto-creditos-form {
    background: white;
}

/* Secciones */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 400;
}

/* Layout de formulario */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

/* Campos de entrada */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: white;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 1px #007cba;
}

/* Campos de moneda */
.sfm-currency-input {
    font-family: monospace;
}

.readonly-field {
    background-color: #f9f9f9;
    color: #666;
    cursor: not-allowed;
}

/* Botón de envío */
.form-buttons {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

#submit-form {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#submit-form:hover:not(:disabled) {
    background: #006ba1;
}

#submit-form:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mensajes */
#form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

#form-message.success {
    background-color: #edf7ed;
    color: #1e4620;
    border: 1px solid #c5e1a5;
}

#form-message.error {
    background-color: #fdeaea;
    color: #5f2120;
    border: 1px solid #f8c9c9;
}

/* Notas informativas */
.info-note {
    background: #f0f7ff;
    border-left: 3px solid #007cba;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
}

.info-note p {
    margin: 0;
    color: #333;
    font-size: 14px;
}

/* Autocompletado */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.ui-menu-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.ui-menu-item:last-child {
    border-bottom: none;
}

.ui-menu-item:hover,
.ui-menu-item.ui-state-focus {
    background: #f0f7ff;
    color: #007cba;
}

/* Campos obligatorios */
input:required, select:required {
    border-left: 3px solid #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .sukymoto-creditos-form {
        padding: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-section {
        padding: 0;
    }
    
    #submit-form {
        width: 100%;
        padding: 12px;
    }
}

/* Campos con valores destacados */
#sfm-porcentaje-descuento {
    color: #007cba;
    font-weight: 500;
}

/* Highlight en hover para campos editables */
.sfm-editable:not(.readonly-field):hover {
    border-color: #bbb;
}