/* Blue Box child theme — custom rules (loaded via functions.php with cache-busting version) */
/* 2026-08-22: sticky footer — keep footer at the bottom of the viewport on short pages */
html { min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; }
body > header.headwrapper, body > .bodywrapper, body > footer.footwrapper { width: 100%; flex-shrink: 0; }
body > .bodywrapper { flex: 1 0 auto; }
body > footer.footwrapper { margin-top: auto; }

/* 2026-08-22: Ninja Forms on red sidebar panels — white text, black button (matches old DHVC look) */
.matgrp-contact-form, .matgrp-subcontractor-form { color: #fff; }
.matgrp-contact-form .nf-form-title, .matgrp-subcontractor-form .nf-form-title,
.matgrp-contact-form .nf-form-fields-required, .matgrp-subcontractor-form .nf-form-fields-required,
.matgrp-contact-form .nf-field-label label, .matgrp-subcontractor-form .nf-field-label label,
.matgrp-contact-form .ninja-forms-req-symbol, .matgrp-subcontractor-form .ninja-forms-req-symbol,
.matgrp-contact-form .nf-field-description, .matgrp-subcontractor-form .nf-field-description,
.matgrp-contact-form .nf-error-msg, .matgrp-subcontractor-form .nf-error-msg,
.matgrp-contact-form .nf-form-errors, .matgrp-subcontractor-form .nf-form-errors,
.matgrp-contact-form .nf-response-msg, .matgrp-subcontractor-form .nf-response-msg { color: #fff !important; }
.matgrp-contact-form .nf-error .ninja-forms-field, .matgrp-subcontractor-form .nf-error .ninja-forms-field { border-color: #fff !important; }
.matgrp-contact-form input[type="button"], .matgrp-subcontractor-form input[type="button"],
.matgrp-contact-form .nf-field-element input[type="submit"], .matgrp-subcontractor-form .nf-field-element input[type="submit"] { background: #000; color: #fff; border: 0; padding: 10px 24px; cursor: pointer; }
.matgrp-contact-form input[type="button"]:hover, .matgrp-subcontractor-form input[type="button"]:hover { background: #222; }

/* 2026-08-22: typed text stays dark inside the white input boxes */
.matgrp-contact-form .nf-field-element input:not([type="button"]):not([type="submit"]),
.matgrp-subcontractor-form .nf-field-element input:not([type="button"]):not([type="submit"]),
.matgrp-contact-form .nf-field-element textarea, .matgrp-subcontractor-form .nf-field-element textarea,
.matgrp-contact-form .nf-field-element select, .matgrp-subcontractor-form .nf-field-element select { color: #222 !important; background-color: #fff !important; }
.matgrp-contact-form .nf-field-element ::placeholder, .matgrp-subcontractor-form .nf-field-element ::placeholder { color: #888; opacity: 1; }
