/* Request Quote / message.htm — engineer / B2B layout */
.rq-page {
  --rq-ink: #1a1a1a;
  --rq-muted: #5c636a;
  --rq-line: #e6e8eb;
  --rq-bg: #f4f5f7;
  --rq-panel: #fff;
  --rq-accent: #c62828;
  --rq-accent-hover: #a31f1f;
  --rq-max: 1200px; /* match .header_main */
  --rq-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color: var(--rq-ink);
  background: var(--rq-bg);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  padding-bottom: 64px;
}
.rq-page *,
.rq-page *::before,
.rq-page *::after {
  box-sizing: border-box;
}
.rq-page a {
  color: var(--rq-ink);
  text-decoration: none;
}
.rq-page a:hover {
  color: var(--rq-accent);
}

.rq-hero {
  background:
    linear-gradient(135deg, rgba(15, 23, 32, 0.92) 0%, rgba(32, 42, 54, 0.88) 55%, rgba(55, 30, 30, 0.85) 100%),
    url(/reslinkpp/dist/image/request_banner.png) center / cover no-repeat;
  color: #fff;
  padding: 56px 0 48px;
}
.rq-hero__inner {
  max-width: var(--rq-max);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.rq-hero__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}
.rq-hero h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
}
.rq-hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 400;
}
.rq-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}
.rq-hero__meta li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  padding-left: 14px;
  position: relative;
}
.rq-hero__meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e57373;
}

.rq-wrap {
  max-width: var(--rq-max);
  width: 100%;
  margin: -28px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  box-sizing: border-box;
}

.rq-main,
.rq-side {
  min-width: 0;
}
.rq-card {
  background: var(--rq-panel);
  border: 1px solid var(--rq-line);
  margin-bottom: 16px;
}
.rq-card__head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--rq-line);
}
.rq-card__head h2 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--rq-ink);
}
.rq-card__head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--rq-muted);
}
.rq-card__body {
  padding: 18px 22px 22px;
}

.rq-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rq-type {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 14px 12px;
  border: 1px solid var(--rq-line);
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font: inherit;
  color: inherit;
}
.rq-type:hover {
  border-color: #c5cad1;
  background: #fff;
}
.rq-type.is-active {
  border-color: var(--rq-ink);
  background: #fff;
  box-shadow: inset 3px 0 0 var(--rq-accent);
}
.rq-type__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 4px;
}
.rq-type__desc {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--rq-muted);
}

.rq-search {
  position: relative;
}
.rq-search__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.rq-search__field {
  position: relative;
  flex: 1 1 280px;
  min-width: 0;
}
.rq-search__field input[type="text"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cfd3d8;
  background: #fff;
  font-size: 14px;
  color: var(--rq-ink);
  outline: none;
}
.rq-search__field input[type="text"]:focus {
  border-color: #333;
}
.rq-search__btn {
  flex: 0 0 auto;
  height: 44px;
  min-width: 108px;
  padding: 0 22px;
  border: 0;
  background: var(--rq-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  line-height: 44px;
  text-align: center;
  font: inherit;
}
.rq-search__btn:hover {
  background: #000;
}
.rq-search__hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--rq-muted);
  line-height: 1.5;
}
.rq-search__alert {
  margin-top: 10px;
  font-size: 13px;
  color: var(--rq-accent);
}
.rq-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  background: #fff;
  border: 1px solid var(--rq-line);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
  max-height: 360px;
  overflow: auto;
}
.rq-suggest__item {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #f0f1f3;
  background: #fff;
  text-align: left;
  font: inherit;
  box-sizing: border-box;
}
.rq-suggest__item:last-child {
  border-bottom: 0;
}
.rq-suggest__item:hover,
.rq-suggest__item.is-active {
  background: #f7f8fa;
}
.rq-suggest__img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #f5f5f5;
  flex: 0 0 44px;
}
.rq-suggest__meta {
  min-width: 0;
  flex: 1;
}
.rq-suggest__name {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--rq-ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rq-suggest__ids {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--rq-muted);
  font-family: var(--rq-mono);
}
.rq-suggest__add {
  flex: 0 0 auto;
  height: 32px;
  min-width: 64px;
  padding: 0 14px;
  border: 1px solid var(--rq-ink);
  background: #fff;
  color: var(--rq-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 30px;
  font: inherit;
}
.rq-suggest__add:hover {
  background: var(--rq-ink);
  color: #fff;
}
.rq-suggest__empty,
.rq-suggest__loading {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--rq-muted);
}

