/* =========================================================
   Total Rent · Pregunta de propietario integrada en formulario
   16/09/2026
   - Sin popup / sin overlay
   - La pregunta forma parte del flujo normal del formulario
   - Válido para Quiero alquilar y Quiero vender
   ========================================================= */

.totalrent-form.tr-owner-gated .totalrent-form-fields-wrapper{
  position:static!important;
  min-height:0!important;
}

/* Todos los grupos permanecen en el flujo normal del formulario. */
.totalrent-form.tr-owner-gated .totalrent-form-fields-wrapper > .totalrent-field-group{
  position:static!important;
  transform:none!important;
}

/* Bloque ¿Eres propietario? */
.totalrent-form.tr-owner-gated .totalrent-field-group-perfil{
  position:static!important;
  inset:auto!important;
  z-index:auto!important;
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0 0 18px!important;
  padding:0!important;
  transform:none!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  opacity:1!important;
  filter:none!important;
  pointer-events:auto!important;
}

.totalrent-form.tr-owner-gated .tr-owner-question{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.totalrent-form.tr-owner-gated .tr-owner-question__advice{
  display:block!important;
  margin:0 0 16px!important;
  padding:0!important;
  text-align:left!important;
}

.totalrent-form.tr-owner-gated .tr-owner-question__advice-title{
  display:block!important;
  margin:0!important;
  color:#00a6e3!important;
  font-family:"MaisonNeue",Arial,sans-serif!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.25!important;
  text-align:left!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

/* En el diseño de referencia solo se muestra el titular. */
.totalrent-form.tr-owner-gated .tr-owner-question__advice-text,
.totalrent-form.tr-owner-gated .tr-owner-question__kicker{
  display:none!important;
}

.totalrent-form.tr-owner-gated .tr-owner-question__title{
  margin:0 0 10px!important;
  padding:0!important;
  color:#241b2b!important;
  font-family:"MaisonNeue",Arial,sans-serif!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.3!important;
  text-align:left!important;
}

.totalrent-form.tr-owner-gated .tr-owner-question__buttons{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  width:100%!important;
  margin:0!important;
}

.totalrent-form.tr-owner-gated .tr-owner-choice{
  appearance:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:48px!important;
  margin:0!important;
  padding:0 16px!important;
  border:1px solid #d8e3e8!important;
  border-radius:12px!important;
  background:#f2eef0!important;
  color:#241b2b!important;
  box-shadow:none!important;
  font-family:"MaisonNeue",Arial,sans-serif!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1!important;
  cursor:pointer!important;
  transition:border-color .18s ease,background .18s ease,color .18s ease!important;
}

.totalrent-form.tr-owner-gated .tr-owner-choice:hover{
  border-color:#a9ddee!important;
  background:#f4fbfe!important;
  color:#008fc5!important;
}

.totalrent-form.tr-owner-gated .tr-owner-choice.is-active,
.totalrent-form.tr-owner-gated .tr-owner-choice[aria-pressed="true"]{
  border-color:#00a6e3!important;
  background:#00a6e3!important;
  color:#fff!important;
}

/* Antes de elegir Sí, los campos siguen visibles en su posición normal,
   pero permanecen bloqueados. No se oscurece ni se superpone nada. */
.totalrent-form.tr-owner-gated:not(.tr-owner-confirmed) .totalrent-form-fields-wrapper > .totalrent-field-group:not(.totalrent-field-group-perfil){
  display:flex!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
  transform:none!important;
  pointer-events:none!important;
}

.totalrent-form.tr-owner-gated.tr-owner-confirmed .totalrent-form-fields-wrapper > .totalrent-field-group:not(.totalrent-field-group-perfil){
  display:flex!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
  transform:none!important;
  pointer-events:auto!important;
}

/* La pregunta NO desaparece al pulsar Sí: se queda arriba como en la referencia. */
.totalrent-form.tr-owner-gated.tr-owner-confirmed .totalrent-field-group-perfil{
  display:block!important;
}

.totalrent-form.tr-owner-gated:not(.tr-owner-confirmed) .totalrent-field-group:not(.totalrent-field-group-perfil) input,
.totalrent-form.tr-owner-gated:not(.tr-owner-confirmed) .totalrent-field-group:not(.totalrent-field-group-perfil) select,
.totalrent-form.tr-owner-gated:not(.tr-owner-confirmed) .totalrent-field-group:not(.totalrent-field-group-perfil) textarea,
.totalrent-form.tr-owner-gated:not(.tr-owner-confirmed) .totalrent-field-group:not(.totalrent-field-group-perfil) button{
  cursor:not-allowed!important;
}

/* Quiero vender: anula las antiguas reglas que reservaban altura para el popup. */
.trp-lead-form.tr-owner-gated .totalrent-form-fields-wrapper,
.trp-lead-form.tr-owner-gated.tr-owner-confirmed .totalrent-form-fields-wrapper{
  min-height:0!important;
}

.trp-lead-form.tr-owner-gated .totalrent-field-group-perfil,
.trp-lead-form.tr-owner-gated:not(.tr-owner-confirmed) .totalrent-field-group-perfil{
  position:static!important;
  inset:auto!important;
  width:100%!important;
  max-width:none!important;
  padding:0!important;
  transform:none!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

@media(max-width:560px){
  .totalrent-form.tr-owner-gated .tr-owner-question__advice-title{
    font-size:15px!important;
  }
  .totalrent-form.tr-owner-gated .tr-owner-question__title{
    font-size:14px!important;
  }
  .totalrent-form.tr-owner-gated .tr-owner-choice{
    min-height:46px!important;
    font-size:14px!important;
  }
}
