.form-container-prestamo {
    display: flex;
    justify-content: center;
    background: #fff;
}

.form-style-prestamo {
    position: relative;
    width: 830px;
    height: 720px;
    padding: 80px 90px;
    background: url("https://novafin.es/wp-content/uploads/2025/12/hipoteca-pc.webp") no-repeat center;
    background-size: contain;
    border-radius: 24px;
    box-sizing: border-box;
}

.form-style-prestamo h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    color: #000;
}

.form-style-prestamo p {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 12px;
    color: #9A9A9A !important;
    margin-bottom: 15px;
    line-height: 1.4;
}

.radio-morosidad-prestamo {
    display: inline-flex;
    align-items: center;
    margin-right: 25px;
    margin-bottom: 15px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    color: #9A9A9A !important;
}

.radio-morosidad-prestamo input {
    margin-right: 8px;
    transform: scale(1.3);
}

.plazo-container-prestamo {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    padding: 2px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.plazo-display-prestamo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    color: #9A9A9A !important;
}

.usos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 40px auto 0;
    box-sizing: border-box;
}

.uso-btn {
    width: 100%;
    height: 84px;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fff !important;
    border: 1px solid #e3e6f0 !important;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.uso-btn:hover {
    border-color: #3b5bfd !important;
    box-shadow: 0 4px 12px rgba(59, 91, 253, 0.15) !important;
}

.uso-btn span:last-child {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0b1b3f !important;
    line-height: 1.2;
    white-space: normal;
}

.uso-btn .icono {
    flex-shrink: 0;
}

/* Iconos (placeholder) */
.icono {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.icono-azul {
    background: #4a6cf7;
    color: #fff;
}

.icono-verde {
    background: #c9f24d;
    color: #0b1b3f;
}

.btn-plazo-prestamo {
    background: #2f55ff;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-plazo-prestamo:hover {
    background: #1d3ddd;
}

.btn-continuar-prestamo {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    border: none;
    background: #2f55ff;
    color: #fff;
    padding: 16px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: .2s;
}

.btn-continuar-prestamo:hover {
    background: #1d3ddd;
}

.paso-formulario-prestamo {
    display: none;
}

.btn-plazo-prestamo.minus,
.btn-plazo-prestamo.plus {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.paso-formulario-prestamo.activo {
    display: block;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 3%;
    box-sizing: border-box;
}

.form-group-final-prestamo {
    margin-bottom: 20px;
    width: 100%;
}

.form-group-final-prestamo label {
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #9A9A9A !important;
    margin-bottom: 6px;
    display: block;
}

.container-checkbox-form-prestamo {
    margin-top: 10px;
}

.label-checkbox-form-prestamo {
    font-size: 12px;
    font-family: "Montserrat", sans-serif;
    color: #9A9A9A !important;
    line-height: 1.4;
    font-weight: 500 !important;
    margin-bottom: 20px;
}

.label-checkbox-form-prestamo input {
    transform: scale(1.2);
    margin-right: 8px;
}

.form-container-prestamo input.input-texto,
.form-container-prestamo input[type="text"].input-texto,
.form-container-prestamo input[type="email"].input-texto,
.form-container-prestamo input[type="tel"].input-texto {
    padding: 8px 18px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 15px !important;
    background: #fff !important;
    font-family: "Montserrat", system-ui, sans-serif !important;
    font-size: 16px !important;
    color: #9A9A9A !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
}

.info-icon-prestamo {
    display: inline-block;
    cursor: pointer;
    font-family: "Montserrat", system-ui, sans-serif !important;
    color: #9A9A9A !important;
    font-weight: 500;
    font-size: 12px;
    position: relative;
    margin-bottom: 3%;
}

.popup-prestamo {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    width: 480px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

.popup-prestamo.show {
    display: block;
}

.popup-prestamo p {
    font-size: 11px;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.checkBox-group-final-prestamo {
    margin-top: 5%;
}

.checkBox-group-final-prestamo .group-link {
    color: black;
    text-decoration: none;
}

.checkBox-group-final-prestamo .group-link:visited {
    color: black !important;
}

.usos-grid,
.uso-btn {
    min-width: 0;
}

@media (max-width: 1024px) {

    /* Quitamos paddings de Elementor */
    .elementor-element-c982c81 {
        padding: 0 !important;
    }

    .form-container-prestamo {
        display: flex;
        justify-content: center;
        background: #fff;
    }

    /* MISMA estructura que PC, pero móvil */
    .form-style-prestamo {
        max-width: 390px;
        height: 717px;
        padding: 55px 6px 140px;
        background: url("https://novafin.es/wp-content/uploads/2025/12/hipoteca-mobile.webp") no-repeat top center;
        background-size: contain;
        border-radius: 24px;
        box-sizing: border-box;
    }

    .paso-formulario-prestamo.activo {
        max-width: 95%;
    }

    .form-group-final-prestamo {
        margin-bottom: 10px;
    }

    /* Grid */
    .usos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
        margin-top: 16px;
    }

    /* Botones */
    .uso-btn {
        height: auto;
        min-height: 64px;
        padding: 10px;
        gap: 8px;
        border-radius: 10px;
    }

    .uso-btn span:last-child {
        font-size: 13px;
    }

    /* Botón Otro */
    .uso-btn:last-child {
        grid-column: 1 / -1;
        width: 50%;
        margin: 0 auto;
        justify-content: center;
    }

    .label-checkbox-form-prestamo {
        margin-bottom: 5px;
    }

    .popup-prestamo {
        width: 329px;
    }

    /* Botón continuar */
    .btn-continuar-prestamo {
        width: 70%;
        left: 58%;
        transform: translateX(-50%);
        bottom: 25px;
    }
}

@media (max-width: 480px) {
    .uso-btn {
        height: auto;
        min-height: 56px;
        padding: 8px;
    }

    .icono {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .uso-btn span:last-child {
        font-size: 11px;
        line-height: 1.1;
    }
}