/* ESTILOS GENERALES FORMULARIOS */
.ginput_container input[type="text"], 
.ginput_container textarea,
.ginput_container input[type="email"],
.ginput_container input[type="tel"] {
    font-family: 'Montserrat' !important;
    font-size: 13px;
    line-height: 1.5;
    width: 60% !important;
    border: none;
    border-bottom: 1px solid #262626;
    border-radius: 0 !important;
    background: #fff;
    margin-top: 10px !important;
}

.gform_footer input[type="submit"] {
    width: 250px;
    background-color: transparent !important;
    color: #262626 !important;
    border: 1.5px solid #262626 !important;
    border-radius: 0px !important;
    font-size: 14px !important;
    font-family: 'Montserrat' !important;
    text-transform: uppercase !important;
    padding: 15px 30px !important;
    text-align: center !important;
    vertical-align: middle !important;
    position: relative !important;
    z-index: 0 !important;
    transition: all .3s ease-out !important;
    margin-top: 20px;
}

.gform_footer input[type="submit"]:hover {
    background-color: var(--c-negro) !important;
    color: var(--c-blanco) !important;
}

.gform_wrapper .top_label .gfield_label {
    font-weight: normal !important;
}

.gfield_radio label, 
.gfield_checkbox label {
    z-index: 2 !important;
    line-height: 1.1em;
    max-width: calc(100% - 20px) !important;
    font-size: 14px !important;
}

textarea {
    max-height: 120px;
}


/* FORMULARIO CALCULAR PRESUPUESTO */
.gsection {
    margin-top: 30px;
}
.gsection_title {
    display: none;
}

.tipo-obra .gfield_radio,
.necesidades .gfield_checkbox,
.banos .gfield_radio,
.calidades .gfield_radio,
.entrega .gfield_radio,
.estancias .gfield_checkbox,
.estancias .gfield_radio {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.necesidades .gfield_checkbox .gchoice,
.calidades .gfield_radio .gchoice,
.estancias .gfield_checkbox .gchoice {
    width: 18% !important;
}

.entrega .gfield_radio .gchoice {
    width: 33%;
}

.otros .gfield_radio .gchoice {
    padding-top: 8px;
    margin-bottom: 6px;
}

.otros .gfield_radio .gchoice label {
    padding-top: 2px;
}

.entrega .gfield_radio .gchoice .gfield-choice-input,
.otros .gfield_radio .gchoice .gfield-choice-input {
    appearance: none;
    border-radius: 0 !important;
    color: #262626;
    border: 1px solid #262626;
    width: 20px;
    height: 20px;
    position: relative;
    margin-right: 5px;
}

.entrega .gfield_radio .gchoice .gfield-choice-input::before,
.otros .gfield_radio .gchoice .gfield-choice-input::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 0%;
    transform: scale(0);
    transition: all 0.3s ease;
    box-shadow: inset 15px 15px 15px 15px #262626;
    position: absolute;
    margin: auto;
    top: 3px;
    left: 3px;
}

.entrega .gfield_radio .gchoice .gfield-choice-input:checked::before,
.otros .gfield_radio .gchoice .gfield-choice-input:checked::before {
    transform: scale(1);
}

#input_1_48 {
    align-items: center;
}

#input_1_48 label {
    max-width: 125px !important;
    margin-left: 5px;
}

#choice_1_26_1 {
    margin-left: -10px;
}

#choice_1_26_1::before {
    left: 3px !important;
}

#field_1_77 {
    padding-top: 25px !important;
    width: 150px;
    margin-left: 54.65%;
    text-align: center;
}

#gfield_instruction_1_77 {
    display: none;
}

#field_1_77 input {
    max-width: 150px;
}

/* elección con iconos */
.tipo-obra .gfield_radio .gchoice,
.necesidades .gfield_checkbox .gchoice,
.banos .gfield_radio .gchoice, 
.calidades .gfield_radio .gchoice,
.estancias .gfield_checkbox .gchoice {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    cursor: pointer;
}

