.gppa-navigation-disabled .gform_page_footer::after{
    content: "";
}
.uael-gf-style .gform_wrapper .gform_ajax_spinner, .gppa-navigation-disabled .gform_page_footer::after{
	box-sizing: border-box;
	margin-top: 11px;
	margin-left: 10px;
    border: 3px solid rgba(231,188,179,1);
    border-left: 3px solid rgba(231,188,179,0);
    border-top: 3px solid rgba(231,188,179,.15);
    border-right: 3px solid rgba(231,188,179,.5);
	animation: spinner 1.1s infinite linear;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	z-index: 1;
	position: absolute;
    right: 0;
    bottom: 6px;
}
@keyframes spinner {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
#rsvp-section .gform_wrapper.gravity-theme .gform_fields {
    grid-row-gap: 0;
}
#gform_4 fieldset.rsvp-by-guest legend {
    margin-top: 0;
}
.uael-gf-style .gform_wrapper .gf_progressbar_wrapper{
    padding-left: 15px;
    padding-right: 15px;
}
#rsvp-section .gform_wrapper.gravity-theme .gf_progressbar {
    margin-bottom: 22px;
}
#rsvp-section .uael-gf-style .gfield_description{
    padding-top: 16px;
    padding-bottom: 8px
}
#gform_7 .rsvp-name{
    display: none !important;
}
#rsvp-section .with-guest-name input{
    text-align: center;
    border: none;
    background: none;
    padding-top: 6px;
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-64cb027-font-family);
    font-size: calc(var(--e-global-typography-64cb027-font-size) + 4px);
    font-weight: var(--e-global-typography-64cb027-font-weight);
    line-height: var(--e-global-typography-64cb027-line-height);
    letter-spacing: var(--e-global-typography-64cb027-letter-spacing);
    word-spacing: var(--e-global-typography-64cb027-word-spacing);
}
#rsvp-section .uael-gf-style .gf_progressbar_title{
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-fbcefcb-font-family);
    font-size: var(--e-global-typography-fbcefcb-font-size);
    font-weight: var(--e-global-typography-fbcefcb-font-weight);
    line-height: var(--e-global-typography-fbcefcb-line-height);
    letter-spacing: var(--e-global-typography-fbcefcb-letter-spacing);
    word-spacing: var(--e-global-typography-fbcefcb-word-spacing);
    text-transform: uppercase;
    margin-bottom: 14px !important;
}
#rsvp-section .uael-gf-style .gform_wrapper div.validation_error, #rsvp-section .uael-gf-style .gform_wrapper div.gform_validation_errors h2 {
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-text-font-family);
    font-size: var(--e-global-typography-text-font-size);
    line-height: var(--e-global-typography-text-line-height);
    text-align: center;
}
#rsvp-section .gform_wrapper.gravity-theme .gf_progressbar_percentage.percentbar_blue {
    background-color: var(--e-global-color-accent);
    color: #ffffff;
    padding: 0;
}
#rsvp-section .gform_wrapper.gravity-theme .gform_page_footer input.button:disabled {
    opacity: 0.3;
}
.uael-gf-style .gform_page_footer input[type="submit"]{
    margin-top: 30px;
}
.gf_progressbar_title{
    text-align: center
}
.gform_wrapper.gravity-theme .gfield {
    text-align: center;
}
.uael-gf-style .gchoice, .uael-gf-style .gchoice_button {
    justify-content: center;
    margin-top: 14px;
    cursor: pointer;
}
.gform_required_legend, .gform_wrapper.gravity-theme .gfield_required .gfield_required_asterisk, .uael-gf-style .gform_wrapper .gfield .ginput_counter.gfield_description{
    display: none;
}
.uael-gf-style .gform_page .gform_page_footer input[type=button] {
    margin-bottom: 0px;
}
.first-form .gform_wrapper.gravity-theme .gform_footer, .first-form .gform_wrapper.gravity-theme .gform_page_footer {
    padding: 0;
} 
.uael-gf-style input[type="submit"]:hover, .uael-gf-style input[type="button"]:hover {
    transform: translateY(-8px);
}
.uael-gf-style .ginput_container .gfield_radio .gchoice input[type=radio]:checked+label {
    font-weight: 600
}
.confirmation-preview{
    color: var( --e-global-color-text );
}
.confirmation-preview strong{
    font-weight: 600;
}
.confirmation-preview-full-name{
    margin-bottom: 24px;
}
.ei-confirmation-preview-label{
    margin-top: 8px;
}
.confirmation-preview-label{
    margin-bottom: 30px;
}
.uael-gf-style .gform_page .gform_page_footer .gform_previous_button.button{
    color: var( --e-global-color-0acf708 );
    background: var( --e-global-color-accent );
}
.gform_confirmation_message .elementor-button-wrapper a{
    display: block;
    font-family: var(--e-global-typography-accent-font-family);
    font-size: var(--e-global-typography-accent-font-size);
    font-weight: var(--e-global-typography-accent-font-weight);
    text-transform: var(--e-global-typography-accent-text-transform);
    line-height: var(--e-global-typography-accent-line-height);
    color: var(--e-global-color-0acf708);
    background-color: var(--e-global-color-accent);
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: var(--e-global-color-accent);
    border-radius: 4px 4px 4px 4px;
    padding: 6px 12px 6px 12px;
    margin-top: 20px
}
.gform_confirmation_message .elementor-button-wrapper a:hover{
    color: var(--e-global-color-0acf708);
    background-color: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
}
.rsvp-hide-field-permanently{
    display: none !important;
}
.rsvp-hide-filed{
    display: none;
}
.uael-gf-style .uael-gf-select-custom:after{
    content: none;
}
 .uael-gf-style .uael-gf-select-custom select {
    text-align: center;
    text-align-last:center;
}
ul.ei-gf-all-fields li:first-child{
    display: none;
}
#gform_4 .gform_footer, #gform_4 .gform_page_footer {
    display: flex;
    flex-wrap: wrap;
}
#gform_4 .ei-last-gform_page .gform_footer, #gform_4 .ei-last-gform_page .gform_page_footer{
    display: block;
}
.ei-guest-auto-hide{ 
    display: none !important; 
}
.ei-guest-auto-show { 
    display: block !important; 
}
/* Ocultamos el label "Nombre Completo" cuando ya se incluye */
.with-guest-name .gfield_label{
    display: none !important; 
}
/* Si incluye nombre ocultamos el label "Nombre Completo" */
.ei-no-space{
    margin-bottom: 0 !important;
}
/* Checbox */
.gform_wrapper.gravity-theme .gf_ei_rsvp_vip_wrapper .ei_inv_guests_childs .ginput_container_checkbox, .gform_wrapper.gravity-theme .gf_ei_rsvp_vip_wrapper .ei_inv_guests_adults .ginput_container_checkbox{
  /* el bloque se ajusta al contenido (longitud del label más largo) */
  display: inline-block;
  width: auto;
  max-width: 100%; /* evita desbordes en pantallas pequeñas */
  margin-top: 0;
}
.gform_wrapper.gravity-theme .gf_ei_rsvp_vip_wrapper .ei_inv_guests_childs .gfield-choice-input+label, .gform_wrapper.gravity-theme .gf_ei_rsvp_vip_wrapper .ei_inv_guests_adults .gfield-choice-input+label{
    max-width: 100%;
}
.gform_wrapper.gravity-theme .gf_ei_rsvp_vip_wrapper .ei_inv_guests_childs .gchoice, .gform_wrapper.gravity-theme .gf_ei_rsvp_vip_wrapper .ei_inv_guests_adults .gchoice {
    justify-content: left;
}
/* Número de confirmados */
.gform_wrapper.gravity-theme .gf_ei_rsvp_vip_wrapper .gfield.ei_inv_confirmed_seats input[type=number]{
    text-align: center !important;
    background-color: transparent !important;
    border: none !important;
    font-weight: 700;
    font-size: 1.35rem !important;
    padding: 0 !important;
}
/* Etiqueta número de invitado */
.gform_wrapper.gravity-theme .gf_ei_rsvp_vip_wrapper .gfield.ei-guest-heading{
    justify-self: center;          /* centra dentro de la celda de grid */
    width: max-content;            /* ancho = contenido */
    max-width: min(90%, 38rem);    /* tope razonable y responsive */
    text-align: center;
}
.gform_wrapper.gravity-theme .gf_ei_rsvp_vip_wrapper .gfield.ei-guest-heading span{
    margin-left: .35rem;
    font-size: .875rem;           /* un poco más pequeño */
    text-transform: none;
    opacity: .8;
}

