.form-container-hipoteca {
    position: relative;
    background: url("https://novafin.es/wp-content/uploads/2025/12/hipoteca-pc.webp") no-repeat center center;
    background-size: contain;
    padding: 45px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    /* max-width: 70%; */
    /* margin: 0 auto; */
    height: 90vh;
    box-sizing: border-box;
}

.form-style-hipoteca {
    width: 100%;
    max-width: 58%;
    display: flex;
    flex-direction: column;
}

.form-style-hipoteca h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    margin: 10px 0 8px 0;
    color: #000;
}

.form-style-hipoteca p {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #9A9A9A !important;
    margin-bottom: 15px;
    line-height: 1.4;
}

.input-option {
    display: flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    padding: 14px 18px;
    border-radius: 15px;
    margin-bottom: 10px;
    background: #fff;
    cursor: pointer;
    transition: .2s;
    width: 75%;
}

.input-option input {
    display: none;
}

.input-option span {
    font-family: "Montserrat", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #9A9A9A !important;
}

.input-option.selected {
    border-color: #000;
    background: #f9f9f9;
}

.input-option input:checked+span {
    color: #000 !important;
    font-weight: 400;
}

.btn-continuar {
    position: absolute;
    bottom: 14px;
    left: 54%;
    transform: translateX(-50%);
    width: 30%;
    border: none;
    background: #2f55ff;
    color: #fff;
    padding: 16px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: .2s;
}

.btn-continuar:hover {
    background: #1d3ddd;
}

.form-container-hipoteca input.input-texto,
.form-container-hipoteca input[type="text"].input-texto,
.form-container-hipoteca input[type="email"].input-texto,
.form-container-hipoteca 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;
}

.form-container-hipoteca input.input-texto::placeholder {
    color: #9A9A9A !important;
    opacity: 1 !important;
}

.form-container-hipoteca input.input-texto:focus {
    color: #4C4C4C !important;
    border-color: #000 !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: none !important;
}

.radio-morosidad {
    display: inline-flex;
    align-items: center;
    margin-right: 25px;
    margin-bottom: 15px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #9A9A9A !important;
}

.radio-morosidad input {
    margin-right: 8px;
    transform: scale(1.3);
}

.form-group-final {
    margin-bottom: 10px;
}

.form-group-final label {
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    color: #9A9A9A !important;
    margin-bottom: 6px;
    display: block;
}

.container-checkbox-form {
    margin-top: 10px;
}

.label-checkbox-form {
    font-size: 12px;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
    color: #9A9A9A !important;
    line-height: 1.4;
}

.label-checkbox-form input {
    transform: scale(1.2);
    margin-right: 8px;
}

.info-icon {
    display: inline-block;
    cursor: pointer;
    color: #9A9A9A !important;
    font-weight: 500;
    font-size: 12px;
    position: relative;
}

.popup {
    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.show {
    display: block;
}

.popup p {
    font-size: 11px;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.label-checkbox-form .group-link {
    color: #333;
    text-decoration: none;
}

.label-checkbox-form .group-link:visited {
    color: #333;
}

.label-checkbox-form .group-link:hover,
.label-checkbox-form .group-link:focus {
    text-decoration: none;
}

.plazo-container {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    padding: 2px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.btn-plazo {
    background: #2f55ff;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
}

.btn-plazo.plus,
.btn-plazo.minus {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.btn-plazo:hover {
    background: #1d3ddd;
}

.plazo-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    color: #9A9A9A !important;
}

.plazo-unidad {
    font-size: 15px;
    opacity: .7;
}

.oculto {
    display: none;
}

.bloque {
    max-width: 100%;
    flex-grow: 1;
}

.form-container-hipoteca * {
    opacity: 1 !important;
}

/* Versión móvil */
@media (max-width: 768px) {

    .elementor-element.elementor-element-bce5bde.e-flex.e-con-boxed.e-con.e-child {
        padding: 0 !important;
    }

    .form-container-hipoteca {
        background: url("https://novafin.es/wp-content/uploads/2025/12/hipoteca-mobile.webp") no-repeat top center;
        background-size: 100% 100%;
        background-position: top center;
        width: 100vw;
        max-width: 100%;
        padding: 20px 20px;
        min-height: 95vh;
        box-sizing: border-box;
    }

    .form-style-hipoteca {
        max-width: 100%;
    }

    .form-container-hipoteca p {
        width: 100%;
    }

    .input-option {
        width: 90%;
    }

    .btn-continuar {
        width: 65%;
        margin-left: 3%;
    }

    .form-style-hipoteca h2 {
        font-size: 22px;
    }

    .info-icon {
        margin-top: 0px;
    }

    .popup.show {
        width: 117%;
    }

    .label-checkbox-form {
        margin-top: 0px;
    }
}