/*
 * Rexsun remaining-page polish — 0.19.9
 *
 * This layer is intentionally loaded only on RFQ, survey, after-sales and
 * link-hub pages. Every rule is anchored to a page body class so the approved
 * homepage, services, projects and commerce layouts cannot be affected.
 */

body:is(.rxp-rfq-unified, .rxp-survey-unified, .rxp-after-sales-unified, .rxp-link-hub-unified) {
  color: var(--rx-text-main);
  background:
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, .075) 1px, transparent 1.25px) 0 0 / 24px 24px,
    var(--rx-surface-page);
  font-family: "Vazirmatn Rexsun", "Vazirmatn", Tahoma, Arial, sans-serif;
}

body:is(.rxp-rfq-unified, .rxp-survey-unified, .rxp-after-sales-unified, .rxp-link-hub-unified)
  :where(button, input, select, textarea) {
  font-family: inherit;
}

body.rxp-rfq-unified .rxp-rfq-page,
body.rxp-after-sales-unified .rxp-after-sales-page,
body.rxp-after-sales-unified .rxp-after-sales-page :where(button, input, select, textarea) {
  font-family: "Vazirmatn Rexsun", "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

body:is(.rxp-rfq-unified, .rxp-after-sales-unified)
  :where(.rxp-service-intro h1, .rxp-service-intro h2, .rxp-section-head h2, .rxp-inline-cta h2),
body.rxp-rfq-unified .rxp-rfq-page h3,
body.rxp-after-sales-unified .rxp-after-sales-page h3 {
  font-family: inherit !important;
}

body.rxp-survey-unified #rex-survey-pro,
body.rxp-survey-unified #rex-survey-pro *,
body.rxp-link-hub-unified #rex-hub-ultimate,
body.rxp-link-hub-unified #rex-hub-ultimate * {
  font-family: "Vazirmatn Rexsun", "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

/* RFQ: reduce the oversized introductory block and create one clear reading axis. */
body.rxp-rfq-unified .rxp-rfq-intro {
  min-height: 0 !important;
  display: grid;
  place-items: center;
  padding-block: clamp(76px, 7vw, 108px) !important;
  text-align: center;
}

body.rxp-rfq-unified .rxp-rfq-intro .rxp-container {
  width: min(calc(100% - (2 * var(--rx-page-gutter))), 900px);
}

body.rxp-rfq-unified .rxp-rfq-intro .rxp-eyebrow {
  justify-content: center;
}

body.rxp-rfq-unified .rxp-rfq-intro h1 {
  max-width: none;
  margin-inline: auto;
  color: #fff !important;
  font-size: clamp(2.35rem, 4.8vw, 3.75rem);
  font-weight: 900;
  line-height: 1.35;
}

body.rxp-rfq-unified .rxp-rfq-intro p {
  max-width: 760px;
  margin: 18px auto 0;
  color: #d8e0eb !important;
  font-size: clamp(.96rem, 1.25vw, 1.08rem);
  line-height: 2;
}

body.rxp-rfq-unified .rxp-rfq-section {
  padding-block: clamp(54px, 6vw, 82px) !important;
}

body.rxp-rfq-unified .rxp-rfq-section > .rxp-container {
  width: min(calc(100% - (2 * var(--rx-page-gutter))), 1180px);
}

body.rxp-rfq-unified .rxp-rfq-form fieldset {
  transition: border-color .25s ease, box-shadow .25s ease;
}

body.rxp-rfq-unified .rxp-rfq-form fieldset:focus-within {
  border-color: rgba(227, 6, 19, .26);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .09);
}

body.rxp-rfq-unified .rxp-form-submit .rxp-button {
  min-height: 52px;
  white-space: nowrap;
}

/* Survey: keep the working multi-step form, but align its typography and cards. */
body.rxp-survey-unified #rex-survey-pro {
  width: min(calc(100% - (2 * var(--rx-page-gutter))), var(--rx-shell-max)) !important;
  margin-inline: auto !important;
  padding: clamp(46px, 5vw, 66px) 0 clamp(64px, 7vw, 92px) !important;
  background: transparent !important;
  font-family: "Vazirmatn Rexsun", "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

