#contact .gform_wrapper input[type="text"],
#contact .gform_wrapper input[type="email"],
#contact .gform_wrapper textarea {
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
}
#contact .gform_wrapper ::placeholder { color: #888; }

/* Quote form on dark red sections: white labels (2026-11-25) */
.banner-form-section .gform_wrapper .gfield_label,
.banner-form-section .gform_wrapper legend,
.banner-form-section .gform_wrapper .gchoice label,
.banner-form-section .gform_wrapper .gfield_description,
.banner-form-section .gform_wrapper .gform_required_legend,
.banner-form-section .gform_wrapper .gfield_html,
.contact-us-section .gform_wrapper .gfield_label,
.contact-us-section .gform_wrapper legend,
.contact-us-section .gform_wrapper .gchoice label,
.contact-us-section .gform_wrapper .gfield_description,
.contact-us-section .gform_wrapper .gform_required_legend,
.contact-us-section .gform_wrapper .gfield_html {
  color: #fff !important;
}
.banner-form-section .gform_wrapper .gfield_required,
.contact-us-section .gform_wrapper .gfield_required {
  color: #ffd2d2 !important;
}

.banner-form-section .gform_wrapper .gfield_html *,
.contact-us-section .gform_wrapper .gfield_html * {
  color: #fff !important;
}

/* Header "Get a Free Quote" button (2026-11-25) */
li.menu-quote-button > a {
  background: #8b1a1a !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 10px 18px !important;
}
li.menu-quote-button > a:hover {
  background: #6b0f0f !important;
  color: #fff !important;
}