.rq-table-head,
.rq-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 120px 72px;
  gap: 12px;
  align-items: center;
}
.rq-table-head {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--rq-line);
  font-size: 12px;
  font-weight: 700;
  color: var(--rq-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rq-table-row {
  padding: 14px 0;
  border-bottom: 1px solid #eef0f2;
}
.rq-table-row:last-child {
  border-bottom: 0;
}
.rq-prod {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}
.rq-prod img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #f7f7f7;
  flex: 0 0 56px;
}
.rq-prod__name {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--rq-ink);
}
.rq-prod__ids {
  font-size: 12px;
  color: var(--rq-muted);
  font-family: var(--rq-mono);
}
.rq-prod__ids span + span::before {
  content: " · ";
  color: #b0b5ba;
}
.rq-cell-price {
  font-size: 14px;
  font-weight: 600;
}
.rq-table-head > div:nth-child(2),
.rq-cell-qty {
  justify-self: end;
  text-align: right;
}
.rq-cell-qty {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}
.rq-cell-qty .product_list_text {
  float: none !important;
  display: inline-flex !important;
  align-items: stretch;
  width: auto !important;
  max-width: 100%;
  height: 38px !important;
  margin: 0 !important;
  overflow: visible !important;
  border: 1px solid #cfd3d8 !important;
  border-radius: 0 !important;
  background: #fff;
  box-sizing: border-box;
}
.rq-cell-qty .product_list_text > span {
  display: inline-flex !important;
  align-items: stretch;
  height: 36px !important;
  float: none !important;
}
.rq-cell-qty .product_list_qty {
  float: none !important;
  width: 52px !important;
  height: 36px !important;
  line-height: 36px !important;
  border: 0 !important;
  border-right: 1px solid #cfd3d8 !important;
  text-align: center;
  box-sizing: border-box;
}
.rq-cell-qty .pro_mun {
  float: none !important;
  display: flex !important;
  flex-direction: column;
  justify-content: stretch;
  width: 22px !important;
  height: 36px !important;
  max-height: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 0 !important;
  background: #f3f4f6 !important;
  box-sizing: border-box;
}
.rq-cell-qty .pro_mun .cart_qty_add,
.rq-cell-qty .pro_mun .cart_qty_reduce {
  flex: 1 1 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 18px !important;
  line-height: 1 !important;
  font-size: 12px !important;
  color: #333;
  transform: none !important;
  -webkit-transform: none !important;
  text-align: center !important;
}
.rq-cell-qty .pro_mun .cart_qty_add {
  border-bottom: 1px solid #cfd3d8;
}
.rq-del {
  border: 0;
  background: transparent;
  color: #888;
  cursor: pointer;
  font-size: 18px;
  padding: 6px;
}
.rq-del:hover {
  color: var(--rq-accent);
}

.rq-account {
  padding: 12px 14px;
  background: #f7f8fa;
  border: 1px dashed #d5d9de;
  font-size: 13px;
  line-height: 1.55;
  color: var(--rq-muted);
}
.rq-account strong {
  color: var(--rq-ink);
}

.rq-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.rq-field {
  min-width: 0;
}
.rq-field--full {
  grid-column: 1 / -1;
}
.rq-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rq-ink);
}
.rq-label .require-icon {
  color: var(--rq-accent);
  margin-right: 2px;
}
.rq-field .request_input,
.rq-field textarea,
.rq-field .rq-textarea,
.rq-field .inquiry_slide {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 42px;
  border: 1px solid #cfd3d8 !important;
  background: #fff;
  font-size: 14px;
  text-indent: 12px !important;
}
.rq-field textarea,
.rq-field .rq-textarea {
  height: auto;
  min-height: 160px;
  padding: 12px;
  text-indent: 0 !important;
  resize: vertical;
  line-height: 1.55;
  outline: none;
  border-radius: 0;
  display: block;
  box-sizing: border-box;
  font: inherit;
  color: var(--rq-ink);
}
/* Kill legacy double-frame wrappers if any remain */
.rq-field .request_textarea,
.rq-field .webim_textarea_box,
.rq-field .webim_textarea {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: visible !important;
}

/* Country select: flag + name + arrow on one row */
.rq-field .inquiry_slide {
  float: none !important;
  display: block !important;
  text-indent: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}
