/* TasheelExpress v58.9.5 — mobile/RTL quote hardening */
html,body{max-width:100%;}
body.tx-quote-page{overflow-x:hidden;}
body.tx-quote-page .txq-wrap,
body.tx-quote-page .txq-grid,
body.tx-quote-page .txq-card,
body.tx-quote-page .txq-primary,
body.tx-quote-page .txq-summary,
body.tx-quote-page .txq-form,
body.tx-quote-page .txq-fields,
body.tx-quote-page .tx-srq-grid,
body.tx-quote-page .tx-privacy-card{min-width:0;box-sizing:border-box;}
body.tx-quote-page input,
body.tx-quote-page select,
body.tx-quote-page textarea,
body.tx-quote-page button{max-width:100%;box-sizing:border-box;}

/* This page already contains its own submit CTA; the global fixed CTA obscures quote content on phones. */
body.tx-quote-page .tx-sticky-mobile-quote{display:none!important;}

@media(max-width:920px){
  body.tx-quote-page .txq-workspace{padding:32px 0 64px!important;}
  body.tx-quote-page .txq-wrap{width:100%!important;max-width:100%!important;padding-inline:16px!important;margin-inline:auto!important;}
  body.tx-quote-page .txq-grid{display:flex!important;flex-direction:column!important;gap:20px!important;}
  body.tx-quote-page .txq-primary,
  body.tx-quote-page .txq-summary{width:100%!important;max-width:100%!important;position:static!important;inset:auto!important;}
  body.tx-quote-page .txq-summary{order:2!important;}
  body.tx-quote-page .txq-fields,
  body.tx-quote-page .tx-srq-grid{grid-template-columns:minmax(0,1fr)!important;}
  body.tx-quote-page .txq-full{grid-column:auto!important;}
  body.tx-quote-page .tx-pill-options{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
  body.tx-quote-page .tx-pill-options label{width:100%!important;box-sizing:border-box!important;}
  body.tx-quote-page .txq-drop{padding:30px 16px!important;}
  body.tx-quote-page .txq-submit{min-height:56px!important;font-size:1rem!important;}
  body.tx-quote-page .txq-security-note{font-size:.92rem!important;line-height:1.7!important;}
  body.tx-quote-page .txq-status{overflow-wrap:anywhere;word-break:normal;}
}

@media(max-width:620px){
  body.tx-quote-page .txq-primary,
  body.tx-quote-page .txq-summary{padding:18px!important;border-radius:18px!important;}
  body.tx-quote-page .txq-step{font-size:1rem!important;}
  body.tx-quote-page .txq-fields{gap:14px!important;margin-bottom:26px!important;}
  body.tx-quote-page .txq-fields input,
  body.tx-quote-page .txq-fields select,
  body.tx-quote-page .txq-fields textarea,
  body.tx-quote-page .txq-summary input,
  body.tx-quote-page .txq-summary select{font-size:16px!important;min-height:48px!important;}
  body.tx-quote-page .txq-submit{padding:15px 18px!important;}
}

html[dir="rtl"] body.tx-quote-page .txq-grid,
html[dir="rtl"] body.tx-quote-page .txq-card,
html[dir="rtl"] body.tx-quote-page .txq-form{direction:rtl;text-align:right;}

/* TasheelExpress v58.11.8 HF05 — quote page mobile width/RTL containment repair */
@media (max-width: 920px){
  html{width:100%!important;max-width:100%!important;overflow-x:hidden!important;}
  body.tx-quote-page{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;overflow-x:hidden!important;position:relative!important;}
  body.tx-quote-page .txq-main,
  body.tx-quote-page .txq-hero,
  body.tx-quote-page .v56-human-editorial,
  body.tx-quote-page .v53-quote-guide,
  body.tx-quote-page .tx-quote-switch-v47,
  body.tx-quote-page .txq-workspace{
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin-inline:0!important;inset-inline:auto!important;transform:none!important;
  }
  body.tx-quote-page .txq-hero>.txq-wrap,
  body.tx-quote-page .v56-human-editorial>.v56-human-wrap,
  body.tx-quote-page .v53-quote-guide>.container,
  body.tx-quote-page .tx-quote-switch-v47>.container,
  body.tx-quote-page .txq-workspace>.txq-wrap{
    width:calc(100% - 24px)!important;max-width:none!important;min-width:0!important;
    margin-inline:auto!important;padding-inline:0!important;box-sizing:border-box!important;
  }
  body.tx-quote-page .txq-hero>.txq-wrap{padding:24px!important;}
  body.tx-quote-page .v56-human-topic,
  body.tx-quote-page .v53-section-head,
  body.tx-quote-page .v53-card-grid,
  body.tx-quote-page .v53-card-grid>article,
  body.tx-quote-page .txq-grid,
  body.tx-quote-page .txq-card{
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin-inline:0!important;box-sizing:border-box!important;transform:none!important;
  }
  body.tx-quote-page .v53-card-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;}
  body.tx-quote-page .v56-human-topic{padding:20px!important;}
  body.tx-quote-page .v56-human-editorial h2,
  body.tx-quote-page .v56-human-topic h3,
  body.tx-quote-page .v56-human-topic p,
  body.tx-quote-page .v53-quote-guide h2,
  body.tx-quote-page .v53-quote-guide h3,
  body.tx-quote-page .v53-quote-guide p{
    width:auto!important;max-width:100%!important;overflow-wrap:anywhere!important;
  }
  html[dir="rtl"] body.tx-quote-page .txq-main,
  html[dir="rtl"] body.tx-quote-page .v56-human-editorial,
  html[dir="rtl"] body.tx-quote-page .v53-quote-guide{
    direction:rtl!important;text-align:right!important;
  }
}

@media (max-width: 620px){
  body.tx-quote-page .txq-hero>.txq-wrap,
  body.tx-quote-page .v56-human-editorial>.v56-human-wrap,
  body.tx-quote-page .v53-quote-guide>.container,
  body.tx-quote-page .tx-quote-switch-v47>.container,
  body.tx-quote-page .txq-workspace>.txq-wrap{
    width:calc(100% - 20px)!important;
  }
  body.tx-quote-page .v56-human-editorial{padding:28px 0!important;}
  body.tx-quote-page .v56-human-editorial h2{font-size:clamp(1.65rem,8vw,2.15rem)!important;line-height:1.3!important;}
  body.tx-quote-page .v53-section-head h2{font-size:clamp(1.55rem,7.5vw,2rem)!important;line-height:1.32!important;}
}
