/* HORIZON HAWK 1.5.3 - editor-safe imagery and balanced shared layouts. */

/* The block editor is authoritative. Runtime fallback classes may improve
   sizing, but must never imply a fixed theme-owned image source. */
.hh-home img.hh-local-image-152{
  max-width:100%!important;
}

/* OEM: turn the formerly empty media column into an intentional, balanced
   visual card while keeping the complete editor-selected image visible. */
@media(min-width:1051px){
  .hh-home .hh-home-oem-152 .wp-block-columns,
  .hh-home .hh-home-oem-152 .hh-split,
  .hh-home .hh-home-oem-152 [class*="columns"]{
    align-items:stretch!important;
  }
  .hh-home .hh-home-oem-152 .wp-block-column:first-child,
  .hh-home .hh-home-oem-152 figure,
  .hh-home .hh-home-oem-152 [class*="media"]{
    align-self:stretch!important;
    display:flex!important;
    align-items:center!important;
    min-height:100%!important;
    padding:22px!important;
    border:1px solid rgba(15,92,59,.10);
    border-radius:26px;
    background:linear-gradient(145deg,#fff,#eaf6ee);
    overflow:hidden;
  }
  .hh-home .hh-home-oem-152 img.hh-home-oem-image-152{
    width:100%!important;
    height:auto!important;
    max-height:100%!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    border-radius:18px;
  }
}

/* Product specifications: do not stretch the shorter card to the height of
   the longer Configuration Options card. This removes the large blank panel
   on every one of the 24 Vehicle templates. */
.hh-spec-grid-compact{
  align-items:start!important;
}
.hh-spec-grid-compact>section{
  align-self:start!important;
  height:auto!important;
  min-height:0!important;
}

/* All inquiry surfaces use the Fluent Forms fieldset as the real grid. Recent
   Fluent Forms versions wrap every field in this fieldset; placing the grid on
   the outer form left the entire right column unused. */
.hh-inline-form .fluentform form,
.hh-inline-form form.frm-fluent-form,
.hh-inline-form .hhb-fluent-wrap form,
.hh-contact-form-shell .fluentform form,
.hh-contact-form-shell form.frm-fluent-form,
.hh-contact-form-shell .hhb-fluent-wrap form,
.hh-home-inquiry .fluentform form,
.hh-home-inquiry form.frm-fluent-form{
  display:block!important;
}
.hh-inline-form form>fieldset,
.hh-contact-form-shell form>fieldset,
.hh-home-inquiry form>fieldset{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px;
  width:100%;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
.hh-inline-form form>fieldset>.ff-el-group,
.hh-contact-form-shell form>fieldset>.ff-el-group,
.hh-home-inquiry form>fieldset>.ff-el-group{
  min-width:0;
  margin:0!important;
}
.hh-inline-form form>fieldset>.ff-el-group:has(textarea),
.hh-inline-form form>fieldset>.ff-el-group:has([name="product_category"]),
.hh-inline-form form>fieldset>.ff-el-group:has([type="checkbox"]),
.hh-inline-form form>fieldset>.ff-el-group:has(.ff-btn-submit),
.hh-inline-form form>fieldset>.ff-el-group:has(button[type="submit"]),
.hh-contact-form-shell form>fieldset>.ff-el-group:has(textarea),
.hh-contact-form-shell form>fieldset>.ff-el-group:has([name="product_category"]),
.hh-contact-form-shell form>fieldset>.ff-el-group:has([type="checkbox"]),
.hh-contact-form-shell form>fieldset>.ff-el-group:has(.ff-btn-submit),
.hh-contact-form-shell form>fieldset>.ff-el-group:has(button[type="submit"]),
.hh-home-inquiry form>fieldset>.ff-el-group:has(textarea),
.hh-home-inquiry form>fieldset>.ff-el-group:has([name="product_category"]),
.hh-home-inquiry form>fieldset>.ff-el-group:has([type="checkbox"]),
.hh-home-inquiry form>fieldset>.ff-el-group:has(.ff-btn-submit),
.hh-home-inquiry form>fieldset>.ff-el-group:has(button[type="submit"]){
  grid-column:1/-1!important;
}

/* Vehicle and Application inquiry summaries become horizontal information
   bars above a full-width form. The rules live on shared templates, so they
   cover every Vehicle and every Application page. */
.hh-vehicle-contact .hh-contact-band-grid,
.hh-app-inquiry-compact .hh-contact-band-grid{
  grid-template-columns:minmax(0,1fr)!important;
  gap:18px!important;
}
.hh-vehicle-contact .hh-inquiry-product-card-compact{
  position:static!important;
  width:100%;
  grid-template-columns:124px minmax(0,1fr)!important;
}
.hh-vehicle-contact .hh-inquiry-product-card-compact img{
  width:124px!important;
  height:124px!important;
}
.hh-app-inquiry-compact .hh-contact-band-grid>div:first-child{
  display:grid;
  grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr);
  align-items:center;
  gap:8px 28px;
  padding:22px 26px;
  border:1px solid rgba(15,92,59,.12);
  border-radius:22px;
  background:#fff;
}
.hh-app-inquiry-compact .hh-contact-band-grid>div:first-child .hh-eyebrow{
  grid-column:1/-1;
  margin:0;
}
.hh-app-inquiry-compact .hh-contact-band-grid>div:first-child h2,
.hh-app-inquiry-compact .hh-contact-band-grid>div:first-child p{
  margin:0;
}
.hh-app-inquiry-compact .hh-inline-form,
.hh-vehicle-contact .hh-inline-form{
  width:100%;
}

/* Contact and quote pages use the available width instead of rendering every
   visible field in the left half of a two-column shell. */
.hh-contact-form-wide-v142{
  max-width:none!important;
}

@media(max-width:760px){
  .hh-inline-form form>fieldset,
  .hh-contact-form-shell form>fieldset,
  .hh-home-inquiry form>fieldset{
    grid-template-columns:minmax(0,1fr);
  }
  .hh-inline-form form>fieldset>.ff-el-group,
  .hh-contact-form-shell form>fieldset>.ff-el-group,
  .hh-home-inquiry form>fieldset>.ff-el-group{
    grid-column:1!important;
  }
  .hh-vehicle-contact .hh-inquiry-product-card-compact{
    grid-template-columns:86px minmax(0,1fr)!important;
  }
  .hh-vehicle-contact .hh-inquiry-product-card-compact img{
    width:86px!important;
    height:86px!important;
  }
  .hh-app-inquiry-compact .hh-contact-band-grid>div:first-child{
    grid-template-columns:1fr;
    padding:18px;
  }
  .hh-app-inquiry-compact .hh-contact-band-grid>div:first-child .hh-eyebrow{
    grid-column:1;
  }
}

@media(max-width:480px){
  .hh-vehicle-contact .hh-inquiry-product-card-compact{
    display:grid!important;
    grid-template-columns:76px minmax(0,1fr)!important;
  }
  .hh-vehicle-contact .hh-inquiry-product-card-compact img{
    width:76px!important;
    height:76px!important;
  }
}