.tipo-obra .gfield_radio .gchoice label,
.necesidades .gfield_checkbox .gchoice label,
.banos .gfield_radio .gchoice label,
.calidades .gfield_radio .gchoice label,
.estancias .gfield_checkbox .gchoice label {
    text-align: center;
    z-index: 3;
    cursor: pointer;
}

.banos .gfield_radio .gchoice label {
    font-size: 18px;
}

.tipo-obra .gfield_radio .gchoice .gfield-choice-input,
.necesidades .gfield_checkbox .gchoice .gfield-choice-input,
.calidades .gfield_radio .gchoice .gfield-choice-input,
.estancias .gfield_checkbox .gchoice .gfield-choice-input {
    appearance: none;
    width: 100%;
    height: 80px;
    position: relative;
    margin-right: 0 !important;
    cursor: pointer;
}

.banos .gfield_radio .gchoice .gfield-choice-input {
    width: 10px;
    height: 10px;
    position: relative;
    margin-right: 0 !important;
    cursor: pointer;
}

.tipo-obra .gfield_radio .gchoice .gfield-choice-input::after,
.necesidades .gfield_checkbox .gchoice .gfield-choice-input::after,
.calidades .gfield_radio .gchoice .gfield-choice-input::after,
.estancias .gfield_checkbox .gchoice .gfield-choice-input::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 135px;
    left: -50%;
    right: -50%;
    bottom: -75%;
    margin: auto;
    border: 1px solid #e2e2e2 !important;
    background-color: #fff;
    background-position: center bottom;
    z-index: 2;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.banos .gfield_radio .gchoice .gfield-choice-input::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    left: -200%;
    top: -80%;
    margin: auto;
    border: 1px solid #e2e2e2 !important;
    background-color: #fff;
    background-position: center bottom;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.num-banos input {
    font-family: 'Montserrat' !important;
    font-size: 13px;
    line-height: 1.5;
    width: 100% !important;
    border: none !important;
    border-left: 2px solid #262626 !important;
    border-radius: 0 !important;
    background: #f9f9f9 !important;
    margin-top: 10px !important;
}

.tipo-obra .gfield_radio .gchoice .gfield-choice-input::before,
.necesidades .gfield_checkbox .gchoice .gfield-choice-input::before,
.calidades .gfield_radio .gchoice .gfield-choice-input::before,
.estancias .gfield_checkbox .gchoice .gfield-choice-input::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: 80px 60px !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* iconos tipo de obra */
#choice_1_17_0::before {
    background: url(/wp-content/uploads/2025/01/reforma-integral.svg);
}

#choice_1_17_1::before {
    background: url(/wp-content/uploads/2025/01/obra-nueva.svg);
}

#choice_1_17_2::before {
    background: url(/wp-content/uploads/2025/01/reforma-parcial.svg);
}

#choice_1_17_3::before {
    background: url(/wp-content/uploads/2025/01/interiorismo.svg);
}

#choice_1_17_4::before {
    background: url(/wp-content/uploads/2025/01/otros.svg);
}

/* iconos estancias */
#choice_1_57_1::before {
    background: url(/wp-content/uploads/2025/01/cocina.svg);
}

#choice_1_57_2::before {
    background: url(/wp-content/uploads/2025/01/banos.svg);
}

#choice_1_57_3::before {
    background: url(/wp-content/uploads/2025/01/ventanas.svg);
}

#choice_1_57_4::before {
    background: url(/wp-content/uploads/2025/01/interiorismo.svg);
}

/* necesidades unifamiliar */
#choice_1_85_1::before {
    background: url(/wp-content/uploads/2025/01/obra-nueva.svg);
}

#choice_1_85_2::before {
    background: url(/wp-content/uploads/2025/01/reforma-parcial.svg);
}


/* iconos calidades */
#choice_1_24_0::before,
#choice_1_61_0::before {
    background: url(/wp-content/uploads/2025/01/normales.svg);
}

#choice_1_24_1::before,
#choice_1_61_1::before {
    background: url(/wp-content/uploads/2025/01/medias.svg);
}

#choice_1_24_2::before,
#choice_1_61_2::before {
    background: url(/wp-content/uploads/2025/01/altas.svg);
}


