
/* =========================================================
   LT & SOLUTIONS PRO
   COTIZADOR INTELIGENTE
   Archivo: css/cotizador.css

   Estilos exclusivos del cotizador.
   Diseño responsive para PC, tablets y celulares.
========================================================= */


/* =========================================================
   1. VENTANA Y FONDO DEL COTIZADOR
========================================================= */

.quote-wizard-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(7px);

    overflow-y: auto;
}

/* Ocultar la ventana cuando no esté abierta. */
.quote-wizard-overlay[hidden] {
    display: none;
}


/* =========================================================
   2. CONTENEDOR PRINCIPAL
========================================================= */

.quote-wizard-container {
    position: relative;

    width: 100%;
    max-width: 650px;
    max-height: calc(100vh - 48px);

    display: flex;
    flex-direction: column;

    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);

    font-family: 'Montserrat', sans-serif;
}


/* =========================================================
   3. ENCABEZADO
========================================================= */

.quote-wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 28px;

    background: linear-gradient(
        120deg,
        #0F172A,
        #123C9A
    );

    border-bottom: 3px solid #F59E0B;
}

.quote-wizard-brand {
    display: flex;
    flex-direction: column;
    gap: 5px;

    color: #FFFFFF;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.quote-wizard-tag {
    color: #FBBF24;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* Botón de cierre. */
.quote-wizard-close {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.10);
    color: #FFFFFF;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;
    transition: all 0.25s ease;
}

.quote-wizard-close:hover {
    background: #F59E0B;
    color: #0F172A;
    transform: rotate(90deg);
}


/* =========================================================
   4. CONTENIDO
========================================================= */

.quote-wizard-content {
    padding: 32px 36px;
    overflow-y: auto;
}

.quote-wizard-content h2 {
    margin: 0 0 10px;

    color: #0F172A;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
}

.quote-wizard-description {
    margin: 0;

    color: #64748B;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   5. INDICADOR DE PROGRESO
========================================================= */

.quote-wizard-progress {
    margin: 28px 0 30px;
}

.quote-wizard-progress-bar {
    width: 100%;
    height: 6px;

    background: #E2E8F0;
    border-radius: 20px;
    overflow: hidden;
}

.quote-wizard-progress-bar span {
    display: block;

    width: 33.333%;
    height: 100%;

    background: linear-gradient(
        90deg,
        #1652F0,
        #F59E0B
    );

    border-radius: 20px;
    transition: width 0.3s ease;
}

.quote-wizard-step-label {
    margin-top: 9px;

    display: flex;
    justify-content: flex-end;

    color: #64748B;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   6. PASOS DEL FORMULARIO
========================================================= */

.quote-wizard-step h3 {
    margin: 0 0 8px;

    color: #0F172A;
    font-size: 18px;
    font-weight: 800;
}

.quote-wizard-step > p {
    margin: 0 0 24px;

    color: #64748B;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   7. CAMPOS DEL FORMULARIO
========================================================= */

.quote-field {
    display: flex;
    flex-direction: column;
    gap: 9px;

    margin-bottom: 22px;
}

.quote-field label {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.quote-field input {
    width: 100%;
    min-height: 48px;

    padding: 0 14px;

    border: 1px solid #CBD5E1;
    border-radius: 9px;

    background: #FFFFFF;
    color: #0F172A;

    font-family: inherit;
    font-size: 13px;

    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-field input:focus {
    border-color: #1652F0;
    box-shadow: 0 0 0 3px rgba(22, 82, 240, 0.10);
}

.quote-field input[readonly] {
    background: #F1F5F9;
    color: #64748B;
    cursor: not-allowed;
}

.quote-field small {
    color: #64748B;
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   8. CAMPO DE RUC Y BOTÓN DE VALIDACIÓN
========================================================= */

.quote-ruc-input-group {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.quote-ruc-input-group input {
    flex: 1;
    min-width: 0;
}

.quote-ruc-input-group button {
    min-width: 125px;
    padding: 0 16px;

    border: none;
    border-radius: 9px;

    background: #1652F0;
    color: #FFFFFF;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
    transition: background 0.2s ease;
}

.quote-ruc-input-group button:hover {
    background: #0F3EB5;
}


/* =========================================================
   9. PIE DE LA VENTANA
========================================================= */

.quote-wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;

    padding: 17px 28px;

    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;

    color: #64748B;
    font-size: 10px;
    font-weight: 600;
}


/* =========================================================
   10. TABLETS
========================================================= */

@media (max-width: 768px) {

    .quote-wizard-overlay {
        padding: 16px;
    }

    .quote-wizard-container {
        max-height: calc(100vh - 32px);
    }

    .quote-wizard-content {
        padding: 27px 24px;
    }

    .quote-wizard-content h2 {
        font-size: 22px;
    }

}


/* =========================================================
   11. CELULARES
========================================================= */

@media (max-width: 480px) {

    .quote-wizard-overlay {
        align-items: flex-start;
        padding: 10px;
    }

    .quote-wizard-container {
        max-height: calc(100vh - 20px);
        border-radius: 15px;
    }

    .quote-wizard-header {
        padding: 17px 18px;
    }

    .quote-wizard-brand {
        font-size: 13px;
    }

    .quote-wizard-content {
        padding: 24px 18px;
    }

    .quote-wizard-content h2 {
        font-size: 20px;
    }

    .quote-ruc-input-group {
        flex-direction: column;
    }

    .quote-ruc-input-group button {
        min-height: 46px;
        width: 100%;
    }

    .quote-wizard-footer {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

}


/* =========================================================
   12. CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 360px) {

    .quote-wizard-content {
        padding: 20px 14px;
    }

    .quote-wizard-content h2 {
        font-size: 18px;
    }

    .quote-wizard-header {
        padding: 15px;
    }

}


/* =========================================================
   13. SELECTORES DEL COTIZADOR
========================================================= */

.quote-field select {
    width: 100%;
    min-height: 48px;

    padding: 0 14px;

    border: 1px solid #CBD5E1;
    border-radius: 9px;

    background: #FFFFFF;
    color: #0F172A;

    font-family: inherit;
    font-size: 13px;

    outline: none;
    cursor: pointer;

    transition: border-color 0.2s, box-shadow 0.2s;
}

.quote-field select:focus {
    border-color: #1652F0;
    box-shadow: 0 0 0 3px rgba(22, 82, 240, 0.10);
}

.quote-field select:disabled {
    background: #F1F5F9;
    color: #94A3B8;
    cursor: not-allowed;
}


/* =========================================================
   14. BOTONES DE NAVEGACIÓN ENTRE PASOS
========================================================= */

.quote-wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.quote-navigation-next,
.quote-navigation-back {
    min-height: 46px;
    padding: 0 24px;

    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
    transition: all 0.2s ease;
}

.quote-navigation-next {
    margin-left: auto;
    border: none;
    background: #1652F0;
    color: #FFFFFF;
}

.quote-navigation-next:hover:not(:disabled) {
    background: #0F3EB5;
}

.quote-navigation-next:disabled {
    background: #CBD5E1;
    color: #64748B;
    cursor: not-allowed;
}

.quote-navigation-back {
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
}

.quote-navigation-back:hover {
    background: #F1F5F9;
}

/* Adaptación para celulares. */
@media (max-width: 480px) {
    .quote-wizard-navigation {
        gap: 8px;
    }

    .quote-navigation-next,
    .quote-navigation-back {
        flex: 1;
        padding: 0 12px;
    }
}
