/* ----- Base ----- */
.gform_wrapper .gfield { 
  position: relative; 
}

/* Ocultamos labels de GF (las principales y las sublabels) */
.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label--type-sub {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* Contenedor flotante para cada input */
.gform_wrapper .zf-float-group {
  position: relative;
  display: block;
}

/* El input ocupa todo como siempre */
.gform_wrapper .zf-float-group input[type="text"],
.gform_wrapper .zf-float-group input[type="email"],
.gform_wrapper .zf-float-group input[type="password"],
.gform_wrapper .zf-float-group input[type="search"],
.gform_wrapper .zf-float-group input[type="tel"],
.gform_wrapper .zf-float-group input[type="url"],
.gform_wrapper .zf-float-group input[type="number"],
.gform_wrapper .zf-float-group input[type="date"],
.gform_wrapper .zf-float-group textarea {
  width: 100%;
  padding-right: 2.5rem; /* espacio extra para iconos como ver/ocultar pass */
}

/* Etiqueta flotante generada por JS */
.gform_wrapper .zf-float-label {
  color: var(--awb-color2);
  pointer-events: none;
  position: absolute!important;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  line-height: 1;
  opacity: 1;
  transition: transform .18s ease, top .18s ease, font-size .18s ease, opacity .18s ease, color .18s ease;
  width:auto!important;
}

.ginput_container_textarea .zf-float-label {
	top: 20px;	
	}

/* Estado activo (focus o con valor) -> sube y se hace más pequeña */
.gform_wrapper .zf-float-group.zf-active .zf-float-label,
.gform_wrapper .zf-float-group.zf-has-value .zf-float-label {
  top: -8px;
  transform: translateY(0);
  font-size: 12px;
  opacity: 1;
  color: var(--awb-color2);  
  padding: 0px; 
}

/* Bordes y foco */
.gform_wrapper .ginput_container input:focus,
.gform_wrapper .ginput_container textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,81,146,.12);
  border-color: var(--awb-color2);
}

/* Ajustes para campos de contraseña en línea */
.gform_wrapper .ginput_container_password .zf-float-group {
  width: 100%;
}

/* Color normal (activo/con valor) */
.gform_wrapper .zf-float-group.zf-active .zf-float-label,
.gform_wrapper .zf-float-group.zf-has-value .zf-float-label {
  color: var(--awb-color2);
}

/* Color rojo cuando hay error */
.gform_wrapper .gfield.gfield_error .zf-float-label,
.gform_wrapper .zf-float-group.zf-has-error .zf-float-label {
  color: #D32F2F;
}

/* No tocamos checkboxes ni consentimientos */

.gf_name_has_2{
	display:flex!important;
	flex-direction:row!important;
	gap:20px;
	width:99%!important;
	
}

.gform_legacy_markup_wrapper div.ginput_complex.ginput_container.gf_name_has_2 .name_first,
.gform_legacy_markup_wrapper div.ginput_complex.ginput_container.gf_name_has_2 .name_last  {        
		padding-right:0px!important;
    }

.gform_legacy_markup_wrapper div.ginput_complex.ginput_container.gf_name_has_2 .name_first .zf-float-group,
.gform_legacy_markup_wrapper div.ginput_complex.ginput_container.gf_name_has_2 .name_last .zf-float-group  {
        width: 100%!important;
		padding-right:0px!important;
    }
	
.ginput_container_consent input{
	margin-top:4px!important;
}

.gf_name_has_2 .zf-float-label{
	width:auto!important;	
	padding-right:6px!important;	
}