.tipo-obra .gfield_radio .gchoice:hover .gfield-choice-input::after,
.necesidades .gfield_checkbox .gchoice:hover .gfield-choice-input::after,
.banos .gfield_radio .gchoice:hover .gfield-choice-input::after,
.calidades .gfield_radio .gchoice:hover .gfield-choice-input::after,
.estsancias .gfield_checkbox .gchoice:hover .gfield.gfield-choice-input::after {
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tipo-obra .gfield_radio .gchoice .gfield-choice-input:checked::after,
.necesidades .gfield_checkbox .gchoice .gfield-choice-input:checked::after,
.calidades .gfield_radio .gchoice .gfield-choice-input:checked::after,
.estancias .gfield_checkbox .gchoice .gfield-choice-input:checked::after {
    border: 1px solid #262626 !important;
}

.tipo-obra .gfield_radio label,
.necesidades .gfield_checkbox label,
.calidades .gfield_radio label,
.estancias .gfield_checkbox label {
    z-index: 2 !important;
    text-align: center !important;
    padding: 5px;
    position: relative !important;
    padding-top: 10px;
}

.tipo-obra .gfield_radio .gchoice .gfield-choice-input:checked ~ label::after,
.necesidades .gfield_checkbox .gchoice .gfield-choice-input:checked ~ label::after,
.calidades .gfield_radio .gchoice .gfield-choice-input:checked ~ label::after,
.estancias .gfield_checkbox .gchoice .gfield-choice-input:checked ~ label::after {
    content: "" !important;
    position: absolute !important;
    background-color: #B9B2AF !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    margin: auto !important;
    right: 0 !important;
    left: 0 !important;
    bottom: -50% !important;
    z-index: 2 !important;
}

.banos .gfield_radio .gchoice .gfield-choice-input:checked::after {
    background-color: #ededed;
    border: 1px solid #262626 !important;
}

.gform_fields .gfield {
    padding: 80px 0 0 !important;
}

/*datos contacto */
#field_1_38, #field_1_39 {
    padding-top: 40px !important;
}

#field_1_67, #field_1_81 {
    margin-top: 40px !important;
    padding-top: 0 !important;
}

#field_1_67 input, #field_1_81 input {
    margin-top: -40px;
}

/* #field_1_67 .gfield_required,
#field_1_38 .gfield_required,
#field_1_39 .gfield_required,
#field_1_81 .gfield_required,
#field_1_52 .gfield_required,*/
.gform_heading {
    display: none !important;
} 

#field_1_67 input,
#field_1_38 input,
#field_1_39 input,
#field_1_81 input {
    width: 200px !important;
}

#field_1_50 {
    padding-top: 60px !important;
}

.tit-datos p:first-child {
    font-family: 'Montserrat' !important;
    font-size: 25px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tit-datos p:last-child {
    font-size: 15px;
    margin-bottom: 0;
}

/*Títulos preguntas*/
.tits-form {
    font-family: 'Montserrat' !important;
    font-size: 20px;
}

/* estilo info legal */
.ginput_container.ginput_container_consent {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center !important;
}

.ginput_container.ginput_container_consent .gfield_consent_label {
    font-size: 0.9rem;
}

.link-contacto:hover a, label a {
    color: var(--c-secundario) !important;
    transition: all 0.35s ease;
}

.link-contacto:hover a, label a:hover {
    color: var(--c-negro) !important;
}

.gfield_description.gfield_consent_description {
    border: none !important;
    overflow-y: initial !important;
    font-size: 0.8rem;
    line-height: 1em;
}

#gform_fields_1 .gform_footer {
    margin-top: 40px !important;
    justify-content: center;
}


/*------- RESPONSIVE FORMULARIO PRESUPUESTO ------*/

