/* Forms as visitors see them. Colours and corners come from the page theme when there is one (--c-* variables),
   otherwise from the Global Impact visitor look. */
.gf { text-align: left; color: var(--c-text, #F2F3F4); }
.gf-card { text-align: left; }
.pub .gf-card { max-width: 100%; }
.gf-title { font-family: var(--f-heading, inherit); font-size: 1.35rem; line-height: 1.25; margin: 0 0 10px; color: var(--c-heading, #fff); }
.gf-intro, .gf-paragraph { margin: 0 0 16px; color: var(--c-text, #D5DAE0); white-space: normal; }
.gf-note { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--c-warning, #D9A441); color: var(--c-text, #F2F3F4); }
.gf-alert { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: rgba(224, 108, 108, 0.14); border: 1px solid rgba(224, 108, 108, 0.6); }
.gf-confirm { margin: 0; font-size: 1.05rem; color: var(--c-text, #F2F3F4); }
.gf-done, .gf-closed { padding: 8px 0; }
.gf-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gf-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.gf-steptitle { font-family: var(--f-heading, inherit); font-weight: 700; font-size: 1.1rem; color: var(--c-heading, #fff); margin-bottom: 12px; padding: 0; }
/* 12-column grid: each field takes a share of the form; thirds and quarters become halves on tablets, all full on phones. */
.gf-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 14px; }
.gf-field { grid-column: 1 / -1; min-width: 0; }
.gf-w-three_quarters { grid-column: span 9; } .gf-w-two_thirds { grid-column: span 8; } .gf-w-half { grid-column: span 6; }
.gf-w-third { grid-column: span 4; } .gf-w-quarter { grid-column: span 3; }
@media (max-width: 820px) { .gf-w-third, .gf-w-quarter { grid-column: span 6; } .gf-w-three_quarters, .gf-w-two_thirds { grid-column: 1 / -1; } }
@media (max-width: 560px) { .gf-field[class*="gf-w-"] { grid-column: 1 / -1; } }
/* Form width */
.gf-width-narrow { max-width: 480px; } .gf-width-normal { max-width: 720px; } .gf-width-wide { max-width: 960px; } .gf-width-full { max-width: none; }
.gf[class*="gf-width-"] { margin-left: auto; margin-right: auto; width: 100%; }
.gf-field[hidden] { display: none; }
.gf-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.gf-label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; color: var(--c-heading, #fff); padding: 0; }
.gf-req { color: var(--c-error, #E06C6C); }
.gf-help { margin: 0 0 6px; font-size: 0.85rem; color: var(--c-muted, #B3BBC5); }
.gf-field > .gf-help:last-child, .gf-group > .gf-help:last-child { margin: 6px 0 0; }
.gf-error { margin: 6px 0 0; font-size: 0.85rem; color: var(--c-error, #F08A8A); font-weight: 600; }
.gf input[type="text"], .gf input[type="email"], .gf input[type="tel"], .gf input[type="number"], .gf input[type="url"], .gf input[type="date"],
.gf input[type="time"], .gf input[type="datetime-local"], .gf input[type="search"], .gf select, .gf textarea {
  width: 100%; min-height: var(--fd-h, 48px); font: inherit; color: var(--c-text, #fff); background: var(--c-bg, #0A1E34);
  border: 1px solid var(--c-border, #797A7D); border-radius: var(--btn-radius, 10px); padding: 10px 12px;
}
.gf textarea { min-height: 0; resize: vertical; }
/* Box heights */
.gf .gf-size-s input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .gf .gf-size-s select { min-height: 38px; padding: 6px 10px; font-size: 0.92rem; }
.gf .gf-size-l input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .gf .gf-size-l select { min-height: 58px; padding: 14px 16px; font-size: 1.08rem; }
.gf .gf-size-s textarea { padding: 6px 10px; font-size: 0.92rem; } .gf .gf-size-l textarea { padding: 14px 16px; font-size: 1.08rem; }
.gf input:focus, .gf select:focus, .gf textarea:focus { outline: none; border-color: var(--c-heading, #F2F3F4); box-shadow: 0 0 0 3px rgba(35, 104, 174, 0.55); }
.gf .has-error input, .gf .has-error select, .gf .has-error textarea { border-color: var(--c-error, #E06C6C); }
.gf input[type="file"] { width: 100%; font: inherit; color: var(--c-text, #fff); }
.gf-phone { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 8px; }
.gf-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gf-sublabel { display: grid; gap: 4px; font-size: 0.85rem; color: var(--c-muted, #B3BBC5); }
.gf-choices { display: grid; gap: 8px; }
.gf-choices.is-scroll { max-height: 240px; overflow: auto; padding: 4px; border: 1px solid var(--c-border, #3A4B5E); border-radius: var(--btn-radius, 10px); }
.gf-filter { margin-bottom: 8px; }
.gf-choice, .gf-consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.gf-choice input, .gf-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--c-primary, #2368AE); }
.gf-consent a { color: var(--c-link, #fff); }
.gf-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.gf-pill { position: relative; cursor: pointer; }
.gf-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gf-pill span[aria-hidden], .gf-pill > span:not(.gf-sr) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--c-border, #797A7D); border-radius: var(--btn-radius, 10px); font-weight: 600; }
.gf-pill input:checked + span { background: var(--c-primary, #2368AE); border-color: var(--c-primary, #2368AE); color: var(--c-primary-text, #fff); }
.gf-pill input:focus-visible + span { outline: 2px solid var(--c-heading, #fff); outline-offset: 2px; }
.gf-stars .gf-pill span[aria-hidden] { font-size: 1.3rem; padding: 0 10px; }
.gf-stars .gf-pill input:checked + span { background: transparent; color: var(--c-warning, #EBC77F); border-color: var(--c-warning, #EBC77F); }
.gf-stars.is-rated .gf-pill.is-lit span[aria-hidden] { color: var(--c-warning, #EBC77F); }
.gf-heading { font-family: var(--f-heading, inherit); margin: 6px 0 0; font-size: 1.1rem; color: var(--c-heading, #fff); }
.gf-hr { border: 0; border-top: 1px solid var(--c-border, #3A4B5E); margin: 4px 0; }
.gf-sign { display: grid; gap: 8px; justify-items: start; }
.gf-sign-pad { width: 100%; height: 160px; background: #fff; border-radius: var(--btn-radius, 10px); border: 1px solid var(--c-border, #797A7D); touch-action: none; cursor: crosshair; }
.gf-progress { height: 6px; border-radius: 3px; background: var(--c-border, #3A4B5E); overflow: hidden; margin: 4px 0 6px; }
.gf-progress-bar { display: block; height: 100%; width: 0; background: var(--c-primary, #2368AE); transition: width 0.2s; }
.gf-stepcount { margin: 0 0 14px; font-size: 0.85rem; color: var(--c-muted, #B3BBC5); }
.gf-nav, .gf-submit { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.gf[data-gf-steps].is-stepped .gf-submit { display: none; }
.gf[data-gf-steps].is-stepped.is-last .gf-submit { display: flex; }
.gf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; font: inherit; font-weight: 700; cursor: pointer;
  border-radius: var(--btn-radius, 10px); border: 1px solid var(--c-border, #797A7D); background: transparent; color: var(--c-heading, #fff); }
.gf-btn-primary { background: var(--c-primary, #2368AE); border-color: var(--c-primary, #2368AE); color: var(--c-primary-text, #fff); width: 100%; }
.gf-btn-primary:hover { background: var(--c-accent, #2B78C4); }
.gf-btn-primary[disabled] { opacity: 0.6; cursor: wait; }
.gf-btn-small { min-height: 36px; padding: 0 14px; font-size: 0.85rem; }
/* Gate in front of a download */
.gf-gate { display: grid; gap: 16px; text-align: left; }
.gf-gate-cover { width: 120px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); background: #fff; }
.gf-gate-head { display: flex; gap: 16px; align-items: center; }
.gf-gate-head h1 { margin: 0; }
/* Forms inside pages */
.pg-el-form .gf { max-width: 720px; }
.pg-text-center .gf { margin-left: auto; margin-right: auto; }
.gf-card-box { background: var(--c-surface, #0F2A47); border: 1px solid var(--c-border, #3A4B5E); border-radius: var(--card-radius, 14px); padding: 24px; box-shadow: var(--shadow, none); }
/* A form on its own link: the page is as wide as the form's width setting. */
.pub:has(.gf-width-normal) { max-width: 780px; } .pub:has(.gf-width-wide) { max-width: 1020px; } .pub:has(.gf-width-full) { max-width: 1280px; }

/* Theme Studio > Form fields and Buttons (variables from the theme stylesheet when there is one). */
.gf input[type="text"], .gf input[type="email"], .gf input[type="tel"], .gf input[type="number"], .gf input[type="url"], .gf input[type="date"],
.gf input[type="time"], .gf input[type="datetime-local"], .gf input[type="search"], .gf select, .gf textarea {
  background: var(--fd-bg, var(--c-bg, #0A1E34)); color: var(--fd-fg, var(--c-text, #fff)); border-color: var(--fd-border, var(--c-border, #797A7D)); border-radius: var(--fd-radius, var(--btn-radius, 10px)); }
.gf input:focus, .gf select:focus, .gf textarea:focus { border-color: var(--fd-focus, var(--c-heading, #F2F3F4)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fd-focus, #2368AE) 55%, transparent); }
.gf-label { font-weight: var(--fd-label-fw, 600); text-transform: var(--fd-label-transform, none); font-size: var(--fd-label-fs, 0.95rem); }
.gf-btn { border-radius: var(--btn-radius, 10px); font-weight: var(--btn-fw, 700); text-transform: var(--btn-transform, none); }
.gf-btn-primary { background: var(--btn-bg, var(--c-primary, #2368AE)); color: var(--btn-fg, var(--c-primary-text, #fff)); }
.gf-btn-primary:hover { background: var(--btn-hover-bg, var(--c-accent, #2B78C4)); }