body.rxp-survey-unified #rex-survey-pro .rx-bg-layer {
  display: none !important;
}

body.rxp-survey-unified #rex-survey-pro .rx-survey-seo-intro {
  width: min(100%, 900px) !important;
  margin: 0 auto clamp(24px, 3vw, 34px) !important;
  padding: clamp(24px, 3vw, 34px) !important;
  border: 1px solid rgba(15, 23, 42, .1) !important;
  border-radius: var(--rx-radius-md) !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .07) !important;
  text-align: center !important;
}

body.rxp-survey-unified #rex-survey-pro .rx-survey-seo-intro h1 {
  margin: 0 0 12px !important;
  color: var(--rx-brand-navy) !important;
  font-size: clamp(2rem, 4.4vw, 3.35rem) !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  text-wrap: balance;
}

body.rxp-survey-unified #rex-survey-pro .rx-survey-seo-intro p {
  max-width: 720px !important;
  margin: 5px auto 0 !important;
  color: var(--rx-text-muted) !important;
  font-size: clamp(.93rem, 1.15vw, 1.02rem) !important;
  line-height: 1.95 !important;
}

body.rxp-survey-unified #rex-survey-pro .survey-card {
  width: min(100%, 760px) !important;
  max-width: 760px !important;
  margin-inline: auto !important;
  padding: clamp(28px, 4vw, 44px) !important;
  border: 1px solid rgba(15, 23, 42, .1) !important;
  border-radius: var(--rx-radius-md) !important;
  background: #fff !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .1) !important;
}

body.rxp-survey-unified #rex-survey-pro .rxp-survey-noscript {
  margin: 0 0 22px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(227, 6, 19, .18) !important;
  border-radius: 14px !important;
  color: var(--rx-brand-navy) !important;
  background: rgba(227, 6, 19, .055) !important;
  line-height: 1.9 !important;
  text-align: center !important;
}

body.rxp-survey-unified #rex-survey-pro .rxp-survey-noscript a {
  color: var(--rx-brand-red) !important;
  font-weight: 900 !important;
}

body.rxp-survey-unified #rex-survey-pro .progress-track {
  height: 5px !important;
  margin-bottom: clamp(30px, 4vw, 42px) !important;
  border-radius: 999px !important;
  background: #eef1f5 !important;
}

body.rxp-survey-unified #rex-survey-pro .progress-bar {
  border-radius: inherit !important;
  background: linear-gradient(90deg, var(--rx-brand-red), #ef2333) !important;
}

body.rxp-survey-unified #rex-survey-pro .step-box h2 {
  color: var(--rx-brand-navy) !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

body.rxp-survey-unified #rex-survey-pro .step-desc {
  color: var(--rx-text-muted) !important;
  line-height: 1.9 !important;
  text-align: center !important;
}

body.rxp-survey-unified #rex-survey-pro .input-group :where(input, textarea) {
  min-height: 50px !important;
  border: 1px solid #cfd7e2 !important;
  border-radius: 13px !important;
  background: #fff !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}

body.rxp-survey-unified #rex-survey-pro .input-group :where(input, textarea):focus {
  border-color: var(--rx-brand-red) !important;
  box-shadow: 0 0 0 4px rgba(227, 6, 19, .08) !important;
  outline: 2px solid rgba(227, 6, 19, .32) !important;
  outline-offset: 2px !important;
}

body.rxp-survey-unified #rex-survey-pro .nps-label {
  min-width: 44px !important;
  min-height: 44px !important;
  display: grid !important;
  place-items: center !important;
}

body.rxp-survey-unified #rex-survey-pro input[type="radio"]:focus-visible + label {
  outline: 3px solid rgba(227, 6, 19, .34) !important;
  outline-offset: 3px !important;
}

body.rxp-survey-unified #rex-survey-pro .actions {
  gap: 12px !important;
  margin-top: 30px !important;
}

