
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Avenir Next', sans-serif !important;
    background-color: #6A4B4F;
}

/* Fuentes Personalizadas */
@font-face {
    font-family: 'Lt Aspire';
    src: url('../fuentes/LTAspirerNeue-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Lt Aspire';
    src: url('../fuentes/LTAspirerNeue-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Lt Aspire';
    src: url('../fuentes/LTAspirerNeue-Extrablack.otf') format('opentype');
    font-weight: bolder;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir Next';
    src: url('../fuentes/AvenirNextLTPro-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir Next';
    src: url('../fuentes/AvenirNextLTPro-It.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Avenir Next';
    src: url('../fuentes/AvenirNextLTPro-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lt Aspire', sans-serif;
}

h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Contenedor del Formulario */
.form-wrapper {
    max-width: 1400px;
}

form {
    background: linear-gradient(145deg, #1f2023 0%, #17181b 100%);
    padding: 50px 60px;
    margin: 40px auto;
    width: 100%;
    max-width: 1400px;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    box-sizing: border-box;
}

form label {
    font-weight: bold;
    color: white;
    display: block;
    margin-top: 25px;
}


form input[type="text"],
form input[type="number"],
form input[type="email"],
form select {
    width: 100%;       
    box-sizing: border-box;
    padding: 14px 12px;
    margin-top: 8px;
    margin-bottom: 20px;
    border: none;
    border-bottom: 2px solid white;
    background-color: transparent;
    color: white;
    outline: none;
    font-family: 'Avenir Next', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

form input[type="text"] {
    width: 100%; 
}


form input::placeholder {
    color: #bbb;
}

/* Opciones del Select */
option {
    background-color: #1F2023;
    color: white;
}

/* ==========================================================================
   ESTILOS DE LA BARRA DE PROGRESO
   ========================================================================== */

.progress-track {
    width: 100%;
    height: 12px;
    /* Un fondo oscuro que se hunde perfectamente en la caja #1F2023 del formulario */
    background: rgba(0, 0, 0, 0.4); 
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-track .progress-bar {
    height: 100%;
    width: 0%;
    /* DEGRADADO ELEGANTE: Nace en un ciruela muy oscuro (identidad de tu marca), 
       pasa por tu tono de fondo de pantalla (#6A4B4F) y estalla en el azul de tus botones (#0782fa) */
    background: linear-gradient(90deg, #2A1A1C 0%, #6A4B4F 50%, #826a6e 100%);
    border-radius: inherit;
    transition: width 0.4s ease;
    /* Destello neón en azul, haciendo juego perfecto con tus botones de envío */
    box-shadow: 0 0 14px rgba(7, 130, 250, 0.45); 
    position: relative;
}

.progress-track .progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Brillo blanco puro y limpio que barre la barra de forma sofisticada */
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.25) 50%, 
        rgba(255, 255, 255, 0) 100-percent /* Escrito en texto para evitar conflictos XML */
    );
    transform: translateX(-100%);
    animation: progressShine 2s infinite ease-in-out;
}

@keyframes progressShine {
    100% { transform: translateX(100%); }
}

/* ========================================================================== */

/* Botón de Envío / Simulación */
form input[type="submit"],
form button[type="submit"] {
    background-color: #6A4B4F;
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 0;
    width: auto;
    min-width: 180px;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
    transition: all 0.3s ease-in-out;
    font-family: 'Lt Aspire', sans-serif;
    font-weight: bold;
}

#btnSubmit,
form button[type="submit"].btn.btn-success {
    max-width: 240px;
    padding: 14px 18px;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

form input[type="submit"]:hover,
form button[type="submit"]:hover {
    background-color: #352425;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px); /* Efecto leve de elevación */
}

#btnNext {
     background-color: #6A4B4F;
}


/* Mensajes de Error de Validación */
.errorform {
    color: #ff4d4d;
    font-size: 0.9em;
    margin-top: -15px;
    margin-bottom: 20px;
    display: block;
}


  .step-content { display: none; }
        .step-content.active { display: block; animation: fadeIn 0.4s ease-out; }
        .preapproval-steps { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
        .step { opacity: 0.7; transition: all 0.3s ease; padding: 0.65rem 0.95rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #f3f3f3; border: 1px solid rgba(255,255,255,0.08); font-weight: 600; text-align: center; min-width: 95px; }
        .step.active { opacity: 1; background: linear-gradient(135deg, #6A4B4F, #c79a67); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
        @keyframes fadeIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1024px) {
    .form-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
    }

    form {
        padding: 34px 22px;
        margin: 20px auto;
        max-width: 100%;
        box-sizing: border-box;
    }

    .preapproval-steps {
        justify-content: center;
        gap: 0.55rem;
        padding: 0;
        margin-bottom: 1.25rem;
    }

    .preapproval-steps .step {
        flex: 1 1 calc(50% - 0.55rem);
        min-width: 0;
        padding: 0.55rem 0.75rem;
        font-size: 0.95rem;
    }

    .d-flex.gap-2 {
        flex-direction: column;
        align-items: stretch;
    }

    .d-flex.gap-2 button,
    form input[type="submit"],
    form button[type="submit"] {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .preapproval-steps .step {
        flex: 1 1 calc(50% - 0.45rem);
        min-width: 0;
    }

    .preapproval-steps {
        gap: 0.45rem;
    }

    form {
        padding: 28px 18px;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .form-wrapper {
        padding: 0 8px;
    }

    form {
        padding: 20px 14px;
        margin: 16px auto;
    }

    .preapproval-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
    }

    .preapproval-steps .step {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        padding: 0.55rem 0.65rem;
        font-size: 0.86rem;
    }

    .progress-track {
        margin-bottom: 16px;
    }

    form input[type="text"],
    form input[type="number"],
    form input[type="email"],
    form select {
        padding: 12px 10px;
    }
}

