/* Case intake: scoped to this page, independent from the legacy theme. */
body:has(.ig-form-section) .page-title { display: none; }
html body:has(.ig-form-section) #load { display: none !important; }
html body #main:has(.ig-form-section) { padding-bottom: 0; }
html body .ig-form-section {
  --case-ink: #20282e;
  --case-muted: #5d686e;
  --case-line: #dce1e4;
  --case-blue: #155e97;
  --case-gold: #a58136;
  background: #fff;
  padding: 64px 32px 72px !important;
  overflow: visible;
  color: var(--case-ink);
}
.ig-form-section *, .ig-form-section *::before, .ig-form-section *::after { box-sizing: border-box; letter-spacing: 0 !important; }
html body .ig-form-section .ig-form-wrap { max-width: 1100px; background: none; border: 0; border-radius: 0 !important; box-shadow: none; overflow: visible; }
html body .ig-form-section .ig-form-head { padding: 0 0 34px !important; background: none; color: var(--case-ink) !important; border-bottom: 1px solid var(--case-line); }
html body .ig-form-section .ig-form-head::before,
html body .ig-form-section .ig-form-head::after { content: none; }
.ig-form-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; color: #646a6c; margin-bottom: 20px; }
.ig-form-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--case-gold); }
html body #main .ig-form-section .ig-form-head h2 { padding: 0; margin: 0 0 16px !important; font: 400 40px/1.15 Georgia, 'Times New Roman', serif !important; color: var(--case-ink) !important; }
html body #main .ig-form-section .ig-form-head h2::before { content: none !important; }
html body #main .ig-form-section .ig-form-head p { max-width: 620px; font-size: 16px !important; line-height: 1.7 !important; color: var(--case-muted) !important; }
html body .ig-form-section .ig-form-head .ig-trust { margin-top: 24px; gap: 12px 24px !important; }
html body .ig-form-section .ig-trust span { gap: 9px; color: #40545c; font-size: 12px; font-weight: 500; }
.ig-form-section .ig-trust span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--case-gold); }
html body .ig-form-section .ig-form { padding: 0 !important; }
.ig-form-section .ig-form-meta { display: flex; justify-content: space-between; gap: 12px; padding: 20px 0; font-size: 12px; color: var(--case-muted); }
.ig-form-section .ig-form-meta > span:first-child { color: var(--case-ink); font-weight: 600; }
.ig-form-section .ig-form-meta b { color: #9d493c; font-weight: 400; }
.ig-form-part { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 40px; padding: 30px 0 40px; border-bottom: 1px solid var(--case-line); }
.ig-part-number { display: block; margin-bottom: 12px; color: var(--case-gold); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
html body #main .ig-form-section .ig-part-heading h3 { padding: 0; margin: 0 0 10px; color: var(--case-ink); font: 400 24px/1.3 Georgia, 'Times New Roman', serif !important; }
html body #main .ig-form-section .ig-part-heading h3::before { content: none; }
html body #main .ig-form-section .ig-part-heading p { margin: 0; max-width: 195px; font-size: 13px !important; line-height: 1.65 !important; color: var(--case-muted); }
.ig-part-body { min-width: 0; }
html body .ig-form-section .ig-form-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 22px 20px !important; margin: 0; }
.ig-form-section .ig-field { min-width: 0; gap: 8px; margin: 0; }
.ig-form-section .ig-field-phone, .ig-form-section .ig-field-email { grid-column: 1 / -1; }
.ig-form-section .ig-field > span, .ig-form-section .ig-field > label { font-size: 13px; font-weight: 600; color: var(--case-ink); line-height: 1.5; margin: 0; }
.ig-form-section .ig-field b, .ig-form-section .req { color: #9d493c; font-weight: 400; }
html body .ig-form-section .ig-in {
  display: block; width: 100%; max-width: 100%; margin: 0; min-height: 48px; height: auto;
  padding: 12px 14px; border: 1px solid #bcc6cd; border-radius: 4px;
  background: #fff; color: #161b20 !important; box-shadow: none;
  font: 400 16px/1.4 Roboto, Helvetica, Arial, sans-serif;
  transition: border-color .15s, box-shadow .15s;
}
html body .ig-form-section .ig-in::placeholder { color: #69747b !important; font-weight: 400; }
html body .ig-form-section .ig-in:focus { border-color: var(--case-blue); outline: 2px solid #c8deeb; outline-offset: 2px; box-shadow: none; }
html body .ig-form-section .ig-phone { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 12px; }
.ig-form-section .ig-country-combo { min-width: 0; }
html body .ig-form-section .ig-country-input { padding-right: 38px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; text-transform: none; }
html body .ig-form-section .ig-country-input.ig-country-placeholder { color: #69747b !important; font-weight: 400; }
.ig-form-section .ig-country-chevron { top: 18px; width: 7px; height: 7px; }
.ig-form-section .ig-country-combo[data-open=true] .ig-country-chevron { top: 22px; }
html body .ig-form-section .ig-country-panel { border-radius: 6px; padding: 10px; box-shadow: 0 12px 32px #20282e24; z-index: 100; max-height: none; }
.ig-form-section .ig-country-panel[hidden] { display: none; }
html body .ig-form-section .ig-country-search { margin-bottom: 8px; }
.ig-form-section .ig-country-list { max-height: 240px; overscroll-behavior: contain; }
.ig-form-section .ig-country-option { font-size: 14px; line-height: 1.4; min-height: 42px; padding: 9px; border-radius: 3px; text-transform: none; }
.ig-form-section .ig-country-option[aria-selected=true] { background: #edf3f7; color: #124b73; font-weight: 600; }
.ig-form-section .ig-country-option:focus-visible { outline: 2px solid var(--case-blue); outline-offset: -2px; }
.ig-form-section .ig-country-code { font-weight: 500; }
.ig-form-section .ig-country-empty { font-size: 13px; font-weight: 400; }
html body .ig-form-section .ig-q { min-width: 0; padding: 0; border: 0; margin: 0 0 32px; }
html body .ig-form-section .ig-q:last-child { margin-bottom: 0; }
.ig-form-section .ig-q-label { display: block; float: none; width: 100%; padding: 0; margin: 0 0 14px; font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--case-ink); }
html body #main .ig-form-section .ig-q-hint { margin: -4px 0 14px; font-size: 13px !important; line-height: 1.6 !important; color: var(--case-muted); }
html body .ig-form-section .ig-opts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; border-radius: 4px; }
html body .ig-form-section .ig-opt {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; padding: 12px;
  border: 1px solid var(--case-line); border-radius: 4px; background: #fff;
  color: var(--case-ink); font-size: 13px; line-height: 1.5; font-weight: 400;
  box-shadow: none; transform: none; transition: background .15s, border-color .15s;
}
html body .ig-form-section .ig-opt:hover { background: #f7f9fa; border-color: #a7b6c0; box-shadow: none; transform: none; }
html body .ig-form-section .ig-opt:has(input:checked) { background: #f0f5f8; border-color: #729bb8; box-shadow: none; }
.ig-form-section .ig-opt input:checked ~ span:last-child { font-weight: 400; color: #153e5a; }
.ig-form-section .ig-opt:has(input:focus-visible), .ig-form-section .ig-currency-pill:has(input:focus-visible) { outline: 2px solid var(--case-blue); outline-offset: 3px; }
.ig-form-section .ig-opt input, .ig-form-section .ig-currency-pill input { width: 1px; height: 1px; margin: 0; }
.ig-form-section .ig-mark { flex: 0 0 16px; width: 16px; height: 16px; border-width: 1px; border-color: #96a5ae; background: #fff; margin-top: 0; }
.ig-form-section .ig-opt input:checked + .ig-mark { background: #fff; border-color: var(--case-blue); }
.ig-form-section .ig-opt input[type=radio]:checked + .ig-mark::after { width: 8px; height: 8px; top: 3px; left: 3px; background: var(--case-blue); }
.ig-form-section .ig-opt > span:last-child { min-width: 0; overflow-wrap: break-word; }
html body .ig-form-section .ig-q-wide .ig-opt { align-items: flex-start; min-height: 68px; }
.ig-form-section .ig-q-wide .ig-mark { margin-top: 3px; }
html body .ig-form-section .ig-currency { margin: 0 0 18px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.ig-form-section .ig-currency-title { margin-bottom: 9px; color: var(--case-muted); font-size: 12px; font-weight: 500; }
html body .ig-form-section .ig-currency-grid { grid-template-columns: repeat(4,minmax(0,1fr)) !important; gap: 8px; }
html body .ig-form-section .ig-currency-pill {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  padding: 12px; min-height: 80px; margin: 0; border: 1px solid var(--case-line); border-radius: 4px;
  background: #fff; box-shadow: none; transform: none;
}
.ig-form-section .ig-currency-code { padding: 0; min-width: 0; border-radius: 0; color: #273a46; background: none; font-size: 14px; font-weight: 600; }
.ig-form-section .ig-currency-name { font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--case-muted); overflow-wrap: normal; }
html body .ig-form-section .ig-currency-pill:hover { border-color: #a7b6c0; transform: none; box-shadow: none; background: #f7f9fa; }
html body .ig-form-section .ig-currency-pill:has(input:checked) { border-color: var(--case-blue); background: #f0f5f8; box-shadow: inset 0 -2px var(--case-blue); }
.ig-form-section .ig-currency-pill:has(input:checked) .ig-currency-code { color: #124b73; background: none; }
html body .ig-form-section [data-id=perdida] .ig-opts { grid-template-columns: repeat(3,minmax(0,1fr)); }
html body .ig-form-section .ig-ta-big { min-height: 160px; }
.ig-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 30px; margin-left: 270px; }
html body #main .ig-form-section .ig-form-actions p { margin: 0; font-size: 12px !important; line-height: 1.7 !important; color: var(--case-muted); }
.ig-form-section .ig-form-actions a { color: var(--case-blue); text-decoration: underline; text-underline-offset: 3px; }
html body .ig-form-section .ig-submit {
  width: auto; flex: 0 0 auto; min-width: 190px; min-height: 50px; margin: 0; padding: 14px 24px !important;
  border: 1px solid var(--case-blue); border-radius: 4px; background: var(--case-blue);
  color: #fff; font: 600 14px/1.4 Roboto, Helvetica, Arial, sans-serif !important;
  text-transform: none; text-shadow: none; box-shadow: none; transform: none;
}
html body .ig-form-section .ig-submit:hover { background: #104b79; box-shadow: none; transform: none; }
.ig-form-section .ig-submit:focus-visible { outline: 2px solid var(--case-blue); outline-offset: 4px; }
.ig-form-section .ig-submit:disabled { opacity: .7; cursor: wait; }
.ig-form-section .ig-field-error:empty, .ig-form-section .ig-status:empty { display: none; }
.ig-form-section .ig-field-error { display: block; margin-top: 8px; font-size: 12px; line-height: 1.5; color: #9c332c; }
.ig-form-section .ig-q.ig-err .ig-opts { box-shadow: none; }
.ig-form-section .ig-q.ig-err .ig-opt { border-color: #c77a72; }
html body .ig-form-section .ig-status { margin: 20px 0 0 270px; padding: 16px; border-radius: 4px; font-size: 14px !important; text-align: left; font-weight: 400; }
.ig-form-section .ig-status-ok { color: #225943; background: #f0f7f3; border: 1px solid #b7d5c4; }
.ig-form-section .ig-status-err { color: #862e27; background: #fff5f3; border: 1px solid #e6b8b1; }
.ig-form-section .ig-status-sending { color: #264d69; background: #f2f6f9; border: 1px solid #c8d8e3; }
.ig-form-section .ig-local-confirmation {
  max-width: 700px;
  margin: 44px auto 64px;
  padding: clamp(30px, 6vw, 56px);
  border: 1px solid #dce5e9;
  border-top: 3px solid var(--case-gold);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 50, 65, .08);
  text-align: center;
}
.ig-form-section .ig-local-confirmation:focus { outline: none; }
.ig-form-section .ig-local-confirmation-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 1px solid #a6c7b4;
  border-radius: 50%;
  color: #225943;
  background: #eff7f2;
  font-size: 26px;
  line-height: 1;
}
.ig-form-section .ig-local-confirmation-label {
  display: block;
  margin-bottom: 10px;
  color: var(--case-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
html body #main .ig-form-section .ig-local-confirmation h3 {
  margin: 0 0 14px;
  padding: 0;
  color: var(--case-ink);
  font: 400 clamp(27px, 4vw, 36px)/1.2 Georgia, 'Times New Roman', serif !important;
}
html body #main .ig-form-section .ig-local-confirmation h3::before { content: none; }
html body #main .ig-form-section .ig-local-confirmation p {
  margin: 0 auto 26px;
  color: var(--case-muted);
  font-size: 15px !important;
  line-height: 1.6 !important;
}
.ig-form-section .ig-local-confirmation a {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--case-blue);
  border-radius: 4px;
  color: var(--case-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.ig-form-section .ig-local-confirmation a:hover,
.ig-form-section .ig-local-confirmation a:focus-visible {
  color: #fff;
  background: var(--case-blue);
}
@media (max-width: 1000px) {
  .ig-form-part { grid-template-columns: 180px minmax(0,1fr); gap: 28px; }
  .ig-form-actions { margin-left: 208px; }
  html body .ig-form-section .ig-status { margin-left: 208px; }
}
@media (max-width: 760px) {
  body:has(#ig-lead-form:focus-within) #waFloat,
  body:has(#ig-lead-form:focus-within) #waAviso { visibility: hidden; pointer-events: none; }
  html body .ig-form-section { padding: 36px 22px 48px !important; }
  .ig-form-part { grid-template-columns: minmax(0,1fr); gap: 24px; padding: 28px 0; }
  .ig-part-heading { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 4px 12px; align-items: baseline; }
  .ig-part-number { grid-row: 1 / 3; margin: 0; }
  html body #main .ig-form-section .ig-part-heading h3 { margin: 0; font-size: 22px !important; }
  html body #main .ig-form-section .ig-part-heading p { max-width: none; grid-column: 2; }
  .ig-form-actions { margin-left: 0; }
  html body .ig-form-section .ig-status { margin-left: 0; }
}
@media (max-width: 540px) {
  html body #main .ig-form-section .ig-form-head h2 { font-size: 32px !important; }
  html body #main .ig-form-section .ig-form-head p { font-size: 15px !important; }
  html body .ig-form-section .ig-form-head .ig-trust { gap: 10px 18px !important; }
  .ig-form-section .ig-form-meta { flex-direction: column; gap: 4px; padding-bottom: 0; }
  html body .ig-form-section .ig-form-grid { grid-template-columns: minmax(0,1fr) !important; gap: 18px !important; }
  html body .ig-form-section .ig-phone { grid-template-columns: minmax(0,1fr); }
  html body .ig-form-section .ig-opts { grid-template-columns: minmax(0,1fr) !important; gap: 8px; }
  html body .ig-form-section .ig-q-wide .ig-opt { min-height: 52px; }
  html body .ig-form-section .ig-currency-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  html body .ig-form-section .ig-currency-pill { min-height: 76px; }
  html body .ig-form-section [data-id=perdida] .ig-opts { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .ig-form-actions { flex-direction: column-reverse; align-items: stretch; gap: 18px; }
  html body .ig-form-section .ig-submit { width: 100%; min-height: 52px; }
  html body #main .ig-form-section .ig-form-actions p { padding-right: 55px; }
}
@media (prefers-reduced-motion: reduce) {
  .ig-form-section *, .ig-form-section *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
