/* ==========================================================================
   ADELS Automation - Estilos del Sistema de Cotización y Modal B2B
   ========================================================================== */

/* Caja contenedora en la ficha de producto */
.adels-quote-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0056b3;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.adels-notice {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.adels-user-welcome {
    font-size: 14px;
    color: #0056b3;
    margin-bottom: 10px;
}

/* Botón principal de cotización */
.adels-btn-quote {
    display: inline-block;
    width: 100%;
    background-color: #0056b3 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 20px !important;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.adels-btn-quote:hover {
    background-color: #003d80 !important;
}

/* Modal Overlay (Fondo oscuro) */
#adels-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#adels-modal-overlay.adels-modal-visible {
    opacity: 1;
    visibility: visible;
}

/* Contenido del Modal */
.adels-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.adels-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.adels-modal-close:hover {
    color: #000;
}

.adels-modal-content h2 {
    margin-top: 0;
    font-size: 22px;
    color: #111;
}

.adels-modal-subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Filas y Campos del Formulario */
.adels-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.adels-field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.adels-field-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.adels-field-group input,
.adels-field-group select,
.adels-field-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.adels-field-group input:focus,
.adels-field-group select:focus,
.adels-field-group textarea:focus {
    border-color: #0056b3;
    outline: none;
}

/* Botón de envío */
.adels-submit-btn {
    width: 100%;
    background-color: #28a745 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: bold !important;
    padding: 12px !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.adels-submit-btn:hover {
    background-color: #218838 !important;
}

/* Respuestas AJAX (Mensajes) */
#adels-form-response {
    margin-top: 15px;
    font-size: 14px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#adels-form-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#adels-form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Adaptación Mobile */
@media (max-width: 600px) {
    .adels-form-row {
        flex-direction: column;
        gap: 0;
    }
}