/* ============================================================
   MANISH PACKERS & MOVERS — THIRD REFERENCE DESIGN
   Desktop: family/truck image on the left + quote form on right.
   Mobile: show ONLY the quote form; hide the photo and left copy.
   Load this file AFTER the existing css/styles.css.
============================================================ */
.m3x-hero,.m3x-hero *{box-sizing:border-box}
.m3x-hero{
  --m3x-red:#d00000;
  --m3x-red-dark:#ad0000;
  --m3x-yellow:#ffcc00;
  position:relative;
  width:100%;
  min-height:430px;
  padding:24px 0 28px;
  overflow:hidden;
  isolation:isolate;
  background:#e8f3fb;
}
.m3x-hero:before{
  content:"";
  position:absolute;inset:0;z-index:-2;
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.10) 0%,rgba(255,255,255,.08) 45%,rgba(255,255,255,.52) 100%),
    url("../img/hero-moving-family.jpg");
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center 58%;
}
.m3x-hero:after{
  content:"";position:absolute;z-index:-1;left:-2%;right:-2%;bottom:-66px;height:105px;
  background:var(--m3x-red);transform:rotate(-2.2deg);
  border-top:8px solid var(--m3x-yellow);
}
.m3x-layout{
  width:min(1170px,calc(100% - 34px));
  min-height:375px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:28px;
  align-items:center;
  position:relative;
  z-index:1;
}
.m3x-left{
  min-height:365px;
  position:relative;
  display:flex;
  align-items:flex-start;
}
.m3x-left-content{position:relative;z-index:2;width:100%;padding:14px 0 0 8px}
.m3x-title{
  margin:0 0 10px;
  color:#111;
  font-size:clamp(36px,3.1vw,48px);
  line-height:1.05;
  font-weight:900;
  letter-spacing:-1.5px;
  text-shadow:0 1px 1px rgba(255,255,255,.4);
}
.m3x-ribbon{
  width:max-content;max-width:100%;
  min-height:36px;
  display:flex;align-items:center;justify-content:center;gap:10px;
  padding:0 17px;
  color:#fff;
  background:linear-gradient(100deg,#c60000,#e00000);
  border-radius:4px 5px 5px 4px;
  transform:skewX(-13deg);
  box-shadow:0 4px 9px rgba(130,0,0,.18);
  font-size:14px;font-weight:800;white-space:nowrap;
}
.m3x-ribbon>*{transform:skewX(13deg)}
.m3x-ribbon b{color:#ffdf36;font-size:16px}
.m3x-benefits{
  display:flex;flex-direction:column;gap:8px;
  margin:16px 0 0 10px;
}
.m3x-benefits div{display:flex;align-items:center;gap:9px;color:#1d2733;font-size:13px;font-weight:700}
.m3x-benefits i{
  width:19px;height:19px;flex:0 0 19px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:#d00000;color:#fff;font-size:12px;font-style:normal;font-weight:900;
  box-shadow:0 2px 5px rgba(130,0,0,.18);
}

/* Quote form — compact like the selected third design */
.m3x-right{width:100%;max-width:570px;justify-self:end;position:relative;z-index:3}
.m3x-form-card{
  overflow:hidden;
  background:#fff;
  border:2px solid #ffcc00;
  border-radius:13px;
  box-shadow:0 12px 30px rgba(20,37,56,.20);
}
.m3x-form-heading{
  min-height:60px;
  padding:9px 18px;
  display:flex;align-items:center;justify-content:center;gap:12px;
  background:linear-gradient(105deg,#ffca00,#ffdf42);
  color:#111;
}
.m3x-truck-badge{
  width:42px;height:42px;flex:0 0 42px;
  display:flex;align-items:center;justify-content:center;
  border-radius:10px;
  color:#ffdc35;background:#c90000;
  border:2px solid rgba(255,255,255,.75);
  font-size:23px;
  box-shadow:0 3px 7px rgba(120,0,0,.18);
}
.m3x-form-heading h2{
  margin:0;color:#111;font-size:21px;line-height:1.15;font-weight:900;
}
.m3x-form{padding:15px 17px 16px;background:#fff}
.m3x-fields{
  display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;
}
.m3x-fields .form-control{
  width:100%;height:38px;min-height:38px;
  padding:0 10px;
  border:1px solid #d4d7dc;border-radius:5px;
  background:#fff;color:#222;font-size:12px;
  box-shadow:none;outline:none;
  transition:border-color .18s,box-shadow .18s;
}
.m3x-fields .form-control::placeholder{color:#777;opacity:1}
.m3x-fields .form-control:focus{
  border-color:#d00000;
  box-shadow:0 0 0 2px rgba(208,0,0,.10);
}
.m3x-submit{
  width:100%;height:40px;margin:12px 0 0;padding:0 16px!important;
  display:block;
  border:0!important;border-radius:24px!important;
  background:linear-gradient(90deg,#d90000,#ef0808)!important;
  color:#fff!important;font-size:14px!important;font-weight:900!important;
  letter-spacing:.2px;
  box-shadow:0 4px 9px rgba(150,0,0,.22);
  transition:filter .18s,transform .18s;
}
.m3x-submit:hover,.m3x-submit:focus{filter:brightness(.95);transform:translateY(-1px)}
.m3x-reviews{margin:9px auto 0;text-align:center}
.m3x-reviews img{
  display:inline-block;width:min(100%,455px);height:auto;max-height:39px;
  object-fit:contain;
}

/* Tablet */
@media(max-width:991px) and (min-width:768px){
  .m3x-layout{gap:16px;width:calc(100% - 28px)}
  .m3x-title{font-size:35px}
  .m3x-ribbon{gap:7px;padding:0 12px;font-size:12px}
  .m3x-form-heading h2{font-size:18px}
  .m3x-form{padding:12px}
  .m3x-fields{gap:8px}
  .m3x-fields .form-control{height:36px;font-size:11px}
}

/* Mobile: ONLY the quote form, no family background/photo/text */
@media(max-width:767px){
  .m3x-hero{
    min-height:0;
    padding:17px 0 22px;
    background:#f5f7fa;
  }
  .m3x-hero:before{display:none}
  .m3x-hero:after{height:30px;bottom:-22px;border-top-width:4px}
  .m3x-layout{
    display:block;
    width:calc(100% - 22px);
    min-height:0;
  }
  .m3x-left{display:none!important}
  .m3x-right{max-width:540px;margin:0 auto}
  .m3x-form-heading{min-height:56px;padding:8px 12px}
  .m3x-truck-badge{width:38px;height:38px;flex-basis:38px;font-size:21px}
  .m3x-form-heading h2{font-size:19px}
  .m3x-form{padding:13px 12px 14px}
  .m3x-fields{grid-template-columns:1fr 1fr;gap:9px}
  .m3x-fields .form-control{height:39px;min-height:39px;font-size:11px;padding:0 8px}
  .m3x-submit{height:42px;margin-top:12px;font-size:14px!important}
  .m3x-reviews{margin-top:9px}
  .m3x-reviews img{max-height:34px}
}
@media(max-width:390px){
  .m3x-fields{grid-template-columns:1fr}
}