/* === Quote page /request-a-free-quote/ (page 997) - 2026-11-26 === */
.page-id-997 #legacy-content > .wrapper > h1,
.page-id-997 #legacy-contact-form-section { display: none !important; }
.page-id-997 #legacy-content { background: #f4f6f8; padding: 40px 0 56px; }
.cmiq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); grid-template-areas: "intro card" "more card"; grid-template-rows: auto 1fr; column-gap: 56px; align-items: start; }
.cmiq-intro { grid-area: intro; }
.cmiq-more { grid-area: more; }
.cmiq-card { grid-area: card; background: #fff; border-top: 5px solid #8b1a1a; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.10); padding: 22px 24px 18px; }
.cmiq h1 { font-size: 42px; line-height: 1.12; margin: 8px 0 14px; color: #111; }
.cmiq-sub { font-size: 18px; line-height: 1.55; color: #333; margin: 0 0 22px; }
.cmiq-checks { list-style: none; margin: 0 0 24px; padding: 0; }
.cmiq-checks li { position: relative; padding-left: 30px; margin: 0 0 10px; font-size: 17px; color: #222; }
.cmiq-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #269041; }
.cmiq-checks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cmiq-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid #dde1e6; }
.cmiq-steps li { font-size: 15px; line-height: 1.35; color: #333; margin: 0; }
.cmiq-steps span { display: block; width: 30px; height: 30px; line-height: 30px; text-align: center; border-radius: 50%; border: 2px solid #8b1a1a; color: #8b1a1a; font-weight: 700; margin-bottom: 8px; }
.cmiq-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 15px; }
.cmiq-badge { background: #fff; border: 1px solid #d0d5db; border-radius: 6px; padding: 8px 12px; color: #333; }
.cmiq-badge strong { color: #8b1a1a; }
.cmiq-phone { color: #8b1a1a !important; font-weight: 600; text-decoration: none; }
.cmiq-card h2 { font-size: 24px; margin: 0 0 12px; color: #111; }
.cmiq-other { margin: 10px 0 0; text-align: center; font-size: 14px; color: #555; }
.cmiq-other a { color: #8b1a1a; text-decoration: underline; }
.cmiq-card .gform_required_legend, .cmiq-card #field_1_9, .cmiq-card #field_1_10, .cmiq-card #field_1_11 { display: none !important; }
.cmiq-card .gform_fields { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)) !important; column-gap: 12px !important; row-gap: 10px !important; }
.cmiq-card .gform_fields > .gfield { grid-column: span 12 !important; margin: 0 !important; }
.cmiq-card fieldset.gfield { border: 0 !important; padding: 0 !important; }
.cmiq-card .gform_fields > #field_1_1, .cmiq-card .gform_fields > #field_1_2 { grid-column: span 6 !important; }
.cmiq-card .gfield_label, .cmiq-card legend { color: #222 !important; font-size: 15px !important; font-weight: 600 !important; margin-bottom: 4px !important; }
.cmiq-card .gfield_required { color: #b3160f !important; }
.cmiq-card .gfield_description { font-size: 13px !important; color: #666 !important; padding-top: 4px !important; }
.cmiq-card input[type=text], .cmiq-card input[type=email], .cmiq-card input[type=tel], .cmiq-card textarea { background: #fff !important; color: #222 !important; border: 1px solid #c4c9cf !important; border-radius: 6px !important; padding: 9px 11px !important; font-size: 16px !important; width: 100% !important; }
.cmiq-card textarea { height: 64px !important; min-height: 64px !important; }
.cmiq-card ::placeholder { color: #999 !important; }
.cmiq-card .cmi-building-type .gfield_radio { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cmiq-card .cmi-building-type .gchoice { margin: 0 !important; position: relative; }
.cmiq-card .cmi-building-type .gchoice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cmiq-card .cmi-building-type .gchoice label { display: block !important; height: 100%; max-width: none !important; margin: 0 !important; padding: 72px 6px 8px !important; border: 1.5px solid #d0d5db; border-radius: 8px; background-color: #f8f9fa !important; background-repeat: no-repeat !important; background-position: center 8px !important; background-size: auto 60px !important; text-align: center; font-size: 13px !important; line-height: 1.25; font-weight: 600; color: #333 !important; cursor: pointer; }
.cmiq-card .cmi-building-type .gchoice_1_12_0 label::before { background-image: url(https://cmi-insulation.com/wp-content/uploads/2026/11/cmi-quote-pre-engineered-metal-building.webp); }
.cmiq-card .cmi-building-type .gchoice_1_12_1 label::before { background-image: url(https://cmi-insulation.com/wp-content/uploads/2026/11/cmi-quote-pole-building-wide.webp); }
.cmiq-card .cmi-building-type .gchoice_1_12_2 label::before { background-image: url(https://cmi-insulation.com/wp-content/uploads/2026/11/cmi-quote-tubular-steel-building.webp); }
.cmiq-card .cmi-building-type .gchoice label:hover { border-color: #8b1a1a; }
.cmiq-card .cmi-building-type .gchoice input:checked + label { border: 2px solid #8b1a1a; background-color: #fff; box-shadow: 0 0 0 3px rgba(139,26,26,.12); background-color: #fff !important; color: #8b1a1a !important; }
.cmiq-card .cmi-building-type .gchoice input:focus-visible + label { outline: 2px solid #8b1a1a; outline-offset: 2px; }
.cmiq-card .gform_footer { margin-top: 6px !important; padding: 0 !important; }
.cmiq-card .gform_footer .gform_button { width: 100% !important; background: #269041 !important; color: #fff !important; border: 0 !important; border-radius: 6px !important; padding: 14px !important; font-size: 18px !important; font-weight: 700 !important; cursor: pointer; }
.cmiq-card .gform_footer .gform_button:hover { background: #1e7434 !important; }

.cmiq-card #field_1_2 .gfield_description, .cmiq-card #field_1_8 > .gfield_label { display: none !important; }
.cmiq-card textarea { height: 44px !important; min-height: 44px !important; }
.cmiq-card h2 { margin-bottom: 8px; }
.cmiq-more { padding-top: 4px; }


.cmiq .cmiq-hl { color: #fff; white-space: nowrap; text-shadow: -2px -2px 0 #8b1a1a, 2px -2px 0 #8b1a1a, -2px 2px 0 #8b1a1a, 2px 2px 0 #8b1a1a, 0 2px 0 #8b1a1a, 2px 0 0 #8b1a1a, 0 -2px 0 #8b1a1a, -2px 0 0 #8b1a1a, 0 3px 6px rgba(0,0,0,.15); }
.cmiq-card { padding: 16px 20px 12px !important; }
.cmiq-card h2 { font-size: 22px !important; margin: 0 0 4px !important; }
.cmiq-card #field_1_7 { display: none !important; }
.cmiq-card .gform_fields { row-gap: 7px !important; }
.cmiq-card .gfield_label, .cmiq-card legend { font-size: 14px !important; margin-bottom: 3px !important; }
.cmiq-card input[type=text], .cmiq-card input[type=email], .cmiq-card input[type=tel] { padding: 7px 10px !important; }
.cmiq-card .cmi-building-type .gchoice label { padding: 54px 4px 6px !important; background-size: auto 44px !important; background-position: center 6px !important; font-size: 12.5px !important; }
.cmiq-card .gform_footer .gform_button { padding: 11px !important; }
.cmiq-other { margin-top: 6px !important; }
@media (max-width: 900px) {
  .cmiq { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "card" "more"; }
  .cmiq h1 { font-size: 30px; }
  .cmiq-sub { font-size: 16px; }
  .cmiq-card { margin: 8px 0 28px; padding: 18px 16px 14px; }
  .page-id-997 #legacy-content { padding: 24px 0 40px; }
}
@media (max-width: 420px) {
  .cmiq-card .gform_fields > #field_1_1, .cmiq-card .gform_fields > #field_1_2 { grid-column: span 12 !important; }
  .cmiq-card .cmi-building-type .gchoice label { font-size: 12px !important; padding-top: 62px !important; background-size: auto 50px !important; }
  .cmiq-steps { grid-template-columns: 1fr; }
}

/* Quote page tiles v2 (2026-11-26): bigger, lighter pictures; compact text boxes */
.cmiq-card .cmi-building-type .gfield_radio { gap: 10px !important; }
.cmiq-card .cmi-building-type .gchoice label { padding: 0 4px 8px !important; background: #fff !important; border: 1.5px solid #d6dade !important; border-radius: 10px !important; font-size: 13px !important; font-weight: 500 !important; line-height: 1.25 !important; overflow: hidden; }
.cmiq-card .cmi-building-type .gchoice label::before { content: ""; display: block; height: 96px; margin: 0 -4px 8px; background-color: #fff; background-repeat: no-repeat; background-position: center 6px; background-size: auto 88px; border-bottom: 1px solid #eceef0; filter: brightness(1.07) saturate(1.08); }
.cmiq-card .cmi-building-type .gchoice input:checked + label { border: 2px solid #8b1a1a !important; box-shadow: 0 2px 8px rgba(139,26,26,.18) !important; color: #222 !important; font-weight: 600 !important; }
.cmiq-card input[type=text], .cmiq-card input[type=email], .cmiq-card input[type=tel] { height: 32px !important; min-height: 32px !important; padding: 4px 9px !important; font-size: 14px !important; }
.cmiq-card .gfield_label { font-size: 13px !important; margin-bottom: 2px !important; }
.cmiq-card .gform_fields { row-gap: 6px !important; }
@media (max-width: 420px) {
  .cmiq-card .cmi-building-type .gchoice label { font-size: 12px !important; }
  .cmiq-card .cmi-building-type .gchoice label::before { height: 74px; background-size: auto 66px; }
}

/* Home page bottom band: button to the quote page instead of the form (2026-11-26) */
.banner-container.cmi-home-cta { display: block !important; text-align: center; max-width: 760px; margin: 0 auto; }
.cmi-home-cta h2 { margin: 0 0 10px !important; max-width: none !important; width: auto !important; }
.cmi-home-cta p { color: #fff !important; font-size: 18px; margin: 0 0 22px; }
.cmi-home-cta .cmi-cta-btn { display: inline-block; background: #269041; color: #fff !important; font-size: 20px; font-weight: 700; padding: 15px 36px; border-radius: 6px; text-decoration: none !important; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.cmi-home-cta .cmi-cta-btn:hover { background: #1e7434; }

/* Quote page phone fixes (2026-11-26): keep every line inside the screen on real phones (iOS text sizing) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 900px) {
  .page-id-997 #legacy-content .wrapper { max-width: 100% !important; overflow-x: hidden; box-sizing: border-box; }
  .cmiq, .cmiq > div, .cmiq-checks, .cmiq-steps, .cmiq-trust { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
  .cmiq-checks li { display: block !important; width: auto !important; max-width: 100% !important; white-space: normal !important; overflow-wrap: break-word; word-break: normal; font-size: 16px !important; line-height: 1.45 !important; box-sizing: border-box; }
  .cmiq-steps li, .cmiq-trust > * { white-space: normal !important; overflow-wrap: break-word; }
}
@media (max-width: 900px) {
  .cmiq-card, .cmiq-card * { box-sizing: border-box !important; }
  .cmiq-card form, .cmiq-card .gform_wrapper, .cmiq-card .gform_body, .cmiq-card .gform_fields, .cmiq-card .gfield, .cmiq-card .ginput_container { max-width: 100% !important; min-width: 0 !important; }
  .cmiq-card input[type=text], .cmiq-card input[type=email], .cmiq-card input[type=tel], .cmiq-card textarea { font-size: 16px !important; height: 38px !important; min-height: 38px !important; max-width: 100% !important; }
  .cmiq-card .ginput_recaptcha { max-width: 100%; overflow: visible; }
}
@media (max-width: 400px) {
  .cmiq-card .ginput_recaptcha { transform: scale(.85); transform-origin: 0 0; height: 68px; }
  .cmiq-card { padding-left: 12px !important; padding-right: 12px !important; }
}