/* SG Intel Inquiries — uses the theme's design tokens when present, with fallbacks. */
.sgi { --sgi-navy: var(--wp--preset--color--navy, #0B2A1C); --sgi-slate: var(--wp--preset--color--slate, #3E5247); --sgi-line: var(--wp--preset--color--platinum, #D8E3DC); --sgi-gold: var(--wp--preset--color--gold-dark, #7A5C14); --sgi-focus: var(--wp--preset--color--navy-2, #14402B); --sgi-red: #B42318; }
.sgi-form { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.sgi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .sgi-row { grid-template-columns: 1fr; } }
.sgi-field { display: grid; gap: .4rem; }
.sgi-field label { font-weight: 600; font-size: .9375rem; color: var(--sgi-navy); }
.sgi-req { color: var(--sgi-gold); }
.sgi-opt { font-weight: 400; color: var(--sgi-slate); font-size: .8125rem; }
.sgi-field input, .sgi-field select, .sgi-field textarea {
	width: 100%;
	font: inherit;
	font-size: 1rem;
	color: var(--sgi-navy);
	background: #fff;
	border: 1.5px solid var(--sgi-line);
	border-radius: 8px;
	padding: .75rem .9rem;
	transition: border-color .2s ease, box-shadow .2s ease;
	box-sizing: border-box;
}
.sgi-field textarea { resize: vertical; min-height: 8rem; }
.sgi-field input:focus, .sgi-field select:focus, .sgi-field textarea:focus {
	outline: none;
	border-color: var(--sgi-focus);
	box-shadow: 0 0 0 3px rgba(20, 64, 43, .2);
}
.sgi-field.has-error input, .sgi-field.has-error select { border-color: var(--sgi-red); }
.sgi-err { margin: 0; min-height: 0; color: var(--sgi-red); font-size: .875rem; font-weight: 600; }
.sgi-err:empty { display: none; }
.sgi-field.has-error .sgi-err::before { content: "⚠ "; }
.sgi-help, .sgi-privacy { margin: 0; font-size: .8125rem; color: var(--sgi-slate); line-height: 1.55; }
.sgi-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sgi-submit[disabled] { opacity: .75; cursor: progress; }
.sgi-status:focus { outline: none; }
.sgi-success, .sgi-error-msg { margin: 0 0 1rem; padding: 1rem 1.15rem; border-radius: 8px; font-weight: 500; line-height: 1.55; }
.sgi-success { background: #ECFDF3; border-left: 4px solid #12B76A; color: #054F31; }
.sgi-error-msg { background: #FEF3F2; border-left: 4px solid var(--sgi-red); color: #7A271A; }
.sgi-form[hidden] { display: none; }
/* Keep focused fields and messages clear of the site's fixed header */
.sgi-field input, .sgi-field select, .sgi-field textarea, .sgi-status { scroll-margin-top: 140px; }
.sgi-notice { margin: 0 0 1rem; padding: .85rem 1rem; border-left: 3px solid var(--wp--preset--color--gold, #E2BE55); background: var(--wp--preset--color--off-white, #F4F7F5); border-radius: 0 6px 6px 0; font-size: .9375rem; font-weight: 600; color: var(--sgi-navy); }
/* Checklist lead form: one column, full-width fields and button */
.sgi--checklist .sgi-form { margin-top: 0; }
.sgi--checklist .wp-block-button, .sgi--checklist .sgi-submit { width: 100%; }