@supports not (width: max-content) {
  .gform_wrapper.gravity-theme .gf_ei_rsvp_vip_wrapper .gfield.ei-guest-heading{
    display: table;              /* fallback shrink-to-fit */
  }
}

/* Si incluye nombre estilizamos el input */
.gform_wrapper.gravity-theme .gf_ei_rsvp_vip_wrapper .gfield.with-guest-name .ginput_container input[type=text]{
    text-align: center !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    color: var(--e-global-color-text) !important;
    font-family: var(--e-global-typography-text-font-family) !important;
    font-size: calc(var(--e-global-typography-text-font-size) + 4px) !important;
    font-weight: var(--e-global-typography-text-font-weight) !important;
    line-height: var(--e-global-typography-text-line-height) !important;
    letter-spacing: var(--e-global-typography-text-letter-spacing) !important;
    word-spacing: var(--e-global-typography-text-word-spacing) !important;
}
.gform_wrapper.gravity-theme .gf_ei_rsvp_vip_wrapper .gfield.with-guest-name .ginput_container{
    margin-top: 0;
}
/* Confirmación */
.ei-actions .gws-reload-form.gprl-reload-link{
    display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
    padding:.5rem 0.75rem;
    min-width: 240px;
    border-radius:999px;
    text-decoration:none;line-height:1;
    background: var(--e-global-color-accent, #3a3a3a);
    color:#fff;
    border:1px solid transparent;
    cursor:pointer;

    /* Tipografía: usa el set "accent" si existe */
    font-family: var(--e-global-typography-accent-font-family, inherit);
    font-weight: var(--e-global-typography-accent-font-weight, 600);
    font-size: var(--e-global-typography-accent-font-size, 14px);
    line-height: var(--e-global-typography-accent-line-height, 1);
    letter-spacing: var(--e-global-typography-accent-letter-spacing, normal);
    text-transform: var(--e-global-typography-accent-text-transform, none);
    font-style: var(--e-global-typography-accent-font-style, normal);

    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  }
  .ei-actions .gws-reload-form.gprl-reload-link:hover{
    transform: translateY(-1px);
    filter: brightness(.96);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
  }
  .ei-actions .gws-reload-form.gprl-reload-link:active{
    transform: translateY(0);
    filter: brightness(.92);
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
  }
  .ei-actions .gws-reload-form.gprl-reload-link:focus-visible{
    outline:2px solid var(--e-global-color-accent, currentColor);
    outline-offset:2px;
  }

  /* Botón secundario tipo "outline" (volver a la invitación) */
  .ei-actions .ei-back-btn{
    display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
    padding:.5rem 0.75rem;
    min-width: 240px;
    border-radius:999px;
    text-decoration:none;line-height:1;
    background: transparent;
    color: var(--e-global-color-accent, currentColor);
    border:1px solid currentColor;
    cursor:pointer;

    font-family: var(--e-global-typography-accent-font-family, inherit);
    font-weight: var(--e-global-typography-accent-font-weight, 600);
    font-size: var(--e-global-typography-accent-font-size, 14px);
    line-height: var(--e-global-typography-accent-line-height, 1);
    letter-spacing: var(--e-global-typography-accent-letter-spacing, normal);
    text-transform: var(--e-global-typography-accent-text-transform, none);
    font-style: var(--e-global-typography-accent-font-style, normal);

    transition: background-color .2s ease,border-color .2s ease;
  }
  .ei-actions .ei-back-btn:hover{
    background: var(--e-global-color-accent, currentColor);
    color: #FFFFFF;
  }
  .ei-actions .ei-back-btn:focus-visible{
    outline:2px solid currentColor;
    outline-offset:2px;
  }
  

  @media (prefers-reduced-motion: reduce){
    .ei-actions .gws-reload-form.gprl-reload-link{ transition:none }
    .ei-actions .ei-back-btn{ transition:none }
  }
/* Vista Previa */
.confirmation-preview-label strong span, .confirmation-preview-description p{
    font-size: calc(1em + 2px);
    line-height: calc(1em + 6px);
}
.confirmation-preview-label{
    font-size: calc(1em + 1px);
    line-height: calc(1em + 4px);
}
#rsvp-section .gform_wrapper.gravity-theme .gfield.ei-not-attend, #rsvp-section  .gform_wrapper.gravity-theme .gfield.ei-attend{
    margin-bottom: 12px;   
}
#rsvp-section .uael-gf-style .ei-rsvp-confirmed-seats .gfield_description{
    padding-top: 0;
}

