/* MAH · Formulario de adopción — encima del tema Orbital de Gravity Forms */

.mah-adopcion-wrap {
  max-width: 680px;
  margin: 0 auto;
  font-family: var(--body, 'Manrope', system-ui, sans-serif);
}

.mah-adopcion-wrap .gform_wrapper.gravity-theme,
.mah-adopcion-wrap .gform-theme--orbital {
  --gf-ctrl-font-family: var(--body, 'Manrope', system-ui, sans-serif);
  --gf-font-family-base: var(--body, 'Manrope', system-ui, sans-serif);
  background: var(--paper, #fff);
  border-radius: 20px;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: 0 1px 0 rgba(26, 26, 26, .06), 0 12px 32px -18px rgba(27, 58, 47, .35);
}

/* ---------- Progreso: "Paso 2 de 4 · Tus datos" ---------- */
.mah-adopcion-wrap .gform_required_legend { display: none; }
.mah-adopcion-wrap .gf_progressbar_wrapper { margin: 0 0 1.75rem; }
.mah-adopcion-wrap .gf_progressbar_title {
  margin: 0 0 .5rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--forest, #1B3A2F);
}
.mah-adopcion-wrap .gf_progressbar {
  height: 8px;
  border-radius: 99px;
  background: var(--bg-soft, #EDE5D2);
  overflow: hidden;
}
.mah-adopcion-wrap .gf_progressbar_percentage {
  height: 8px !important;
  border-radius: 99px;
  background: var(--orange, #F57921) !important;
}
.mah-adopcion-wrap .gf_progressbar_percentage span { display: none; }
.mah-adopcion-wrap ::placeholder { color: #B3AC9D; opacity: 1; }

/* ---------- Opciones grandes, fáciles de tocar ---------- */
.mah-adopcion-wrap .gfield--type-radio .gchoice,
.mah-adopcion-wrap .gfield--type-checkbox .gchoice {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  border: 1.5px solid #D9D0BC;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.mah-adopcion-wrap .gfield--type-radio .gfield_radio,
.mah-adopcion-wrap .gfield--type-checkbox .gfield_checkbox {
  display: grid;
  gap: .55rem;
}
.mah-adopcion-wrap .gchoice input { flex: none; margin: 0 !important; }
.mah-adopcion-wrap .gchoice label {
  flex: 1;
  margin: 0;
  cursor: pointer;
  font-weight: 500;
}
/* toda la tarjeta es clicable */
.mah-adopcion-wrap .gchoice label::after { content: ""; position: absolute; inset: 0; }
.mah-adopcion-wrap .gchoice:has(input:checked) {
  border-color: var(--orange, #F57921);
  background: var(--orange-tint, #FDEAD6);
}
.mah-adopcion-wrap .gchoice:has(input:focus-visible) {
  outline: 3px solid rgba(245, 121, 33, .35);
  outline-offset: 2px;
}

/* ---------- Compromisos ---------- */
.mah-adopcion-wrap .mah-compromisos-titulo {
  margin: .5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(26, 26, 26, .12);
  color: var(--ink-soft, #4A4A4A);
  line-height: 1.5;
}
.mah-adopcion-wrap .mah-compromisos-titulo a { color: var(--orange-deep, #D86813); }
.mah-adopcion-wrap .gfield--type-consent .ginput_container_consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: var(--bg, #F5EFE0);
}
.mah-adopcion-wrap .gfield--type-consent .gfield_consent_label { font-weight: 500; line-height: 1.45; }

/* ---------- Botones ---------- */
.mah-adopcion-wrap .gform_page_footer,
.mah-adopcion-wrap .gform_footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
}
.mah-adopcion-wrap .gform_next_button,
.mah-adopcion-wrap .gform_button[type="submit"],
.mah-adopcion-wrap input.gform_button {
  flex: 1 1 auto;
  min-height: 52px;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}
.mah-adopcion-wrap .gform_previous_button {
  min-height: 52px;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--forest, #1B3A2F) !important;
  border: 1.5px solid var(--forest, #1B3A2F) !important;
}
.mah-adopcion-wrap .gform_save_link {
  width: 100%;
  text-align: center;
  font-size: .9rem;
  color: var(--ink-muted, #7A756A) !important;
  background: none !important;
  border: 0 !important;
  text-decoration: underline;
}

/* ---------- Gracias ---------- */
.mah-gracias { text-align: center; padding: 1rem 0; }
.mah-gracias-icono { font-size: 2.5rem; }
.mah-gracias h2 {
  font-family: var(--display, 'Fraunces', Georgia, serif);
  color: var(--forest, #1B3A2F);
  margin: .5rem 0;
}
.mah-gracias p { color: var(--ink-soft, #4A4A4A); line-height: 1.6; }
.mah-btn-wa {
  display: inline-block;
  margin-top: .5rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  background: #25D366;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Ajustes finales ---------- */
/* Opciones cortas (Sí/No, Casa/Apartamento…) lado a lado */
.mah-adopcion-wrap .gfield--type-radio .gfield_radio {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}
.mah-adopcion-wrap .gchoice label { padding-left: .15rem; }
/* Compromisos más juntos */
.mah-adopcion-wrap .gform_fields:has(.gfield--type-consent) { row-gap: 1.75rem; }
.mah-adopcion-wrap .gfield--type-consent + .gfield--type-consent { margin-top: -1.1rem; }
