/**
 * CE Quote Request - Estilos del Modal (Sidebar Style)
 */

/* Modal overlay */
.ce-quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.ce-quote-modal.show {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 1;
    pointer-events: auto;
}

.ce-quote-modal.closing {
    background-color: rgba(0, 0, 0, 0);
    opacity: 0;
}

/* Contenedor del modal - Panel lateral */
.ce-quote-modal-content {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 500px;
    max-width: 90vw;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ce-quote-modal.show .ce-quote-modal-content {
    transform: translateX(0);
}

.ce-quote-modal.closing .ce-quote-modal-content {
    transform: translateX(100%);
}

/* Header del modal */
.ce-quote-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.ce-quote-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ce-quote-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.ce-quote-modal-close:hover {
    color: #000;
}

/* Body del modal */
.ce-quote-modal-body {
    padding: 24px;
}

.ce-quote-modal-body h3 {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: #555;
}

.ce-quote-modal-body h3:not(:first-child) {
    margin-top: 24px;
}

/* Grupos de formulario */
.ce-form-group {
    margin-bottom: 16px;
}

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

.ce-form-group label .required {
    color: #dc3545;
}

.ce-form-group input[type="text"],
.ce-form-group input[type="email"],
.ce-form-group input[type="tel"],
.ce-form-group input[type="number"],
.ce-form-group select,
.ce-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.ce-form-group input:focus,
.ce-form-group select:focus,
.ce-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.ce-form-group input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.ce-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checkboxes */
.ce-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ce-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.ce-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
    cursor: pointer;
}

/* Botón submit */
.ce-quote-submit-btn {
    width: 100%;
    padding: 12px 24px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 8px;
}

.ce-quote-submit-btn:hover:not(:disabled) {
    background-color: #218838;
}

.ce-quote-submit-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    .ce-quote-modal-content {
        width: 100%;
        max-width: 100vw;
    }
    
    .ce-quote-modal-header {
        padding: 16px 20px;
    }
    
    .ce-quote-modal-header h2 {
        font-size: 16px;
    }
    
    .ce-quote-modal-body {
        padding: 20px;
    }
}

/* Scrollbar personalizada para el panel */
.ce-quote-modal-content::-webkit-scrollbar {
    width: 8px;
}

.ce-quote-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ce-quote-modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.ce-quote-modal-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
