/* Theme-independent lead form styles. */
.giw-lead-component { width: min(100%, var(--giw-lead-width, 56rem)); color: #122138; }
.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 #9aadc4; border-radius: .35rem; background: #fff; color: #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 { outline: 3px solid #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: #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: #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-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: #07182eaa; }
.giw-lead-fallback { overflow: hidden; }
.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: #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; }
.giw-lead-consent { font-size: .86rem !important; font-weight: 500 !important; }
.giw-lead-consent input { width: 1rem !important; min-height: 1rem !important; display: inline !important; margin-inline-end: .35rem; }
.giwt-tool-lead-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-block: 1rem; }
.giwt-tool-lead-trigger { cursor: pointer; }
.giwt-tool-lead-error { margin: .6rem 0; color: #a31d1d; }
.giw-lead-tool-summary { margin-block-end: .8rem; padding: .7rem .85rem; border: 1px solid #c8d7e8; border-radius: .4rem; background: #f4f8fc; color: #122138; }
.giw-lead-tool-summary p { margin: .2rem 0 0; }
.giw-lead-quote { margin-block-end: 1rem; padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid #c8d7e8; border-radius: .65rem; background: #fff; color: #122138; }
.giw-lead-quote header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-block-end: 1px solid #d6e0eb; padding-block-end: .8rem; }
.giw-lead-quote header img { max-width: 10rem; max-height: 3.5rem; object-fit: contain; }
.giw-lead-quote-kicker { margin: 0; font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: #1655a5; }
.giw-lead-quote h2 { margin: .25rem 0 0; }
.giw-lead-quote dl { display: grid; grid-template-columns: minmax(8rem, 0.35fr) 1fr; gap: .35rem .8rem; margin: 1rem 0; }
.giw-lead-quote dt { font-weight: 700; }
.giw-lead-quote dd { margin: 0; }
.giw-lead-quote-total { font-size: 1.35rem; font-weight: 800; color: #087a4b; }
.giw-lead-quote ul { margin: .8rem 0; padding: 0; list-style: none; border-block-start: 1px solid #d6e0eb; }
.giw-lead-quote li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-block-end: 1px solid #d6e0eb; }
.giw-lead-quote-disclaimer, .giw-lead-quote-contact, .giw-lead-quote-note { font-size: .88rem; color: #465c73; }
.giw-quote-print { margin-block-start: .7rem; min-height: 42px; padding: .55rem .85rem; border: 0; border-radius: .35rem; background: #1655a5; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@media print {
  body * { visibility: hidden !important; }
  #giw-lead-quote, #giw-lead-quote * { visibility: visible !important; }
  #giw-lead-quote { position: absolute; inset: 0; width: 100%; border: 0; box-shadow: none; }
  #giw-lead-quote .giw-quote-print { display: none; }
}
@media (min-width: 42rem) {
  .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; }
}

/* Tool estimate summary spans both form columns and stays compact on desktop. */
.giw-lead-tool-summary { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; }
.giw-lead-tool-summary strong, .giw-lead-tool-summary p { margin: 0; }
.giw-lead-tool-summary p { display: inline; }
@media (max-width: 41.99rem) {
  .giw-lead-tool-summary { display: block; }
  .giw-lead-tool-summary p { margin-block-start: .2rem; }
}