@media screen and (max-width:1024px) {
    .tipo-obra .gfield_radio, 
    .necesidades .gfield_checkbox,
    .calidades .gfield_radio {
        flex-wrap: wrap;
    }

    .tipo-obra .gfield_radio .gchoice,
    .calidades .gfield_radio .gchoice {
        flex: 0 0 30%;
    }

    .necesidades .gfield_checkbox .gchoice {
        flex: 0 0 30%;
    }

    .gchoice_1_17_3, .gchoice_1_17_4,
    .gchoice_1_57_3, .gchoice_1_57_4 {
        margin-top: 25px;
    }

    .gchoice_1_57_2 {
        margin-right: 40px;
    }

    .tipo-obra .gfield_radio .gchoice .gfield-choice-input::after, 
    .necesidades .gfield_checkbox .gchoice .gfield-choice-input::after, 
    .calidades .gfield_radio .gchoice .gfield-choice-input::after,
    .tipo-obra .gfield_radio .gchoice .gfield-choice-input:checked::after, 
    .necesidades .gfield_checkbox .gchoice .gfield-choice-input:checked::after, 
    .calidades .gfield_radio .gchoice .gfield-choice-input:checked::after {
        height: 130px;
        bottom: -65%;
    }

    #field_1_77 {
        padding-top: 40px;
        margin-left: 55%;
    }
}

@media screen and (max-width: 950px) {
    #input_1_48 {
        flex-wrap: wrap;
    }

    #input_1_48>div {
        flex: 0 0 47%;
    }
}

@media screen and (max-width: 850px) {
    #field_1_67 input, #field_1_38 input, #field_1_39 input, #field_1_81 input {
        width: 170px !important;
    }

    .gform_fields .gfield {
        padding-top: 60px !important;
    }

    #field_1_50 {
        padding-top: 40px !important;
    }

    #field_1_40 {
        margin-bottom: 0 !important;
    }

    #field_1_77 {
        padding-top: 40px !important;
        margin-left: 52%;
    }
}

@media screen and (max-width:768px) {
    #field_1_67, #field_1_38, #field_1_39, #field_1_81 {
        -ms-grid-column-span: 6;
        grid-column: span 6;
    }

    #field_1_67 input, #field_1_38 input, #field_1_39 input, #field_1_81 input {
        width: 90% !important;
        min-width: 280px !important;
        margin-top: 0 !important;
    }

    #field_1_67, #field_1_39 {
        margin-left: 0px;
    }
}

@media screen and (max-width: 640px) {
    .gform_fields .gfield {
        padding: 20px 0px 0px 20px !important;
    }

    #input_1_48 label {
        max-width: unset !important;
    }

    #field_1_50 {
        padding-top: 20px !important;
    }    
    
    .tits-form, #field_1_40 {
        text-align: left;
        padding-left: 20px;
    }

    .gfield_radio, .gfield_checkbox {
        justify-content: left;
    }

    .ginput_container_text {
        text-align: left;
    }

    .gchoice_1_57_2 {
        margin-right: 40px;
    }

    .entrega .gfield_radio, .estancias .gfield_checkbox {
        flex-direction: column;
    }

    .entrega .gfield_radio .gchoice {
        width: 100%;
    }

    .gchoice_1_26_1 {
        margin-left: 10px;
    }

    #field_1_77 {
        padding-top: 40px !important;
        margin-left: 0;
        text-align: left;
    }

    #field_1_77 input {
        width: 370px !important;
        max-width: 400px;
    }
}

@media screen and (max-width: 600px) {
    #field_1_40 {
        margin-bottom: 20px !important;
    }

    #field_1_67, #field_1_38, #field_1_39, #field_1_81 {
        grid-column: 1/-1;
        width: 90%;
        margin: 10px 0 0 20px !important;
        padding: 0 !important;
    }

    #input_1_67_3_container {
        margin-bottom: 0 !important;
    }

    #field_1_67 input, #field_1_38 input, #field_1_39 input, #field_1_81 input {
        width: 100% !important;
        max-width: 100% !important;
    }

    #field_1_67, #field_1_39 {
        margin-left: auto;
    }

    #input_1_50 {
        width: 90% !important;
        max-width: 90% !important;
    }
}

