
/* ============================================================
   MALTA TUTORS V43.1 — WIDE HERO / FULL-WIDTH ENQUIRY FIX
   Corrects the compressed V43 homepage hero.
   ============================================================ */

.hero.mt42-hero-shell{
  overflow:hidden!important;
  padding-top:54px!important;
  padding-bottom:42px!important;
}

.hero .container{
  width:min(1380px,calc(100% - 54px))!important;
  max-width:none!important;
}

.mt431-stage{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.02fr) minmax(470px,.98fr);
  gap:48px;
  align-items:center;
  min-height:520px;
  z-index:3;
}
.mt431-copy{
  min-width:0;
  position:relative;
  z-index:4;
}
.mt431-copy h1{
  font-size:clamp(62px,6vw,92px)!important;
  line-height:.92!important;
  letter-spacing:-.065em!important;
  max-width:760px!important;
}
.mt431-copy .hero-copy{
  max-width:700px!important;
  font-size:17px!important;
  line-height:1.65!important;
}
.mt431-copy .hero-actions{
  display:flex!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
.mt431-copy .hero-chips{
  max-width:720px!important;
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
}

.mt431-visual{
  position:relative;
  min-height:490px;
  perspective:1300px;
}
.mt431-visual .mt43-core{
  width:min(32vw,420px)!important;
  max-width:420px;
}
.mt431-visual .mt43-float-card{
  width:190px!important;
}

/* Full-width enquiry panel */
.mt431-finder-row{
  position:relative;
  z-index:5;
  width:100%;
  margin:26px auto 0;
}
.mt431-finder-row .finder-wrap{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
.mt431-finder-row .finder{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:24px 26px 22px!important;
  border-radius:26px!important;
  background:color-mix(in srgb,var(--mt41-surface-solid) 89%,transparent)!important;
  border:1px solid var(--mt41-border)!important;
  box-shadow:0 28px 90px rgba(31,40,100,.15)!important;
  backdrop-filter:blur(24px) saturate(1.18)!important;
  overflow:hidden!important;
}
.mt431-finder-row .finder-top{
  display:flex!important;
  justify-content:space-between!important;
  align-items:center!important;
  gap:12px!important;
  margin-bottom:7px!important;
}
.mt431-finder-row .finder > h2{
  font-size:30px!important;
  letter-spacing:-.04em!important;
  margin:0!important;
}
.mt431-finder-row .finder > p{
  margin:6px 0 14px!important;
  max-width:760px!important;
  font-size:12px!important;
}
.mt431-finder-row .finder-tabs{
  display:flex!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  margin-bottom:14px!important;
}
.mt431-finder-row .finder-tabs button{
  min-height:36px!important;
  padding:7px 12px!important;
  font-size:9px!important;
  border-radius:10px!important;
}

/* A single clean form: 4 columns on desktop */
.mt431-finder-row .finder-form{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px 12px!important;
  align-items:start!important;
}
.mt431-finder-row .finder-form > label{
  min-width:0!important;
  margin:0!important;
}
.mt431-finder-row .finder-form > label > span{
  display:block!important;
  margin:0 0 4px!important;
  font-size:9px!important;
  font-weight:900!important;
}
.mt431-finder-row .finder-form input,
.mt431-finder-row .finder-form select,
.mt431-finder-row .finder-form textarea{
  width:100%!important;
  min-width:0!important;
  height:43px!important;
  padding:9px 10px!important;
  font-size:11px!important;
  border-radius:9px!important;
}
.mt431-finder-row .finder-form textarea{
  min-height:74px!important;
  height:auto!important;
}
.mt431-finder-row .finder-form .mt40-compact{
  grid-column:1/-1!important;
  margin:2px 0 0!important;
  padding:13px 0 0!important;
  border-radius:0!important;
  border:0!important;
  border-top:1px solid var(--mt41-border)!important;
  box-shadow:none!important;
  background:none!important;
}
.mt431-finder-row .mt40-head{
  display:flex!important;
  align-items:end!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-bottom:9px!important;
}
.mt431-finder-row .mt40-head h3{
  font-size:15px!important;
  margin:3px 0 0!important;
}
.mt431-finder-row .mt40-head p{
  max-width:360px!important;
  text-align:right!important;
  font-size:8px!important;
}
.mt431-finder-row .mt40-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:9px!important;
}
.mt431-finder-row .mt40-field.full{
  grid-column:span 2!important;
}
.mt431-finder-row .mt40-field input,
.mt431-finder-row .mt40-field select{
  height:41px!important;
}
.mt431-finder-row .mt40-field textarea{
  min-height:69px!important;
}
.mt431-finder-row .finder-form > label:has(input[type="checkbox"]){
  grid-column:1/4!important;
  align-self:center!important;
  display:flex!important;
  gap:7px!important;
  align-items:flex-start!important;
  padding-top:4px!important;
}
.mt431-finder-row .finder-form > label:has(input[type="checkbox"]) input{
  width:auto!important;height:auto!important;min-height:0!important;margin-top:2px!important;
}
.mt431-finder-row .finder-submit{
  grid-column:4/5!important;
  min-height:50px!important;
  margin:0!important;
  align-self:end!important;
  border-radius:12px!important;
}
.mt431-finder-row .finder-foot{
  display:flex!important;
  justify-content:flex-end!important;
  gap:8px!important;
  margin-top:10px!important;
  font-size:9px!important;
}

/* Proof rail directly underneath without giant gap */
.hero .mt43-proofrail{
  margin-top:16px!important;
  grid-template-columns:repeat(5,1fr)!important;
}

/* Remove old stage rules that can fight this */
.hero .mt43-stage{display:none!important}

/* Theme refinements */
html[data-theme="dark"] .mt431-finder-row .finder{
  background:rgba(13,19,45,.88)!important;
}
html[data-theme="corporate"] .mt431-finder-row .finder{
  border-radius:15px!important;
}
html[data-theme="colorful"] .mt431-finder-row .finder{
  background:
    radial-gradient(circle at 95% 5%,rgba(32,210,230,.10),transparent 18rem),
    radial-gradient(circle at 5% 95%,rgba(255,70,160,.08),transparent 18rem),
    color-mix(in srgb,var(--mt41-surface-solid) 90%,transparent)!important;
}

/* Responsive */
@media(max-width:1120px){
  .mt431-stage{grid-template-columns:1fr 1fr;gap:26px}
  .mt431-copy h1{font-size:clamp(54px,6vw,74px)!important}
  .mt431-finder-row .finder-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mt431-finder-row .mt40-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mt431-finder-row .mt40-field.full{grid-column:1/-1!important}
  .mt431-finder-row .finder-form > label:has(input[type="checkbox"]){grid-column:1/2!important}
  .mt431-finder-row .finder-submit{grid-column:2/3!important}
  .hero .mt43-proofrail{grid-template-columns:repeat(3,1fr)!important}
}
@media(max-width:780px){
  .hero .container{width:min(100% - 24px,760px)!important}
  .mt431-stage{grid-template-columns:1fr;gap:12px}
  .mt431-visual{min-height:390px}
  .mt431-copy h1{font-size:54px!important}
  .mt431-finder-row .finder{padding:19px!important}
  .mt431-finder-row .finder-form,
  .mt431-finder-row .mt40-grid{grid-template-columns:1fr!important}
  .mt431-finder-row .mt40-field.full,
  .mt431-finder-row .finder-form > label:has(input[type="checkbox"]),
  .mt431-finder-row .finder-submit{grid-column:1/-1!important}
  .mt431-finder-row .mt40-head{display:block!important}
  .mt431-finder-row .mt40-head p{text-align:left!important;margin-top:4px!important}
  .hero .mt43-proofrail{grid-template-columns:1fr 1fr!important}
}
@media(max-width:520px){
  .mt431-visual{min-height:330px}
  .mt431-visual .mt43-core{width:230px!important}
  .mt431-visual .mt43-float-card{width:138px!important}
  .hero .mt43-proofrail{grid-template-columns:1fr!important}
}
