/* TradesFolks 18.4.128 — RFQ mobile gap hard-collapse
   Purpose: remove all inherited desktop spacing/min-height above the mobile form. */

@media(max-width:820px){

  /* The entire RFQ block must participate in normal document flow */
  .tf-homepage .tf-rfq-canonical{
    position:relative!important;
    display:block!important;
    width:calc(100% - 16px)!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:6px auto 10px!important;
    padding:0!important;
    inset:auto!important;
    transform:none!important;
    background:transparent!important;
    overflow:visible!important;
  }

  /* Kill any inherited aspect-ratio/min-height/background canvas */
  .tf-homepage .tf-rfq-canonical__canvas{
    position:relative!important;
    display:block!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    margin:0!important;
    padding:0!important;
    inset:auto!important;
    transform:none!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  /* Nothing from desktop artwork/copy should reserve layout space */
  .tf-homepage .tf-rfq-canonical__artwork,
  .tf-homepage .tf-rfq-canonical__scrim,
  .tf-homepage .tf-rfq-canonical__copy{
    display:none!important;
    position:absolute!important;
    width:0!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }

  /* Form card directly becomes the visible mobile section */
  .tf-homepage .tf-rfq-canonical__form-card{
    position:relative!important;
    display:block!important;
    inset:auto!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    transform:none!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:11px!important;
    box-sizing:border-box!important;
    background:linear-gradient(145deg,#fff7d1 0%,#ffe79a 100%)!important;
    border:1px solid rgba(237,176,25,.45)!important;
    border-radius:14px!important;
    box-shadow:0 7px 18px rgba(148,102,0,.10)!important;
  }

  .tf-homepage .tf-rfq-canonical__form-card>h2{
    margin:0 0 8px!important;
    font-size:19px!important;
    line-height:1.05!important;
  }

  .tf-homepage .tf-rfq-canonical__form{
    gap:7px!important;
  }

  .tf-homepage .tf-rfq-canonical__form input,
  .tf-homepage .tf-rfq-canonical__form select{
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    padding:0 10px!important;
    border-radius:9px!important;
    font-size:11.5px!important;
  }

  .tf-homepage .tf-rfq-canonical__form textarea{
    height:64px!important;
    min-height:64px!important;
    max-height:64px!important;
    padding:9px 10px!important;
    border-radius:9px!important;
    font-size:11.5px!important;
  }

  .tf-homepage .tf-rfq-canonical__row{
    gap:7px!important;
  }

  .tf-homepage .tf-rfq-canonical__form button[type="submit"]{
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    margin:0!important;
    font-size:12px!important;
  }

  /* Remove common generic spacing inherited by homepage sections */
  .tf-homepage .tf-rfq-canonical.section,
  .tf-homepage section.tf-rfq-canonical{
    padding-top:0!important;
    padding-bottom:0!important;
  }

  /* If the RFQ wrapper is immediately after another section, keep only a tiny gap */
  .tf-homepage section + .tf-rfq-canonical,
  .tf-homepage .tf-rfq-canonical + section{
    margin-top:6px!important;
  }
}

@media(max-width:430px){
  .tf-homepage .tf-rfq-canonical{
    width:calc(100% - 12px)!important;
    margin-top:5px!important;
  }

  .tf-homepage .tf-rfq-canonical__form-card{
    padding:10px!important;
    border-radius:13px!important;
  }

  .tf-homepage .tf-rfq-canonical__form-card>h2{
    font-size:18px!important;
    margin-bottom:7px!important;
  }
}
