.form-container {
    position: absolute;
    background: url("https://novafin.es/wp-content/uploads/2025/09/Form_wrapper.png") no-repeat center center;
    background-size: contain;
    padding: 85px;
    border-radius: 0;
    color: #fff;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-style {
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
}

.form-row {
    display: flex;
    gap: 24px;
}

/* Inputs en fila: Teléfono, Correo, Selects */
.form-row .form-group input,
.form-row .form-group select {
    width: 230px;
    max-width: 230px;
    padding: 12px 15px;
    border-radius: 25px;
    border: none;
    font-size: 15px;
    height: 56px;
    color: grey;
}

#nombre {
    max-width: 300px !important;
    width: 100% !important;
    height: 56px !important;
    display: flex;
    border-radius: 25px !important;
    font-size: 15px !important;
}

label {
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 10px;
    display: block;
    margin-bottom: 8px;
    color: #fff !important;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    max-width: 180px;
    padding: 12px 15px;
    border-radius: 25px;
    border: none;
    font-size: 12px;
    color: grey;
}

input[type="checkbox"] {
    width: auto;
    padding: 0;
    margin: 0;
}

.legal {
    margin: 20px 0;
}

.legal p {
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: 18px;
    margin-bottom: 10px;
}

.legal label {
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
    color: #fff !important;
}

.info-icon-con_hipotecas {
    display: inline-block;
    cursor: pointer;
    color: #fff;
    font-weight: lighter;
    margin-top: 15px;
    font-size: 11px;
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    position: relative;
}

.popup-con_hipotecas {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    width: 350px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 5px;
    font-size: 10px;
    color: #333;
}

.popup-con_hipotecas p {
    font-size: 11px;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

.popup-con_hipotecas.show {
    display: block;
}

.container-checkbox-form {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin-top: 10px;
    margin-bottom: 5px;
    margin-left: 0%;

    input {
        margin-right: 2%;
        margin-bottom: 2%;
    }
}

.label-checkbox-form-con-hipotecas {
    font-size: 12px;
    font-family: "Montserrat", system-ui, -apple-system, sans-serif;
    font-weight: 300;
    color: #fff;
    vertical-align: middle;
    cursor: pointer;
    display: inline-block;
}

.btn-enviar {
    background: #fff !important;
    color: #3B6FFF !important;
    padding: 18px 80px;
    border-radius: 30px;
    border: none !important;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700 !important;
    font-size: 18px;
    cursor: pointer;
    display: inline-block;
    min-width: 180px !important;
    margin-top: 30px;
}

.label-checkbox-form-con-hipotecas .group-link {
    color: #C8F55A;
    text-decoration: none;
}

.label-checkbox-form-con-hipotecas .group-link:visited {
    color: #C8F55A !important;
}

.label-checkbox-form-con-hipotecas .group-link:hover,
.label-checkbox-form-con-hipotecas .group-link:focus {
    text-decoration: none;
}

/* Versión móvil */
@media (max-width: 768px) {
    .form-container {
        background: url("https://novafin.es/wp-content/uploads/2025/09/Form_wrapper_mobile.png") no-repeat top center;
        background-size: 100% 100%;
        background-position: top center;
        width: 88vw;
        padding: 120px 20px 40px;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .form-group label {
        font-size: 13px;
    }

    .label-checkbox-form-con-hipotecas {
        font-size: 14px;
        margin-top: 13px;
        line-height: 1.4;
    }

    .form-style {
        max-width: 90%;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-row .form-group input,
    .form-row .form-group select {
        width: 100%;
        max-width: none;
        height: 55px;
        font-size: 14px;
    }

    /* Opciones dentro del select (desplegable) */
    .form-row .form-group select option {
        font-size: 14px;
    }

    /* Placeholder "Selecciona..." */
    .form-row .form-group select option[value=""] {
        font-size: 12px;
        color: #999;
    }

    .container-checkbox-form {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    .info-icon-con_hipotecas {
        font-size: 14px;
        margin-top: 20px;
    }

    .popup-con_hipotecas {
        width: 300px;
    }

    .btn-enviar {
        display: block !important;
        margin-left: 30% !important;
        margin-right: auto !important;
        text-align: center !important;
        width: 60% !important;
    }
}