/* One compact form for the proposal page, service pages and dialog. */
.giw-lead-component { width: min(100%, 56rem); color: var(--wp--preset--color--ink, #122138); }
.giwc-form-centered .giw-lead-component { margin-inline: auto; }
.giw-lead-form { display: grid; gap: .6rem; margin: 0; }
.giw-lead-fields { display: grid; gap: .7rem 1rem; align-items: end; }
.giw-lead-fields > * { min-width: 0; margin: 0; }
.giw-lead-form label { display: block; min-width: 0; font-size: .91rem; font-weight: 650; line-height: 1.3; }
.giw-lead-form label > :is(input:not([type="checkbox"]), select, textarea) { display: block; margin-block-start: .25rem; }
.giw-lead-form :is(input:not([type="checkbox"]):not([type="hidden"]), select, textarea) { width: 100%; min-height: 42px; padding: .55rem .7rem; border: 1px solid var(--giw-form_border,#9aadc4); border-radius: .35rem; background: var(--giw-form_bg,#fff); color: var(--giw-text,#122138); font: inherit; }
.giw-lead-form textarea { resize: vertical; min-height: 5.7rem; }
.giw-lead-form :is(input, select, textarea, button, summary):focus-visible, .giw-lead-close:focus-visible, .giw-lead-dialog-heading a:focus-visible { outline: 3px solid var(--brand, #1655a5); outline-offset: 3px; }
.giw-lead-services { border: 1px solid #c8d7e8; border-radius: .4rem; padding: .55rem .8rem .7rem; }
.giw-lead-services legend { padding-inline: .25rem; font-size: .91rem; font-weight: 750; }
.giw-lead-service-options { display: grid; gap: .35rem .8rem; }
.giw-lead-form .giw-lead-service-options label { display: flex; align-items: flex-start; gap: .5rem; font-weight: 500; line-height: 1.25; cursor: pointer; }
.giw-lead-service-options input { width: 1rem; height: 1rem; margin: .12rem 0 0; accent-color: var(--brand, #1655a5); flex: none; }
.giw-lead-help { margin: .25rem 0 0; font-size: .82rem; line-height: 1.35; color: #465c73; font-weight: 400; }
.giw-lead-services > .giw-lead-help { margin: 0 0 .45rem; }
.giw-lead-field-error { color: #a31d1d; margin: .4rem 0 0; font-size: .86rem; }
.giw-lead-optional { border-block-start: 1px solid #d6e0eb; padding-block-start: .25rem; }
.giw-lead-optional summary { width: fit-content; color: var(--brand, #1655a5); font-size: .88rem; font-weight: 700; cursor: pointer; }
.giw-lead-optional summary span { font-weight: 400; }
.giw-lead-optional-fields { display: grid; gap: .7rem 1rem; padding-block-start: .7rem; }
.giw-lead-challenge { align-self: end; }
.giw-lead-challenge-row { display: flex; gap: .5rem; align-items: stretch; margin-block-start: .25rem; }
.giw-lead-challenge-row input { flex: 0 0 5rem; max-width: 5rem; }
.giw-lead-refresh { border: 1px solid #9aadc4; border-radius: .35rem; background: #fff; color: #1655a5; padding-inline: .65rem; font: inherit; font-size: .87rem; font-weight: 700; cursor: pointer; }
.giw-lead-submit { width: 100%; min-height: 42px; margin: 0; align-self: end; cursor: pointer; }
.giw-lead-privacy { margin-block-start: .1rem; }
.giw-lead-notice { border-inline-start: 4px solid #b42318; padding: .65rem .8rem; background: #fff4f2; color: #651b15; margin-block-end: .8rem; }
.giw-lead-notice.is-success { border-color: #087a4b; background: #ecf8f1; color: #145234; }
.giw-lead-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.giw-lead-dialog { width: min(48rem, calc(100vw - 1.25rem)); max-height: calc(100dvh - 1.25rem); overflow-y: auto; border: 1px solid #c8d7e8; border-radius: .65rem; padding: clamp(.85rem, 2vw, 1.35rem); box-shadow: 0 1.5rem 4rem #07182e55; }
.giw-lead-dialog::backdrop { background: color-mix(in srgb, var(--giw-lead-popup-overlay,#07182e) 67%, transparent); }
.giw-lead-fallback { overflow: hidden; }
.giw-lead-fallback::before { content: ""; position: fixed; inset: 0; z-index: 99998; background: color-mix(in srgb, var(--giw-lead-popup-overlay,#07182e) 67%, transparent); }
.giw-lead-fallback .giw-lead-dialog[open] { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); z-index: 99999; margin: 0; }
.giw-lead-dialog .giw-lead-component { width: 100%; }
.giw-lead-dialog-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; padding-inline-end: 2rem; margin-block-end: .8rem; }
.giw-lead-dialog-heading h2 { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.55rem); line-height: 1.2; }
.giw-lead-dialog-heading a { color: var(--brand, #1655a5); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.giw-lead-close { position: absolute; inset-block-start: .45rem; inset-inline-end: .6rem; border: 0; background: transparent; color: #122138; font-size: 1.8rem; line-height: 1; cursor: pointer; }
@media (min-width: 640px) {
  .giw-lead-fields, .giw-lead-service-options, .giw-lead-optional-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .giw-lead-wide { grid-column: 1 / -1; }
}
.giw-lead-modal,.giw-lead-popup{max-width:var(--giw-lead-popup-width,640px);background:var(--giw-lead-popup-bg,#fff)}