.rq-field .inquiry_slide .top_country_choose_country {
  display: flex !important;
  align-items: center;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: transparent !important;
  box-sizing: border-box;
}
.rq-field .inquiry_slide .top_country_choose_country > p {
  position: static !important;
  left: auto !important;
  top: auto !important;
  flex: 1 1 auto;
  width: auto !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 8px 0 12px !important;
  display: flex !important;
  align-items: center;
  text-indent: 28px !important;
  line-height: 40px !important;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rq-field .inquiry_slide .top_country_choose_country .showMore {
  float: none !important;
  flex: 0 0 28px;
  width: 28px !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-indent: 0 !important;
  color: #888;
  line-height: 1 !important;
}
.rq-field .inquiry_slide .top_country_choose_country .showMore .icon {
  font-size: 12px;
  line-height: 1;
}

/* Telephone: one outer frame, code + number aligned */
.rq-field .teleinput_box {
  display: flex !important;
  align-items: stretch;
  width: 100% !important;
  height: 42px !important;
  float: none !important;
  border: 1px solid #cfd3d8 !important;
  border-radius: 0 !important;
  text-indent: 0 !important;
  box-sizing: border-box;
  background: #fff;
  overflow: hidden;
}
.rq-field .teleinput_small_box {
  flex: 0 0 72px;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  height: auto !important;
  float: none !important;
  border: 0 !important;
  border-right: 1px solid #cfd3d8 !important;
  background: #f3f4f6 !important;
  text-indent: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box;
  padding: 0 6px 0 8px;
}
.rq-field .teleinput_small_box .fll {
  float: none !important;
  width: 12px !important;
  text-indent: 0 !important;
  text-align: right !important;
  line-height: 40px !important;
  flex: 0 0 12px;
}
.rq-field .teleinput_small {
  float: none !important;
  flex: 1 1 auto;
  width: auto !important;
  height: 40px !important;
  border: none !important;
  background: transparent !important;
  text-indent: 0 !important;
  text-align: left;
  outline: none;
  font-size: 14px;
  line-height: 40px;
  padding: 0;
}
.rq-field .teleinput {
  flex: 1 1 auto !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  border: none !important;
  background: #fff !important;
  text-indent: 12px !important;
  line-height: 40px;
  outline: none;
  font-size: 14px;
  box-sizing: border-box;
}
.rq-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--rq-ink);
}
.rq-file:hover {
  color: var(--rq-accent);
}
.rq-submit {
  margin-top: 8px;
}
.rq-submit .submit_btn01 {
  width: 180px;
  height: 46px;
  line-height: 46px;
  background: var(--rq-accent) !important;
  border: 0 !important;
  font-size: 15px;
  font-weight: 700;
}
.rq-submit .submit_btn01:hover {
  background: var(--rq-accent-hover) !important;
}
.rq-submit .submit_btn01.ban {
  opacity: 0.45;
  cursor: not-allowed;
}

.rq-side .rq-card__body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--rq-muted);
}
.rq-side h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--rq-ink);
}
.rq-side ul {
  margin: 0 0 16px;
  padding: 0 0 0 16px;
}
.rq-side li {
  margin: 0 0 6px;
}
.rq-side__note {
  margin: 0;
  padding: 12px;
  background: #f7f8fa;
  border-left: 3px solid var(--rq-ink);
  font-size: 12px;
  line-height: 1.55;
  color: var(--rq-muted);
}
.rq-side__contact {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rq-line);
  font-size: 13px;
}
.rq-side__contact a {
  font-weight: 600;
}

@media (max-width: 1440px) {
  .rq-page { --rq-max: 1200px; }
}
@media (max-width: 1200px) {
  .rq-page { --rq-max: 1100px; }
}
@media (max-width: 1120px) {
  .rq-page { --rq-max: 1000px; }
}
@media (max-width: 1024px) {
  .rq-page { --rq-max: 100%; }
  .rq-hero { padding-left: 15px; padding-right: 15px; }
  .rq-wrap { padding-left: 15px; padding-right: 15px; }
}
@media (max-width: 980px) {
  .rq-wrap {
    grid-template-columns: 1fr;
    margin-top: -20px;
  }
  .rq-types {
    grid-template-columns: 1fr 1fr;
  }
  .rq-table-head {
    display: none;
  }
  .rq-table-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "prod del"
      "qty price";
  }
  .rq-table-row .rq-prod { grid-area: prod; }
  .rq-table-row .rq-cell-qty { grid-area: qty; }
  .rq-table-row .rq-cell-price { grid-area: price; justify-self: end; }
  .rq-table-row .rq-cell-del { grid-area: del; justify-self: end; }
}
@media (max-width: 640px) {
  .rq-hero {
    padding: 40px 16px 36px;
  }
  .rq-hero h1 {
    font-size: 26px;
  }
  .rq-types,
  .rq-form-grid {
    grid-template-columns: 1fr;
  }
  .rq-search__btn {
    width: 100%;
  }
}
