/* NJ Gold Star Hero Form — form card in the hero of home, service and service-area pages.
   Colours and fonts read the Elementor Kit (Site Settings → Global Colors / Fonts), so the card follows the site. */

/* Service and area pages: the hero's one column becomes text (left) + form (right). */
.ngs-hf > .e-con > .e-con-inner:has(> .ngshf) {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
	column-gap: 48px;
	row-gap: 14px;
	align-items: start;
	align-content: start;
}
.ngs-hf > .e-con > .e-con-inner:has(> .ngshf) > * { grid-column: 1; min-width: 0; }
/* The "short answer" box has a fixed width for a one-column hero; in the left column it fits the column. */
.ngs-hf .ngs-answer { width: auto !important; max-width: 100% !important; }
/* Breadcrumb links on the dark hero: a site-wide link colour made them near-invisible. */
.ngs-hero .ngs-crumbs a { color: inherit !important; }
.ngs-hero .ngs-crumbs a:hover { color: var(--e-global-color-secondary, #f2b01e) !important; }
.ngs-hf > .e-con > .e-con-inner:has(> .ngshf) > .ngshf { grid-column: 2; grid-row: 1 / span 40; align-self: center; }

/* Home: the hero already has two columns; the form replaces the "Why homeowners call us first" box. */
.ngs-hf--replace-box .ngs-hero-box { display: none !important; }
.ngs-hf .e-grid:has(> .ngshf) { width: 100%; --e-con-grid-template-columns: minmax(0, 1fr) minmax(340px, 420px) !important; --column-gap: 56px !important; }
.ngs-hf--replace-box .e-grid:has(> .ngshf) { align-items: center; }
.ngs-hf .ngshf { width: 100%; max-width: 440px; justify-self: end; }

@media (max-width: 1024px) {
	.ngs-hf > .e-con > .e-con-inner:has(> .ngshf) { grid-template-columns: minmax(0, 1fr); }
	.ngs-hf .e-grid:has(> .ngshf) { --e-con-grid-template-columns: minmax(0, 1fr) !important; }
	.ngs-hf > .e-con > .e-con-inner:has(> .ngshf) > .ngshf { grid-column: 1; grid-row: auto; order: 99; justify-self: stretch; max-width: 560px; }
	.ngs-hf .ngshf { justify-self: stretch; max-width: 560px; }
}

/* ------------------------------------------------------------- card */
.ngshf-card {
	background: #fff;
	color: var(--e-global-color-text, #2b2f33);
	border-top: 4px solid var(--e-global-color-secondary, #f2b01e);
	border-radius: 8px;
	box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
	padding: 24px 24px 18px;
	font-family: var(--e-global-typography-text-font-family, "Source Sans 3"), system-ui, sans-serif;
	text-align: left;
}
.ngshf-title {
	margin: 0 0 4px;
	font-family: var(--e-global-typography-primary-font-family, "Archivo"), sans-serif;
	font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -.01em;
	color: var(--e-global-color-primary, #17191c); text-transform: none;
}
.ngshf-sub { margin: 0 0 14px; font-size: 14.5px; line-height: 1.45; color: #555b61; }

.ngshf-steps { display: flex; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; }
.ngshf-steps li {
	flex: 1; counter-increment: s; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	color: #8a9096; padding-top: 7px; border-top: 3px solid #e5e2db;
}
.ngshf-steps li::before { content: counter(s) ". "; }
.ngshf[data-step="1"] .ngshf-steps .is-1, .ngshf[data-step="2"] .ngshf-steps li { color: var(--e-global-color-primary, #17191c); border-top-color: var(--e-global-color-secondary, #f2b01e); }

.ngshf-form { margin: 0; }
.ngshf-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 11px; }
.ngshf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ngshf-form label { display: block; font-size: 13.5px; font-weight: 700; color: #3a3f44; margin: 0; }
.ngshf-form label > input, .ngshf-form label > select { display: block; margin-top: 4px; }
.ngshf-err { display: block; margin-top: 3px; }
.ngshf-req { color: #b3261e; margin-left: 2px; }
.ngshf-form input[type="text"], .ngshf-form input[type="tel"], .ngshf-form input[type="email"], .ngshf-form select {
	width: 100%; box-sizing: border-box; height: 44px; padding: 8px 11px; font: inherit; font-size: 15px; font-weight: 400;
	color: #17191c; background: #fff; border: 1px solid #cfd3d7; border-radius: 4px;
}
.ngshf-form input:focus, .ngshf-form select:focus { outline: 2px solid var(--e-global-color-secondary, #f2b01e); outline-offset: 1px; border-color: #17191c; }
.ngshf-form [aria-invalid="true"] { border-color: #b3261e; }
.ngshf-err { color: #b3261e; font-size: 12.5px; font-weight: 600; }
.ngshf-alert { background: #fdecea; color: #8a1c14; border-radius: 4px; padding: 9px 11px; font-size: 14px; margin: 0 0 12px; }
.ngshf-ok { background: #e8f5e9; color: #1d5b22; border-radius: 4px; padding: 14px; font-size: 15px; font-weight: 600; line-height: 1.45; }

.ngshf-consent { display: flex !important; gap: 8px; align-items: flex-start; font-size: 11px !important; line-height: 1.4; font-weight: 400 !important; color: #6b7177 !important; }
.ngshf-consent input { margin: 2px 0 0; flex: 0 0 auto; }
.ngshf-note { margin: 0; font-size: 11.5px; color: #6b7177; }
.ngshf-note a, .ngshf-call a { color: inherit; text-decoration: underline; }

.ngshf-btn {
	display: block; width: 100%; border: 0; border-radius: 4px; cursor: pointer; padding: 14px 16px;
	background: var(--e-global-color-secondary, #f2b01e); color: var(--e-global-color-primary, #17191c);
	font-family: var(--e-global-typography-accent-font-family, "Archivo"), sans-serif; font-weight: 800; font-size: 15px;
	letter-spacing: .05em; text-transform: uppercase;
}
.ngshf-btn:hover, .ngshf-btn:focus-visible { filter: brightness(1.06); }
.ngshf-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.ngshf-back { background: none; border: 0; padding: 10px 4px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; color: #555b61; text-decoration: underline; }
.ngshf-call { margin: 12px 0 0; font-size: 13.5px; color: #555b61; text-align: center; }
.ngshf-call a { font-weight: 700; color: var(--e-global-color-primary, #17191c); }
.ngshf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Steps: without JavaScript every step shows (the form still works); with it, one at a time (2 or 3 steps). */
.ngshf-js .ngshf-step { display: none; }
.ngshf-js[data-step="1"] .ngshf-step--1, .ngshf-js[data-step="2"] .ngshf-step--2, .ngshf-js[data-step="3"] .ngshf-step--3 { display: grid; }
.ngshf:not(.ngshf-js) .ngshf-next, .ngshf:not(.ngshf-js) .ngshf-back, .ngshf:not(.ngshf-js) .ngshf-steps { display: none; }

@media (max-width: 480px) {
	.ngshf-card { padding: 20px 16px 14px; }
	.ngshf-row { grid-template-columns: 1fr; }
	.ngshf-title { font-size: 21px; }
}

/* ------------------------------------------------------------- hero background photo (service + service-area pages)
   The page's own top picture is drawn behind the hero with a dark overlay, as on the home page. */
.ngs-hero.ngs-hf-photo { background-size: cover; background-position: center center; background-repeat: no-repeat; position: relative; isolation: isolate; }
.ngs-hero.ngs-hf-photo::before {
	content: ''; display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(23, 25, 28, .90) 0%, rgba(23, 25, 28, .74) 55%, rgba(23, 25, 28, .58) 100%);
}
.ngs-hero.ngs-hf-photo > * { position: relative; z-index: 1; }
/* The picture's old place in the article is hidden, so the photo is not shown twice. */
.ngshf-bg-src { display: none !important; }
@media (max-width: 767px) {
	.ngs-hero.ngs-hf-photo::before { background: rgba(23, 25, 28, .82); }
}

/* ------------------------------------------------------------- Contact Form 7 markup (hero + Contact page)
   CF7 wraps each field in spans and adds its own messages; these rules make it look like the built-in form. */
.ngshf .wpcf7, .ngs-quote--cf7 .wpcf7 { margin: 0; }
.ngshf .wpcf7-form-control-wrap, .ngs-quote--cf7 .wpcf7-form-control-wrap { display: block; margin-top: 4px; }
.ngshf .wpcf7 form { margin: 0; }
.ngshf .wpcf7-form p { margin: 0; }
.ngshf .wpcf7-not-valid-tip, .ngs-quote--cf7 .wpcf7-not-valid-tip { color: #b3261e; font-size: 12.5px; font-weight: 600; margin-top: 3px; display: block; }
.ngshf .wpcf7-not-valid, .ngs-quote--cf7 .wpcf7-not-valid { border-color: #b3261e !important; }
.ngshf .wpcf7 form .wpcf7-response-output, .ngs-quote--cf7 .wpcf7 form .wpcf7-response-output { margin: 12px 0 0; padding: 9px 11px; border-radius: 4px; font-size: 14px; border-width: 1px; }
.ngshf .wpcf7 form.invalid .wpcf7-response-output, .ngshf .wpcf7 form.failed .wpcf7-response-output, .ngshf .wpcf7 form.spam .wpcf7-response-output { background: #fdecea; color: #8a1c14; border-color: #e6b3ae; }
.ngshf .wpcf7 form.sent .wpcf7-response-output { background: #e8f5e9; color: #1d5b22; border-color: #b9dcbc; font-size: 15px; font-weight: 600; line-height: 1.45; padding: 14px; }
.ngshf .wpcf7-spinner { display: block; margin: 8px auto 0; }
.ngshf .wpcf7-list-item { margin: 0; display: block; }
.ngshf .wpcf7-list-item label { display: flex !important; gap: 8px; align-items: flex-start; font-size: 11px !important; line-height: 1.4; font-weight: 400 !important; color: #6b7177 !important; }
.ngshf .wpcf7-list-item input { margin: 2px 0 0; flex: 0 0 auto; }
.ngshf .ngshf-step--1 .ngshf-next, .ngshf .ngshf-btn[type=submit] { width: 100%; }
.ngshf .ngshf-hp, .ngshf .wpcf7 .ngshf-hp, .ngs-quote--cf7 .ngs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ngshf .wpcf7 input[type=submit].ngshf-btn { -webkit-appearance: none; appearance: none; }
/* After a successful send: hide the steps and fields, keep the thank-you. */
.ngshf.is-sent .ngshf-steps, .ngshf.is-sent .ngshf-step { display: none !important; }
/* Contact page: the full CF7 form keeps the built-in form's spacing. */
.ngs-quote--cf7 .ngs-form { display: grid; gap: 14px; }
.ngs-quote--cf7 .ngs-form p { margin: 0; }
.ngs-quote--cf7 .ngs-form .wpcf7-form-control-wrap { margin-top: 5px; }
.ngs-quote--cf7 .wpcf7-list-item { margin: 0; display: block; }
.ngs-quote--cf7 .wpcf7-list-item label { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.5; font-weight: 400; color: var(--ngs-muted, #6b7177); }
.ngs-quote--cf7 input[type=submit].ngs-submit { justify-self: start; -webkit-appearance: none; appearance: none; }

/* ------------------------------------------------------------- 3-step Contact Form 7 hero form (1 Dec 2026)
   Same flow and layout as hidalgobrothersroofing.com, in NJ Gold Star's colours (Elementor Kit globals). */
.ngshf--3 .ngshf-card { padding: 26px 24px 18px; }
.ngshf--3 .ngshf-title { text-transform: uppercase; font-size: 25px; letter-spacing: 0; }
.ngshf--3 .ngshf-sub { margin-bottom: 12px; font-size: 14px; }
.ngshf-progress { display: flex; align-items: center; gap: 8px; margin: 0 0 12px !important; font-size: 13.5px; font-weight: 700; color: var(--e-global-color-primary, #17191c); }
.ngshf-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--e-global-color-secondary, #f2b01e); color: var(--e-global-color-primary, #17191c); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ngshf--3 .ngshf-form fieldset { gap: 10px; }
.ngshf--3 .ngshf-form label { font-size: 0; } /* field names live in the placeholders and in screen-reader text */
.ngshf--3 .ngshf-form label.ngshf-file { font-size: 13px; font-weight: 600; color: #555b61; }
.ngshf--3 .ngshf-form .wpcf7-form-control-wrap { margin-top: 0; font-size: 15px; }
.ngshf--3 .ngshf-form input[type="text"], .ngshf--3 .ngshf-form input[type="tel"], .ngshf--3 .ngshf-form input[type="email"], .ngshf--3 .ngshf-form select, .ngshf--3 .ngshf-form textarea {
	width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 15px; font-weight: 500; color: #17191c;
	background: #f6f4ef; border: 1px solid #ddd8cd; border-radius: 6px;
}
.ngshf--3 .ngshf-form textarea { min-height: 84px; resize: vertical; }
.ngshf--3 .ngshf-form ::placeholder { color: #70757b; opacity: 1; font-weight: 600; }
.ngshf--3 .ngshf-form select { color: #3a3f44; font-weight: 600; }
.ngshf--3 .ngshf-form input:focus, .ngshf--3 .ngshf-form select:focus, .ngshf--3 .ngshf-form textarea:focus { background: #fff; }
.ngshf--3 .ngshf-form input[type="file"] { display: block; margin-top: 6px; font-size: 13px; max-width: 100%; }
.ngshf--3 .ngshf-btn { border-radius: 6px; padding: 15px 16px; font-size: 16px; letter-spacing: .02em; text-transform: none; }
.ngshf--3 .ngshf-note { font-size: 11.5px; line-height: 1.45; color: #6b7177; }
.ngshf-hint { margin: 0 0 4px !important; padding: 8px 10px; border-radius: 6px; background: #fff7e0; color: #5b4300; font-size: 13px; line-height: 1.45; }
.ngshf-hint a { color: inherit; font-weight: 700; text-decoration: underline; }
.ngshf-alt { margin: 12px 0 2px !important; text-align: center; font-size: 14px; color: #3a3f44; }
.ngshf-alt a { color: var(--e-global-color-accent, #8a6306); font-weight: 700; text-decoration: none; }
.ngshf-alt a:hover, .ngshf-alt a:focus-visible { text-decoration: underline; }
.ngshf-promise { margin: 6px 0 0 !important; text-align: center; font-size: 13.5px; font-weight: 800; color: var(--e-global-color-primary, #17191c); }
.ngshf--3 .ngshf-actions { grid-template-columns: auto 1fr; }
.ngshf.is-sent .ngshf-progress, .ngshf.is-sent .ngshf-alt, .ngshf.is-sent .ngshf-hint { display: none !important; }
.ngshf .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
@media (max-width: 480px) { .ngshf--3 .ngshf-title { font-size: 22px; } }
/* Contact Form 7 wraps grouped fields in <p> and <br> (its auto-paragraph setting): let rows and button pairs lay out as
   intended, keep the phone number on one line. */
.ngshf--3 .ngshf-row > p, .ngshf--3 .ngshf-actions > p { display: contents; }
.ngshf-hint[hidden] { display: none !important; }
.ngshf--3 .ngshf-form br { display: none; }
.ngshf--3 .ngshf-actions { grid-template-columns: auto 1fr; align-items: center; }
.ngshf--3 .ngshf-actions .ngshf-btn, .ngshf--3 .ngshf-actions input[type=submit] { width: 100%; }
.ngshf-alt a { white-space: nowrap; }