.ei-uppercase-text *{
    text-transform: uppercase;
}
.ei-strong, .ei-strong p, .ei-strong .elementor-heading-title{
    font-weight: 700;
}
.ei-letter-spacing-short, .ei-letter-spacing-short p, .ei-letter-spacing-short .elementor-heading-title{
    letter-spacing: 0.03em;
}
.ei-letter-spacing-medium, .ei-letter-spacing-medium p, .ei-letter-spacing-medium .elementor-heading-title{
    letter-spacing: 0.06em;
}
.ei-letter-spacing-large, .ei-letter-spacing-large p, .ei-letter-spacing-large .elementor-heading-title{
    letter-spacing: 0.15em;
}
.gppa-navigation-disabled .gform_page_footer::after{
    content: "";
}
/* Oculta el puntito nativo (si aparece) */
.uael-gf-style .gform_wrapper .gform_ajax_spinner { display: none !important; }

/* =========================
   OVERLAY GLOBAL con :has()
   ========================= */
@supports selector(:has(*)) {
  /* 1) Envío claro: spinner dentro del footer => overlay SIEMPRE */
  html:has(.gform_page_footer .gform_ajax_spinner)::before,
  html:has(.gform_page_footer .gform_ajax_spinner)::after {
    content: "";
    position: fixed; z-index: 2147483000; pointer-events: auto;
  }
  html:has(.gform_page_footer .gform_ajax_spinner)::before {
    inset: 0;
    background: rgba(255,255,255,.38);
    backdrop-filter: blur(2px);
  }
  html:has(.gform_page_footer .gform_ajax_spinner)::after {
    top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--e-global-color-accent, #555) 35%, transparent);
    border-left-color: transparent;
    border-top-color: color-mix(in srgb, var(--e-global-color-accent, #555) 15%, transparent);
    animation: gfspin 1s linear infinite;
  }

  /* 2) Spinners en cualquier sitio PERO solo cuando NO hay ningún campo enfocado
        (evita overlay mientras el usuario sigue tecleando) */
  html:has(.gform_wrapper .gform_ajax_spinner):not(:has(.gform_wrapper :focus))::before,
  html:has(.gform_wrapper .gform_ajax_spinner):not(:has(.gform_wrapper :focus))::after {
    content: "";
    position: fixed; z-index: 2147483000; pointer-events: auto;
  }
  html:has(.gform_wrapper .gform_ajax_spinner):not(:has(.gform_wrapper :focus))::before {
    inset: 0;
    background: rgba(255,255,255,.38);
    backdrop-filter: blur(2px);
  }
  html:has(.gform_wrapper .gform_ajax_spinner):not(:has(.gform_wrapper :focus))::after {
    top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--e-global-color-accent, #555) 35%, transparent);
    border-left-color: transparent;
    border-top-color: color-mix(in srgb, var(--e-global-color-accent, #555) 15%, transparent);
    animation: gfspin 1s linear infinite;
  }

  /* Evita overlays duplicados si ya aplicó la regla (1) */
  html:has(.gform_page_footer .gform_ajax_spinner):not(:has(.gform_wrapper :focus))::before,
  html:has(.gform_page_footer .gform_ajax_spinner):not(:has(.gform_wrapper :focus))::after {
    content: none !important;
  }
}

/* Fallback (sin :has): mantenemos tu versión GPPA (puede no ser full-screen según stacking) */
@supports not selector(:has(*)) {
  .gppa-navigation-disabled .gform_page_footer { position: static; }
  .gppa-navigation-disabled .gform_page_footer::after{
    content: ""; position: fixed; inset: 0;
    background: rgba(0,0,0,.38); backdrop-filter: blur(2px); z-index: 9998;
  }
  .gppa-navigation-disabled .gform_page_footer::before{
    content: ""; position: fixed; top: 50%; left: 50%;
    width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border-radius: 50%;
    border: 3px solid color-mix(in srgb, var(--e-global-color-accent, #555) 35%, transparent);
    border-left-color: transparent;
    border-top-color: color-mix(in srgb, var(--e-global-color-accent, #555) 15%, transparent);
    animation: gfspin 1s linear infinite; z-index: 9999;
  }
}

/* Animación + accesibilidad */
@keyframes gfspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){
  html::after { animation: none !important; }
}

/* Personalización */
/*
#rsvp-section .rsvp-name{
    padding-top: 15px;
    font-weight: 400;
    font-size: 24px;
    color: #c6964d;
    font-family: "Great Vibes";
}
#rsvp-section .rsvp-pass{
    font-weight: 400;
    font-size: 14px;
    color: var( --e-global-color-text );
}
#rsvp-section .rsvp-pass span{
    font-size: 16px;
    font-weight: 600;
}
#rsvp-section .uael-gf-style .ei-guest-name .gfield_label, .gform_wrapper.gravity-theme .gf_ei_rsvp_vip_wrapper .gfield.ei-guest-heading{
    color: #CB5227;
    font-family: "Magreb";
    font-size: 16px;
    font-weight: 500;
    background: #FFFFFF;
    border: 1px solid #CB5227;
    padding: 8px 20px 8px 20px;
    border-radius: 6px;
    margin-top: 8px !important;
    margin-bottom: -4px !important
}
*/