/* Bao Steel RFQ: all selectors are scoped to this component. */
:root {
  --bsq-navy: #003366;
  --bsq-night: #0b1d30;
  --bsq-red: #d90016;
  --bsq-slate: #5e6c7b;
  --bsq-muted: #f3f6f9;
  --bsq-line: #dde5ed;
}
.bsq-rfq-section, .bsq-rfq-modal {
  box-sizing: border-box;
  font-family: inherit;
  color: var(--bsq-night);
  -webkit-font-smoothing: antialiased;
}
.bsq-rfq-section *, .bsq-rfq-modal *, .bsq-rfq-fab *, .bsq-rfq-inline-button * { box-sizing: border-box; }
.bsq-rfq-section { background: #eef2f6; padding: clamp(36px,5vw,76px) 20px; clear: both; }
.bsq-rfq-container { max-width: 1240px; margin: 0 auto; }
.bsq-rfq-panel { display:grid; grid-template-columns: 42% 58%; align-items:stretch; background:#fff; border-radius: 8px; overflow:hidden; box-shadow:0 24px 70px rgba(2,25,50,.10); }
.bsq-rfq-side { position:relative; background:var(--bsq-navy); padding:clamp(28px,3.5vw,48px); color:white; display:flex; flex-direction:column; min-width:0; isolation:isolate; overflow:hidden; }
.bsq-rfq-side::before { content:""; position:absolute; top:0; left:0; bottom:0; width:7px; background:var(--bsq-red); }
.bsq-rfq-side::after { content:""; position:absolute; pointer-events:none; right:-110px; bottom:-145px; width:370px; height:370px; border:1px solid rgba(255,255,255,.08); transform:rotate(35deg); z-index:-1; }
.bsq-rfq-side-top { display:flex; align-items:center; gap:15px; }
.bsq-rfq-logo-wrap { width:66px; height:66px; flex:0 0 66px; background:white; padding:2px; overflow:hidden; display:flex; align-items:center; justify-content:center; border-radius:4px; }
.bsq-rfq-logo-wrap img { width:100%; height:100%; object-fit:contain; }
.bsq-rfq-brand-title { font-family:inherit; font-size:21px; line-height:1.18; letter-spacing:.07em; font-weight:800; color:#fff; }
.bsq-rfq-brand-title span { font-size:13px; letter-spacing:.035em; font-weight:600; }
.bsq-rfq-rule { height:1px; background:rgba(255,255,255,.20); margin:30px 0 25px; }
.bsq-rfq-side-eyebrow { color:#ff7c83!important; letter-spacing:.17em; font-size:11px!important; font-weight:800; margin:0 0 11px!important; }
.bsq-rfq-side-headline { color:#fff!important; font-size:clamp(25px,2.4vw,34px)!important; font-weight:750!important; line-height:1.27!important; letter-spacing:-.025em; margin:0!important; }
.bsq-rfq-side-headline em { color:#d5e5f4; font-style:normal; font-weight:500; }
.bsq-rfq-side-description { margin:17px 0 30px!important; color:#c6d9e9!important; max-width:340px; font-size:14px!important; line-height:1.7!important; }
.bsq-rfq-contacts { display:flex; flex-direction:column; gap:19px; margin-top:auto; }
.bsq-rfq-contact { display:flex; align-items:center; gap:13px; color:#fff!important; text-decoration:none!important; min-width:0; transition:opacity .2s ease; }
.bsq-rfq-contact:hover { opacity:.82; }
.bsq-rfq-contact-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 42px; height:42px; border:1px solid rgba(255,255,255,.22); border-radius:5px; color:#fff; background:rgba(255,255,255,.07); }
.bsq-rfq-contact small { display:block; font-size:11px; color:#9fb9d2; font-weight:600; margin-bottom:2px; }
.bsq-rfq-contact strong { display:block; font-size:clamp(12px,1.2vw,14px); font-weight:600; color:#fff; overflow-wrap:anywhere; }
.bsq-rfq-contact-static { cursor:default; }
.bsq-rfq-side-bottom { display:flex; gap:7px; margin-top:36px; }
.bsq-rfq-side-bottom span { height:4px; width:28px; background:#d9e6f0; opacity:.28; }
.bsq-rfq-side-bottom span:first-child { width:62px; background:var(--bsq-red); opacity:1; }
.bsq-rfq-form-panel { padding:clamp(28px,3.7vw,55px) clamp(24px,4vw,60px); min-width:0; background:#fff; }
.bsq-rfq-flag { display:flex; gap:10px; align-items:center; letter-spacing:.15em; font-size:11px; font-weight:800; color:var(--bsq-red); }
.bsq-rfq-flag span { display:block; height:3px; width:30px; background:var(--bsq-red); }
.bsq-rfq-heading { font-family:inherit; color:var(--bsq-night); font-size:clamp(26px,2.35vw,36px); line-height:1.16; font-weight:800; letter-spacing:-.025em; margin:12px 0 12px; }
.bsq-rfq-intro { color:var(--bsq-slate); font-size:14px; line-height:1.65; margin:0 0 23px; }
.bsq-rfq-form-wrap .wpcf7 { margin:0; }
.bsq-rfq-form-wrap .wpcf7 form { margin:0; }
.bsq-rfq-form-wrap .bsq-rfq-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:17px; row-gap:15px; }
.bsq-rfq-form-wrap .bsq-rfq-field { min-width:0; }
.bsq-rfq-form-wrap .bsq-rfq-field label { color:#1a2b3e; font-size:12px; font-weight:700; line-height:1.45; display:block; margin:0; }
.bsq-rfq-form-wrap .bsq-rfq-field label > .wpcf7-form-control-wrap { display:block; margin-top:7px; }
.bsq-rfq-form-wrap .bsq-rfq-field--wide { grid-column:1 / -1; }
.bsq-rfq-form-wrap .bsq-rfq-field input[type="text"],
.bsq-rfq-form-wrap .bsq-rfq-field input[type="email"],
.bsq-rfq-form-wrap .bsq-rfq-field input[type="tel"],
.bsq-rfq-form-wrap .bsq-rfq-field textarea {
  display:block; width:100%; min-width:0; max-width:100%; border:1px solid #d6e0e9; border-radius:4px; height:47px; padding:11px 13px; color:#12243a; background:#f8fafc; box-shadow:none; font:inherit; font-size:13px; font-weight:450; line-height:1.4; transition:border-color .2s,box-shadow .2s; outline:none;
}
.bsq-rfq-form-wrap .bsq-rfq-field textarea { min-height:100px; height:100px; resize:vertical; }
.bsq-rfq-form-wrap .bsq-rfq-field input::placeholder, .bsq-rfq-form-wrap .bsq-rfq-field textarea::placeholder { color:#8a98a7; }
.bsq-rfq-form-wrap .bsq-rfq-field :is(input,textarea):focus { border-color:var(--bsq-navy); box-shadow:0 0 0 3px rgba(0,51,102,.10); }
.bsq-rfq-form-wrap .bsq-rfq-field input[type="file"] { display:block; width:100%; max-width:100%; font-size:12px; color:#536476; border:1px dashed #b9c7d5; background:#f8fafc; padding:10px; border-radius:4px; margin-top:7px; }
.bsq-rfq-form-wrap .bsq-rfq-field input[type="file"]::file-selector-button { border:0; border-radius:3px; background:#e4ebf2; padding:7px 10px; color:#003366; margin-right:10px; font-weight:700; cursor:pointer; }
.bsq-rfq-form-wrap .bsq-rfq-hint { display:block; margin:6px 0 0; font-size:11px; font-weight:400; color:#728093; }
.bsq-rfq-form-wrap .bsq-rfq-submit { grid-column:1 / -1; padding-top:2px; }
.bsq-rfq-form-wrap .bsq-rfq-submit .wpcf7-submit { width:100%; min-height:50px; border:0; background:var(--bsq-red); color:#fff; font-size:14px; line-height:1.3; font-weight:800; letter-spacing:.01em; border-radius:4px; cursor:pointer; box-shadow:0 7px 17px rgba(217,0,22,.17); transition:background .2s,transform .2s; }
.bsq-rfq-form-wrap .bsq-rfq-submit .wpcf7-submit:hover { background:#b9071c; transform:translateY(-1px); }
.bsq-rfq-form-wrap .wpcf7-spinner { vertical-align:middle; margin-left:10px; }
.bsq-rfq-form-wrap .wpcf7-not-valid-tip { color:#bd0922; font-size:11px; font-weight:500; margin-top:5px; }
.bsq-rfq-form-wrap .wpcf7 form .wpcf7-response-output { border-color:#b8cbdc; background:#f4f8fc; color:#17395b; margin:15px 0 0; padding:12px 15px; font-size:13px; }
.bsq-rfq-form-wrap .wpcf7 form.sent .wpcf7-response-output { border-color:#398b61; background:#f0fbf5; color:#145f3b; }
.bsq-rfq-privacy { color:#7c8998; font-size:11px; line-height:1.55; margin:14px 0 0; }
.bsq-rfq-privacy a { color:var(--bsq-navy); text-decoration:underline; }
/* Desktop quick-contact rail and fixed bottom contact bar */
.bsq-rfq-side-rail,
.bsq-rfq-bottom-bar,
.bsq-rfq-side-rail *,
.bsq-rfq-bottom-bar * { box-sizing:border-box; }
/* v1.2: Desktop sidebar actions are permanently expanded, with robust button colors. */
.bsq-rfq-side-rail {
  position:fixed;
  top:47%;
  right:14px;
  z-index:99970;
  display:flex;
  flex-direction:column;
  gap:8px;
  transform:translateY(-50%);
  width:196px;
  max-width:calc(100vw - 28px);
}
.bsq-rfq-side-rail .bsq-rfq-rail-action {
  box-sizing:border-box;
  width:100%!important;
  min-width:0;
  height:54px;
  min-height:54px;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:11px;
  padding:0 16px!important;
  overflow:visible;
  border:0!important;
  border-radius:7px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff;
  text-decoration:none!important;
  white-space:nowrap;
  font:inherit;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:750!important;
  letter-spacing:0;
  cursor:pointer;
  box-shadow:0 7px 22px rgba(5,24,44,.20);
  opacity:1!important;
  transition:filter .18s ease, transform .18s ease;
}
.bsq-rfq-side-rail .bsq-rfq-rail-action:hover,
.bsq-rfq-side-rail .bsq-rfq-rail-action:focus-visible {
  width:100%!important;
  filter:brightness(1.06);
  transform:translateX(-2px);
  outline:2px solid rgba(255,255,255,.85);
  outline-offset:-4px;
}
.bsq-rfq-action-icon { width:22px; height:22px; flex:0 0 22px; display:inline-flex; align-items:center; justify-content:center; color:#fff!important; }
.bsq-rfq-action-icon svg { display:block; width:22px; height:22px; color:#fff!important; stroke:currentColor; }
.bsq-rfq-side-rail .bsq-rfq-rail-label,
.bsq-rfq-side-rail .bsq-rfq-rail-action:hover .bsq-rfq-rail-label,
.bsq-rfq-side-rail .bsq-rfq-rail-action:focus-visible .bsq-rfq-rail-label {
  display:inline!important;
  width:auto!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff;
  font-size:13px!important;
  font-weight:750!important;
  white-space:nowrap;
}
.bsq-rfq-side-rail .bsq-rfq-rail-whatsapp { background:#25D366!important; color:#fff!important; }
.bsq-rfq-side-rail .bsq-rfq-rail-email { background:#003366!important; color:#fff!important; }
.bsq-rfq-side-rail .bsq-rfq-rail-quote { background:#D90016!important; color:#fff!important; }

.bsq-rfq-bottom-bar {
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:99970;
  min-height:76px;
  background:#0B1D30;
  border-top:3px solid #D90016;
  box-shadow:0 -8px 28px rgba(4,20,38,.16);
}
.bsq-rfq-bottom-inner {
  width:min(1240px, calc(100% - 40px));
  min-height:73px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.bsq-rfq-bottom-brand { display:flex; flex-direction:column; gap:5px; min-width:0; color:#fff; }
.bsq-rfq-bottom-brand strong { font-size:13px; line-height:1.3; letter-spacing:.055em; font-weight:800; }
.bsq-rfq-bottom-brand span { color:#a9bfd3; font-size:11px; line-height:1.3; }
.bsq-rfq-bottom-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex:0 0 auto; }
.bsq-rfq-bottom-action {
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:0 17px;
  border:1px solid transparent;
  border-radius:4px;
  color:#fff!important;
  text-decoration:none!important;
  font:inherit;
  font-size:12px;
  line-height:1.2;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
  transition:transform .18s ease, filter .18s ease, background .18s ease;
}
.bsq-rfq-bottom-action:hover { transform:translateY(-2px); filter:brightness(1.06); }
.bsq-rfq-bottom-action svg { width:19px; height:19px; flex:0 0 19px; }
.bsq-rfq-bottom-actions .bsq-rfq-bottom-whatsapp { background:#25D366!important; color:#fff!important; border-color:transparent!important; }
.bsq-rfq-bottom-actions .bsq-rfq-bottom-email { background:transparent!important; border-color:rgba(255,255,255,.40)!important; color:#fff!important; }
.bsq-rfq-bottom-actions .bsq-rfq-bottom-quote { background:#D90016!important; color:#fff!important; border-color:transparent!important; }
/* Keep icons and labels visible independent of theme button styles. */
.bsq-rfq-bottom-actions .bsq-rfq-bottom-action span,
.bsq-rfq-bottom-actions .bsq-rfq-bottom-action svg {
  color:#fff!important;
  -webkit-text-fill-color:#fff;
  opacity:1!important;
  visibility:visible!important;
}
.bsq-rfq-bottom-actions .bsq-rfq-bottom-action:hover,
.bsq-rfq-bottom-actions .bsq-rfq-bottom-action:focus-visible { color:#fff!important; }
.bsq-rfq-label-mobile { display:none; }
body.bsq-rfq-has-contact-dock { padding-bottom:82px; }
body.bsq-rfq-modal-open .bsq-rfq-side-rail,
body.bsq-rfq-modal-open .bsq-rfq-bottom-bar { visibility:hidden; pointer-events:none; }

.bsq-rfq-inline-button { display:inline-flex; align-items:center; gap:10px; border-radius:4px; background:var(--bsq-red); color:#fff!important; padding:12px 21px; text-decoration:none!important; font-size:14px; font-weight:800; }
.bsq-rfq-inline-button svg { width:18px; height:18px; }
.bsq-rfq-inline-button:hover { background:#b9071c; color:white; }
/* Popup overlay */
.bsq-rfq-modal[hidden] { display:none!important; }
.bsq-rfq-modal { position:fixed; inset:0; z-index:99990; display:flex; align-items:center; justify-content:center; padding:18px; }
.bsq-rfq-modal-backdrop { position:absolute; inset:0; background:rgba(4,16,29,.76); backdrop-filter:blur(3px); }
.bsq-rfq-dialog { position:relative; width:min(100%,1080px); max-height:calc(100dvh - 36px); overflow-y:auto; background:#fff; box-shadow:0 20px 80px rgba(0,0,0,.35); border-radius:8px; outline:none; }
.bsq-rfq-modal .bsq-rfq-panel { box-shadow:none; border-radius:0; }
.bsq-rfq-modal .bsq-rfq-side { padding:34px 38px; }
.bsq-rfq-modal .bsq-rfq-form-panel { padding:33px 43px; }
.bsq-rfq-modal .bsq-rfq-side-description { margin-bottom:22px!important; }
.bsq-rfq-modal .bsq-rfq-rule { margin:18px 0; }
.bsq-rfq-modal .bsq-rfq-side-headline { font-size:27px!important; }
.bsq-rfq-modal .bsq-rfq-contacts { gap:13px; }
.bsq-rfq-modal .bsq-rfq-side-bottom { margin-top:22px; }
.bsq-rfq-close { display:flex; align-items:center; justify-content:center; position:sticky; top:10px; float:right; margin:10px 10px -44px 0; border:0; width:36px; height:36px; line-height:1; background:#ecf0f4; color:#1a2e42; border-radius:50%; font-size:29px; font-weight:400; cursor:pointer; z-index:2; }
.bsq-rfq-close:hover { background:#f8dadd; color:#9d0013; }
body.bsq-rfq-modal-open { overflow:hidden!important; }
@media (min-width: 1025px) and (max-width: 1180px) {
  .bsq-rfq-bottom-inner { width:calc(100% - 150px); gap:14px; }
  .bsq-rfq-bottom-brand strong { font-size:11px; }
  .bsq-rfq-bottom-action { padding:0 12px; }
  .bsq-rfq-side-rail { right:0; }
}
/* Tablet and mobile: only a compact fixed bottom 3-action dock, no sidebar. */
@media (max-width: 1024px) {
  .bsq-rfq-side-rail { display:none!important; }
  .bsq-rfq-bottom-bar {
    display:block!important;
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    min-height:calc(64px + env(safe-area-inset-bottom, 0px));
    padding:6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top:2px solid #D90016;
    border-radius:0;
    background:#0B1D30;
    z-index:99970;
  }
  .bsq-rfq-bottom-inner {
    width:100%;
    max-width:640px;
    min-height:50px;
    margin:0 auto;
    display:block;
  }
  .bsq-rfq-bottom-brand { display:none!important; }
  .bsq-rfq-bottom-actions {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:stretch;
    gap:7px;
    width:100%;
    min-width:0;
  }
  .bsq-rfq-bottom-actions .bsq-rfq-bottom-action {
    box-sizing:border-box;
    display:flex!important;
    min-width:0;
    min-height:50px;
    width:100%;
    padding:0 5px!important;
    gap:6px;
    border-radius:5px!important;
    white-space:nowrap;
    font-size:12px!important;
    line-height:1.2!important;
    letter-spacing:0;
    text-align:center;
    font-weight:750!important;
  }
  .bsq-rfq-bottom-action svg { width:19px; height:19px; flex:0 0 19px; }
  .bsq-rfq-label-desktop { display:none; }
  .bsq-rfq-label-mobile { display:inline!important; }
  body.bsq-rfq-has-contact-dock {
    padding-bottom:calc(76px + env(safe-area-inset-bottom, 0px))!important;
  }
}
@media (max-width: 359px) {
  .bsq-rfq-bottom-bar { padding-left:6px; padding-right:6px; }
  .bsq-rfq-bottom-actions { gap:5px; }
  .bsq-rfq-bottom-actions .bsq-rfq-bottom-action { font-size:11px!important; gap:4px; }
  .bsq-rfq-bottom-action svg { width:17px; height:17px; flex:0 0 17px; }
}
@media (max-width: 900px) {
  .bsq-rfq-panel { grid-template-columns:40% 60%; }
  .bsq-rfq-side { padding:25px; }
  .bsq-rfq-brand-title { font-size:17px; }
  .bsq-rfq-side-headline { font-size:25px!important; }
  .bsq-rfq-form-panel { padding:32px 25px; }
  .bsq-rfq-modal .bsq-rfq-form-panel { padding:30px 25px; }
  .bsq-rfq-modal .bsq-rfq-side { padding:30px 25px; }
}
@media (max-width: 767px) {
  .bsq-rfq-section { padding:28px 13px; }
  .bsq-rfq-panel { display:block; border-radius:6px; }
  .bsq-rfq-side { display:none!important; }
  .bsq-rfq-form-panel { padding:27px 21px 25px; }
  .bsq-rfq-heading { font-size:27px; line-height:1.2; }
  .bsq-rfq-intro { margin-bottom:19px; font-size:13px; }
  .bsq-rfq-form-wrap .bsq-rfq-form { grid-template-columns:minmax(0,1fr); row-gap:13px; }
  .bsq-rfq-form-wrap .bsq-rfq-field--wide { grid-column:auto; }
  .bsq-rfq-fab { right:14px; bottom:88px; font-size:12px; padding:12px 15px; }
  .bsq-rfq-modal { padding:8px; }
  .bsq-rfq-dialog { max-height:calc(100dvh - 16px); border-radius:6px; }
  .bsq-rfq-modal .bsq-rfq-form-panel { padding:30px 20px 25px; }
  .bsq-rfq-close { margin:8px 8px -44px 0; width:34px; height:34px; }
}
@media (prefers-reduced-motion: reduce) {
  .bsq-rfq-section *, .bsq-rfq-modal *, .bsq-rfq-side-rail *, .bsq-rfq-bottom-bar * { transition:none!important; scroll-behavior:auto!important; }
}
