/**
 * EZGation — Quote + Contact Gravity Forms denser grid
 * Page chrome for Quote lives in ez-pages-client.css (.ez-qt-*).
 */

/* ---- Shared GF denser layout (Quote + Contact) ---- */
body.page-id-12 .gform_wrapper,
body.page-get-a-quote .gform_wrapper,
body.page-id-466 .gform_wrapper,
body.page-contact .gform_wrapper {
  max-width: none;
}

body.page-id-12 .gform_fields,
body.page-get-a-quote .gform_fields,
body.page-id-466 .gform_fields,
body.page-contact .gform_fields {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.1rem !important;
}

body.page-id-12 .gfield,
body.page-get-a-quote .gfield,
body.page-id-466 .gfield,
body.page-contact .gfield {
  margin: 0 !important;
  grid-column: span 1;
}

/* Full-width: product, message, file, consent, application (Contact = Quote) */
body.page-id-12 .ez-field-product,
body.page-id-12 .ez-field-message,
body.page-id-12 .ez-field-attachment,
body.page-id-12 .ez-field-consent,
body.page-id-12 .ez-field-application,
body.page-get-a-quote .ez-field-product,
body.page-get-a-quote .ez-field-message,
body.page-get-a-quote .ez-field-attachment,
body.page-get-a-quote .ez-field-consent,
body.page-get-a-quote .ez-field-application,
body.page-id-466 .ez-field-product,
body.page-id-466 .ez-field-message,
body.page-id-466 .ez-field-attachment,
body.page-id-466 .ez-field-consent,
body.page-id-466 .ez-field-application,
body.page-contact .ez-field-product,
body.page-contact .ez-field-message,
body.page-contact .ez-field-attachment,
body.page-contact .ez-field-consent,
body.page-contact .ez-field-application {
  grid-column: 1 / -1;
}

body.page-id-12 .gform_footer,
body.page-get-a-quote .gform_footer,
body.page-id-466 .gform_footer,
body.page-contact .gform_footer {
  margin-top: 1.1rem !important;
  padding-top: 0.25rem !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

body.page-id-12 .gfield_label,
body.page-get-a-quote .gfield_label,
body.page-id-466 .gfield_label,
body.page-contact .gfield_label,
body.page-id-12 .gform_wrapper legend.gfield_label,
body.page-get-a-quote .gform_wrapper legend.gfield_label {
  display: block !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.35rem !important;
  color: #0f172a !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body.page-id-12 .gfield_required,
body.page-get-a-quote .gfield_required,
body.page-id-12 .gfield_required_text,
body.page-get-a-quote .gfield_required_text {
  color: #b45309 !important;
}

body.page-id-12 .gform_wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=file]),
body.page-id-12 .gform_wrapper select,
body.page-id-12 .gform_wrapper textarea,
body.page-get-a-quote .gform_wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=file]),
body.page-get-a-quote .gform_wrapper select,
body.page-get-a-quote .gform_wrapper textarea,
body.page-id-466 .gform_wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=file]),
body.page-id-466 .gform_wrapper select,
body.page-id-466 .gform_wrapper textarea,
body.page-contact .gform_wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=file]),
body.page-contact .gform_wrapper select,
body.page-contact .gform_wrapper textarea {
  min-height: 2.65rem;
  border-radius: var(--ez-radius-md, 8px) !important;
  border-color: var(--ez-border, #d7e8e4) !important;
}

body.page-id-12 .gform_wrapper textarea,
body.page-get-a-quote .gform_wrapper textarea,
body.page-id-466 .gform_wrapper textarea,
body.page-contact .gform_wrapper textarea {
  min-height: 6.5rem;
}

body.page-id-466 .elementor-widget-button[data-settings*="_position"],
body.page-contact .elementor-widget-button.elementor-absolute {
  display: none !important;
}

@media (max-width: 720px) {
  body.page-id-12 .gform_fields,
  body.page-get-a-quote .gform_fields,
  body.page-id-466 .gform_fields,
  body.page-contact .gform_fields {
    grid-template-columns: 1fr !important;
  }
}