@media screen and (max-width: 530px) {
    .tipo-obra .gfield_radio .gchoice, 
    .estancias .gfield_radio .gchoice, 
    .calidades .gfield_radio .gchoice, 
    .estancias .gfield_checkbox .gchoice,
    .necesidades .gfield_checkbox .gchoice {
        flex: 0 0 45%;
    }

    .gchoice_1_17_2, .gchoice_1_17_3, .gchoice_1_17_4,
    .gchoice_1_57_3, .gchoice_1_57_4,
    .gchoice_1_61_2,
    .gchoice_1_24_2 {
        margin-top: 25px;
    }

    .gchoice_1_57_1 {
        margin-left: 0px;
    }

    .gchoice_1_57_2 {
        margin-right: 0px;
    }

    #field_1_77 {
        width: 100%;
    }

    #field_1_77 input {
        width: 95% !important;
        max-width: 400px;
    }
}

@media screen and (max-width: 425px) {
    .tipo-obra .gfield_radio .gchoice .gfield-choice-input::after, 
    .necesidades .gfield_checkbox .gchoice .gfield-choice-input::after, 
    .calidades .gfield_radio .gchoice .gfield-choice-input::after, 
    .tipo-obra .gfield_radio .gchoice .gfield-choice-input:checked::after, 
    .necesidades .gfield_checkbox .gchoice .gfield-choice-input:checked::after, 
    .calidades .gfield_radio .gchoice .gfield-choice-input:checked::after {
        height: 140px;
        bottom: -72%;
    }

    .gform_fields .gfield {
        padding: 10px 0px 0px 10px !important;
    }

    #field_1_67, #field_1_38, #field_1_39, #field_1_81 {
        margin: 10px 0 0 10px !important;
    }
}

@media screen and (max-width: 360px) {
    .tipo-obra .gfield_radio .gchoice label, 
    .necesidades .gfield_checkbox .gchoice label, 
    .calidades .gfield_radio .gchoice label, 
    .estancias .gfield_checkbox .gchoice label {
        font-size: 12px !important;
    }

    .tipo-obra .gfield_radio .gchoice .gfield-choice-input:checked ~ label::after, 
    .necesidades .gfield_checkbox .gchoice .gfield-choice-input:checked ~ label::after, 
    .calidades .gfield_radio .gchoice .gfield-choice-input:checked ~ label::after, 
    .estancias .gfield_checkbox .gchoice .gfield-choice-input:checked ~ label::after {
        bottom: -65% !important;
    }
}

/* FORMULARIO DE CONTACTO */
#gform_fields_2 input[type="text"], 
#gform_fields_2 input[type="email"],
#gform_fields_2 input[type="tel"],
#gform_fields_2 textarea {
    font-family: 'Montserrat' !important;
    font-size: 13px;
    line-height: 1.5;
    width: 100% !important;
    border: none;
    border-left: 2px solid var(--c-negro);
    border-radius: 0 !important;
    background: var(--c-grisclaro);
	margin-top: 10px !important;
}

#gform_fields_3 input[type="text"], 
#gform_fields_3 input[type="email"],
#gform_fields_3 input[type="tel"],
#gform_fields_3 textarea {
    font-family: 'Montserrat' !important;
    font-size: 15px;
    line-height: 1.5;
    width: 100% !important;
    border: none;
    border-left: 2px solid var(--c-negro);
    border-radius: 0 !important;
    background: var(--c-grisclaro);
	margin-top: 10px !important;
    color: var(--c-negro);
}

#gform_fields_3 textarea {
    max-height: 70px;
}

#gform_fields_2 .gfield {
    padding: 5px 0 !important;
}

#gform_fields_2 .gfield_required_text,
#gform_fields_3 .gfield_required_text {
    font-style: normal;
    color: var(--c-secundario);
}

#gform_fields_2 fieldset#field_2_8 .gfield_required_text,
#gform_fields_3 fieldset#field_3_6 .gfield_required_text {
    display: none;
}

#gform_3 .gform_wrapper.gravity-theme .gform_footer, .gform_wrapper.gravity-theme .gform_page_footer,
#gform_fields_3 .gfield {
    padding: 0 !important;
}

#gform_3 input[type="submit"] {
    background-color: var(--c-negro) !important;
    color: var(--c-blanco) !important;
}

#gform_3 input[type="submit"]:hover {
    background-color: var(--c-blanco) !important;
    color: var(--c-negro) !important;
}

#gform_2 .gform_footer {
    margin-top: 0px !important;
    padding: 0;
}