body.rxp-survey-unified #rex-survey-pro .actions .btn {
  min-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  padding-inline: 22px !important;
  border-radius: 999px !important;
  line-height: 1.5 !important;
  transition: transform .22s var(--rx-motion-spring), box-shadow .22s ease, border-color .22s ease !important;
}

body.rxp-survey-unified #rex-survey-pro .actions .btn:disabled {
  cursor: not-allowed !important;
  opacity: .48 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* After-sales: close the visual gap between sections and add restrained depth. */
body.rxp-after-sales-unified .rxp-after-sales-page {
  padding-top: clamp(24px, 3.2vw, 46px) !important;
}

body.rxp-after-sales-unified .rxp-after-sales-hero {
  padding-bottom: clamp(36px, 4.5vw, 58px) !important;
}

body.rxp-after-sales-unified .rxp-repair-proof {
  padding-block: clamp(54px, 6vw, 82px) !important;
}

body.rxp-after-sales-unified .rxp-repair-proof .rxp-card {
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--rx-motion-spring);
}

body.rxp-after-sales-unified .rxp-repair-proof .rxp-card img {
  transition: transform .55s var(--rx-motion-spring);
}

/* Link hub: remove the isolated square grid and reuse the site design language. */
body.rxp-link-hub-unified #rex-hub-ultimate {
  position: relative !important;
  min-height: 0 !important;
  overflow: clip !important;
  color: var(--rx-text-main) !important;
  background: transparent !important;
  font-family: "Vazirmatn Rexsun", "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .fixed-bg-layer {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  min-height: 100% !important;
  z-index: 0 !important;
  background:
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, .08) 1px, transparent 1.25px) 0 0 / 24px 24px,
    linear-gradient(155deg, #f7f9fc 0%, #f6f8fb 58%, #fff4f4 100%) !important;
  pointer-events: none !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate :where(.grid-texture, .light-beam) {
  display: none !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .ambient-glow {
  opacity: .34 !important;
  filter: blur(70px) !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .hub-wrapper {
  position: relative !important;
  z-index: 1 !important;
  width: min(calc(100% - (2 * var(--rx-page-gutter))), 920px) !important;
  max-width: 920px !important;
  min-height: 0 !important;
  margin-inline: auto !important;
  padding: clamp(58px, 7vw, 94px) 0 clamp(62px, 7vw, 92px) !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .hub-header {
  margin: 0 auto clamp(30px, 4vw, 46px) !important;
  text-align: center !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .super-title {
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: .22em !important;
  margin: 0 !important;
  color: var(--rx-brand-navy) !important;
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
  font-size: clamp(2.7rem, 7vw, 5.4rem) !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  letter-spacing: -.04em !important;
  text-shadow: none !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .super-title .title-part-2 {
  color: var(--rx-brand-red) !important;
  -webkit-text-fill-color: currentColor !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .rx-seo-subheading {
  max-width: 720px !important;
  margin: 18px auto 0 !important;
  color: var(--rx-brand-navy) !important;
  font-size: clamp(1.15rem, 2vw, 1.55rem) !important;
  font-weight: 800 !important;
  line-height: 1.7 !important;
  text-wrap: balance;
}

body.rxp-link-hub-unified #rex-hub-ultimate .laser-accent-line {
  width: 76px !important;
  height: 4px !important;
  margin: 20px auto 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--rx-brand-red), #ff5863) !important;
  box-shadow: none !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .sub-tag {
  margin: 18px auto 0 !important;
  color: var(--rx-text-muted) !important;
  font-size: 1rem !important;
  line-height: 1.9 !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .cards-stack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 0 !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .tilt-card {
  min-width: 0 !important;
  min-height: 132px !important;
  display: block !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(15, 23, 42, .1) !important;
  border-radius: 24px !important;
  color: var(--rx-brand-navy) !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 16px 44px rgba(15, 23, 42, .08) !important;
  transform: none !important;
  transition: transform .25s var(--rx-motion-spring), box-shadow .25s ease, border-color .25s ease !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .tilt-card .card-glass {
  display: none !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .tilt-card .card-inner {
  min-height: 132px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 24px !important;
  color: inherit !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .icon-wrap {
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 17px !important;
  color: #fff !important;
  background: var(--rx-brand-navy) !important;
  box-shadow: none !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .tilt-card.danger .icon-wrap {
  background: var(--rx-brand-red) !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .icon-wrap svg {
  width: 26px !important;
  height: 26px !important;
  fill: none !important;
  stroke: currentColor !important;
}

body.page-id-15994.rxp-link-hub-unified #rex-hub-ultimate a.tilt-card.primary .icon-wrap :is(svg, use) {
  color: currentColor !important;
  fill: none !important;
  stroke: currentColor !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .text-wrap h3 {
  margin: 0 0 6px !important;
  color: var(--rx-brand-navy) !important;
  font-size: 1.12rem !important;
  font-weight: 900 !important;
  line-height: 1.6 !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .text-wrap p {
  margin: 0 !important;
  color: var(--rx-text-muted) !important;
  font-size: .9rem !important;
  line-height: 1.8 !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .arrow-wrap {
  color: var(--rx-brand-red) !important;
  font-size: 1.35rem !important;
  transition: transform .22s var(--rx-motion-spring) !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .glass-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 18px 0 0 !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .glass-item,
body.rxp-link-hub-unified #rex-hub-ultimate .catalog-link {
  min-width: 0 !important;
  min-height: 58px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 13px 16px !important;
  border: 1px solid rgba(15, 23, 42, .1) !important;
  border-radius: 17px !important;
  color: var(--rx-brand-navy) !important;
  background: rgba(255, 255, 255, .92) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06) !important;
  font-weight: 800 !important;
  line-height: 1.65 !important;
  text-decoration: none !important;
  transition: transform .22s var(--rx-motion-spring), border-color .22s ease, box-shadow .22s ease !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .glass-item svg,
body.rxp-link-hub-unified #rex-hub-ultimate .catalog-link svg {
  width: 22px !important;
  height: 22px !important;
  color: var(--rx-brand-red) !important;
  fill: none !important;
  stroke: currentColor !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .catalog-link {
  width: 100% !important;
  margin-top: 14px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--rx-brand-red), #ef2333) !important;
  box-shadow: 0 14px 32px rgba(227, 6, 19, .2) !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .catalog-link svg {
  color: #fff !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .hub-footer {
  margin: 26px 0 0 !important;
  color: var(--rx-text-muted) !important;
  opacity: .8 !important;
  text-align: center !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate .hub-footer p {
  margin: 0 !important;
  font-size: .76rem !important;
  letter-spacing: .12em !important;
}

body.rxp-link-hub-unified #rex-hub-ultimate :where(a, button):focus-visible {
  outline: 3px solid rgba(227, 6, 19, .28) !important;
  outline-offset: 4px !important;
}

@media (hover: hover) and (pointer: fine) {
  body.rxp-after-sales-unified .rxp-repair-proof .rxp-card:hover {
    border-color: rgba(227, 6, 19, .22);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .1);
    transform: translateY(-3px);
  }

  body.rxp-after-sales-unified .rxp-repair-proof .rxp-card:hover img {
    transform: scale(1.025);
  }

  body.rxp-survey-unified #rex-survey-pro .actions .btn:not(:disabled):hover,
  body.rxp-link-hub-unified #rex-hub-ultimate :where(.tilt-card, .glass-item, .catalog-link):hover {
    border-color: rgba(227, 6, 19, .22) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .11) !important;
    transform: translateY(-3px) !important;
  }

  body.rxp-link-hub-unified #rex-hub-ultimate .tilt-card:hover .arrow-wrap {
    color: #fff !important;
    background: var(--rx-brand-navy) !important;
    transform: translateX(-4px) !important;
  }
}

@media (max-width: 1099px) {
  body:is(.rxp-rfq-unified, .rxp-survey-unified, .rxp-after-sales-unified, .rxp-link-hub-unified).rxp-header-v3-ready {
    padding-bottom: calc(94px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 767px) {
  body.rxp-rfq-unified .rxp-rfq-intro {
    padding-block: 62px 58px !important;
  }

  body.rxp-rfq-unified .rxp-rfq-intro h1 {
    font-size: clamp(2rem, 10.5vw, 2.75rem);
  }

  body.rxp-rfq-unified .rxp-rfq-section {
    padding-block: 46px 58px !important;
  }

  body.rxp-rfq-unified .rxp-form-submit {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
  }

  body.rxp-rfq-unified .rxp-form-submit .rxp-button {
    width: 100%;
    white-space: normal;
  }

  body.rxp-survey-unified #rex-survey-pro {
    width: min(calc(100% - 24px), var(--rx-shell-max)) !important;
    padding: 28px 0 calc(84px + env(safe-area-inset-bottom)) !important;
  }

  body.rxp-survey-unified #rex-survey-pro .rx-survey-seo-intro,
  body.rxp-survey-unified #rex-survey-pro .survey-card {
    padding: 22px 18px !important;
    border-radius: 20px !important;
  }

  body.rxp-survey-unified #rex-survey-pro .rx-survey-seo-intro h1 {
    font-size: clamp(1.75rem, 8.4vw, 2.25rem) !important;
  }

  body.rxp-survey-unified #rex-survey-pro .actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rxp-survey-unified #rex-survey-pro .actions .btn-submit {
    grid-column: 1 / -1 !important;
  }

  body.rxp-after-sales-unified .rxp-after-sales-page {
    padding-top: 18px !important;
  }

  body.rxp-after-sales-unified .rxp-after-sales-hero {
    padding-bottom: 38px !important;
  }

  body.rxp-link-hub-unified #rex-hub-ultimate .hub-wrapper {
    width: min(calc(100% - 24px), 920px) !important;
    padding: 44px 0 calc(86px + env(safe-area-inset-bottom)) !important;
  }

  body.rxp-link-hub-unified #rex-hub-ultimate .super-title {
    font-size: clamp(2.2rem, 11vw, 3rem) !important;
    letter-spacing: -.025em !important;
  }

  body.rxp-link-hub-unified #rex-hub-ultimate .rx-seo-subheading {
    font-size: 1.05rem !important;
  }

  body.rxp-link-hub-unified #rex-hub-ultimate .cards-stack {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.rxp-link-hub-unified #rex-hub-ultimate .tilt-card,
  body.rxp-link-hub-unified #rex-hub-ultimate .tilt-card .card-inner {
    min-height: 116px !important;
  }

  body.rxp-link-hub-unified #rex-hub-ultimate .tilt-card .card-inner {
    gap: 13px !important;
    padding: 18px !important;
  }

  body.rxp-link-hub-unified #rex-hub-ultimate .icon-wrap {
    width: 48px !important;
    height: 48px !important;
    border-radius: 15px !important;
  }

  body.rxp-link-hub-unified #rex-hub-ultimate .glass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.rxp-link-hub-unified #rex-hub-ultimate .glass-item:last-child {
    grid-column: 1 / -1 !important;
  }

  body.rxp-link-hub-unified #rex-hub-ultimate .glass-item,
  body.rxp-link-hub-unified #rex-hub-ultimate .catalog-link {
    padding-inline: 12px !important;
    font-size: .88rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.rxp-rfq-unified .rxp-rfq-form fieldset,
  body.rxp-after-sales-unified .rxp-repair-proof .rxp-card,
  body.rxp-after-sales-unified .rxp-repair-proof .rxp-card img,
  body.rxp-survey-unified #rex-survey-pro .actions .btn,
  body.rxp-link-hub-unified #rex-hub-ultimate :where(.tilt-card, .glass-item, .catalog-link, .arrow-wrap) {
    transition: none !important;
  }

  body.rxp-after-sales-unified .rxp-repair-proof .rxp-card:hover,
  body.rxp-after-sales-unified .rxp-repair-proof .rxp-card:hover img,
  body.rxp-survey-unified #rex-survey-pro .actions .btn:not(:disabled):hover,
  body.rxp-link-hub-unified #rex-hub-ultimate :where(.tilt-card, .glass-item, .catalog-link):hover {
    transform: none !important;
  }
}
