/* =========================================================
   WADI AL SANNA - CONTACT / REQUEST A QUOTE
   Depends on css/style.css design tokens
========================================================= */

/* =========================================================
   HERO
========================================================= */

.contact-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(430px, 54vh, 505px);
  padding: var(--header-h) 0 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--navy-deep);
}

.contact-hero-background {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.contact-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  transform: scale(1.012);
}
.contact-hero-image-ar{
  display:none;
}

html[dir="rtl"] .contact-hero-image-en{
  display:none;
}

html[dir="rtl"] .contact-hero-image-ar{
  display:block;
}
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(7,14,55,.78) 0%,
    rgba(12,22,72,.62) 34%,
    rgba(25,39,152,.25) 62%,
    rgba(25,39,152,.06) 100%
  );
}

.contact-hero-container {
  min-height: inherit;
  display: flex;
  align-items: center;
  padding-top: clamp(28px, 3.4vh, 40px);
  padding-bottom: clamp(34px, 4vw, 52px);
}

.contact-hero-copy {
  width: min(585px, 55%);
  color: #fff;
}

.contact-hero-title {
  max-width: 585px;
  margin: 0 0 13px;
  color: #fff;
  font-size: var(--fs-display);
  line-height: 1.055;
  letter-spacing: -.04em;
  text-shadow: 0 2px 14px rgba(0,0,0,.1);
}

.contact-hero-title span {
  display: block;
  color: #fff;
}

.contact-hero-description {
  max-width: 520px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  line-height: 1.62;
}

.contact-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.contact-hero-whatsapp-btn {
  color: #fff;
  border-color: rgba(255,255,255,.32);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.contact-hero-whatsapp-btn:hover {
  color: var(--brand-blue);
  border-color: #fff;
  background: #fff;
  transform: translateY(-2px);
}

.contact-hero-whatsapp-btn .ti {
  font-size: 16px;
}

/* =========================================================
   CONTACT INFORMATION
========================================================= */

.contact-info-section {
  background: #fff;
  padding: clamp(42px, 3.8vw, 56px) 0;
}

.contact-info-heading {
  max-width: 780px;
}

.contact-info-intro {
  max-width: 500px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-top: 23px;
}

.contact-info-card {
  position: relative;
  min-width: 0;
  min-height: 132px;

  /* Contact page only: icon above, text underneath */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;

  padding: 18px 16px 17px;
  overflow: hidden;
  border: 1px solid rgba(25,39,152,.11);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);

  text-align: start;

  transition:
    transform .27s var(--ease),
    border-color .27s ease,
    box-shadow .27s ease,
    background .27s ease;
}

.contact-info-card::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 0;
  height: 3px;
  background: var(--orange);
  transition: width .32s var(--ease);
}

.contact-info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,138,0,.34);
  box-shadow: var(--shadow-md);
}

.contact-info-card:hover::after {
  width: 100%;
}

/* Completely scoped to Contact Information cards.
   Does not reuse footer/global phone-icon or whatsapp-icon colors. */
.contact-info-card > .contact-info-card-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  border-radius: 9px;

  color: var(--orange) !important;
  background: rgba(255,138,0,.10) !important;
}

.contact-info-card > .contact-info-card-icon .ti {
  color: inherit !important;
  font-size: 21px;
}
.contact-info-card-copy {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  margin: 0;
  padding: 0;

  text-align: start;
}

.contact-info-label {
  display: block;
  width: 100%;
  margin: 0 0 5px;

  color: var(--orange);
  font-family: var(--font-tech);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-info-card-copy strong {
  display: block;
  width: 100%;
  margin: 0;

  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.contact-info-card-copy small {
  display: block;
  width: 100%;
  margin-top: 5px;

  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
}

/* RTL: same vertical structure, but start from the right.
   Phone glyph is flipped here locally instead of using the global phone-icon class. */
html[dir="rtl"] .contact-info-card {
  align-items: flex-start;
  text-align: right;
}

html[dir="rtl"] .contact-info-card-copy {
  align-items: flex-start;
  text-align: right;
}

html[dir="rtl"] .contact-info-card > .contact-card-phone-icon .ti {
  transform: scaleX(-1);
}

/* =========================================================
   SMART RFQ
========================================================= */

.contact-rfq-section {
  background: var(--surface);
  padding: clamp(44px, 4vw, 60px) 0;
}

.contact-rfq-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 76px;
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.contact-rfq-aside {
  min-width: 0;
  padding-top: 3px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-rfq-aside .section-pill,
.contact-rfq-aside .section-title,
.contact-rfq-aside .contact-rfq-intro {
  align-self: flex-start;
  text-align: start;
}

.contact-rfq-aside .section-pill {
  margin-bottom: 14px;
}

.contact-rfq-aside .section-title {
  max-width: 500px;
  margin-top: 0;
  margin-bottom: 14px;
}

.contact-rfq-intro {
  max-width: 510px;
  margin-top: 0;
  font-size: 13px;
}

/* =========================================================
   SERVICE SELECTOR CARDS
========================================================= */

.contact-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
}

.contact-service-card {
  position: relative;
  min-width: 0;
  min-height: 96px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 12px 13px;
  overflow: hidden;
  border: 1px solid rgba(25,39,152,.12);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-align: start;
  box-shadow: 0 5px 14px rgba(16,27,88,.045);
  transition:
    transform .25s var(--ease),
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.contact-service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,138,0,.34);
  box-shadow: 0 8px 20px rgba(16,27,88,.065);
}


.contact-service-card:focus-visible {
  outline: 2px solid rgba(255,138,0,.55);
  outline-offset: 2px;
}

.contact-service-card.is-active {
  background: linear-gradient(180deg, rgba(255,138,0,.105) 0%, rgba(255,138,0,.045) 58%, rgba(255,255,255,.98) 100%);
  border-color: rgba(255,138,0,.62);
  box-shadow: 0 8px 20px rgba(255,138,0,.075);
}

.contact-service-card-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(255,138,0,.10);
  color: var(--orange);
  transition: color .25s ease, background .25s ease;
}

.contact-service-card-icon .ti {
  font-size: 22px;
}

.contact-service-card:hover .contact-service-card-icon,
.contact-service-card.is-active .contact-service-card-icon {
  color: var(--orange);
  background: rgba(255,138,0,.15);
}

.contact-service-card-title {
  min-width: 0;
  color: var(--brand-blue);
  font-size: 10.4px;
  font-weight: 800;
  line-height: 1.18;
  white-space: nowrap;
}

.contact-service-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 1px;
}

.contact-service-card-desc {
  color: var(--muted);
  font-size: 9.4px;
  font-weight: 500;
  line-height: 1.38;
}

.contact-service-card-line {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 0;
  height: 3px;
  background: var(--orange);
  transition: width .32s var(--ease);
}

.contact-service-card:hover .contact-service-card-line,
.contact-service-card.is-active .contact-service-card-line {
  width: 100%;
}

/* =========================================================
   SUPPORT CARD - IMAGE / CONTACT HELP
========================================================= */

.contact-support-card {
  position: relative;
  min-height: 192px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(25,39,152,.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16,27,88,.055);
}

.contact-support-media,
.contact-support-overlay {
  position: absolute;
  inset: 0;
}

.contact-support-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .27;
  filter: grayscale(.72) contrast(.9);
}

.contact-support-overlay {
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 58%, rgba(255,255,255,.70) 100%);
}

html[dir="rtl"] .contact-support-overlay {
  background: linear-gradient(270deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 58%, rgba(255,255,255,.70) 100%);
}

.contact-support-content {
  position: relative;
  z-index: 1;
  padding: 15px 16px 13px;
}

.contact-support-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}

.contact-support-card-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255,138,0,.12);
  color: var(--orange);
}

.contact-support-card-icon .ti {
  font-size: 21px;
}

.contact-support-heading strong {
  display: block;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.contact-support-heading > div > span {
  display: block;
  margin-top: 2px;
  color: var(--brand-blue);
  font-size: 10.2px;
  font-weight: 650;
}

.contact-support-content > p {
  max-width: 430px;
  margin: 8px 0 10px;
  color: #4f5f78;
  font-size: 10.3px;
  line-height: 1.45;
}

/* =========================================================
   FORM PANEL
========================================================= */

.contact-rfq-form-panel {
  width: 100%;
  max-width: 585px;
  justify-self: end;
  min-width: 0;
  padding: 20px 21px 22px;
  border: 1px solid rgba(18,29,84,.09);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(21,31,72,.06);
}

.contact-rfq-form-heading {
  margin-bottom: 14px;
}

.contact-rfq-form-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--orange);
  font-family: var(--font-tech);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-rfq-form-heading h3 {
  margin: 0;
  color: var(--brand-blue);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.contact-rfq-form-heading p {
  max-width: 570px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.contact-rfq-alert {
  display: none;
  margin-bottom: 12px;
  padding: 10px 11px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.contact-rfq-alert.is-visible {
  display: block;
}

.contact-rfq-alert.is-success {
  color: #157347;
  border: 1px solid rgba(21,115,71,.16);
  background: rgba(21,115,71,.065);
}

.contact-rfq-alert.is-error {
  color: #b42318;
  border: 1px solid rgba(180,35,24,.15);
  background: rgba(180,35,24,.055);
}

.contact-rfq-form {
  min-width: 0;
}

.contact-rfq-grid {
  display: grid;
  gap: 12px;
}

.contact-rfq-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-rfq-field {
  min-width: 0;
  margin-bottom: 9px;
}

.contact-rfq-field label {
  display: block;
  width: 100%;
  margin: 0 0 5px;
  color: #10165a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.contact-rfq-field input,
.contact-rfq-field select,
.contact-rfq-field textarea {
  width: 100%;
  border: 1px solid #d8deea;
  border-radius: 9px;
  background: #fff;
  color: #18213a;
  font: inherit;
  font-size: 12.5px;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.contact-rfq-field input,
.contact-rfq-field select {
  height: 40px;
  padding: 0 10px;
}

.contact-rfq-field textarea {
  min-height: 88px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.45;
}

.contact-rfq-field select {
  cursor: pointer;
}

.contact-rfq-field input::placeholder,
.contact-rfq-field textarea::placeholder {
  color: #98a2b3;
}

.contact-rfq-field input:focus,
.contact-rfq-field select:focus,
.contact-rfq-field textarea:focus {
  border-color: rgba(25,39,152,.62);
  box-shadow: 0 0 0 3px rgba(25,39,152,.075);
}

.contact-rfq-field.has-error input,
.contact-rfq-field.has-error select,
.contact-rfq-field.has-error textarea {
  border-color: #c93d3d;
}

.contact-rfq-error {
  display: block;
  min-height: 0;
  margin-top: 3px;
  color: #b42318;
  font-size: 9.7px;
  font-weight: 600;
  line-height: 1.3;
}


.required-mark {
  color: var(--orange);
  font-weight: 800;
}

/* =========================================================
   DYNAMIC SERVICE BOX
========================================================= */

.contact-dynamic-box {
  margin: 3px 0 11px;
  padding: 14px 14px 4px;
  border: 1px solid rgba(255,138,0,.34);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,248,225,.96), rgba(255,252,243,.98));
}

.contact-dynamic-box[hidden] {
  display: none;
}

.contact-dynamic-box-head {
  display: block;
  margin-bottom: 10px;
}
.contact-dynamic-box-head strong {
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 750;
}

.contact-dynamic-box .contact-rfq-field input {
  background: rgba(255,255,255,.9);
  border-color: rgba(192,145,61,.25);
}

.contact-dynamic-box .contact-rfq-field input:focus {
  border-color: rgba(255,138,0,.55);
  box-shadow: 0 0 0 3px rgba(255,138,0,.08);
}

/* =========================================================
   UPLOAD BOX
========================================================= */

.contact-upload-input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-upload-dropzone {
  width: 100% !important;
  min-height: 96px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 !important;
  padding: 14px 16px !important;
  cursor: pointer;
  text-align: center;
  border: 1.5px dashed rgba(25,39,152,.27);
  border-radius: 10px;
  background: #fbfcff;
  transition:
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.contact-upload-dropzone:hover,
.contact-upload-dropzone.is-selected {
  border-color: rgba(255,138,0,.55);
  background: rgba(255,250,240,.72);
  box-shadow: 0 8px 20px rgba(16,27,88,.045);
}

.contact-upload-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--brand-blue);
  background: rgba(25,39,152,.07);
}

.contact-upload-icon .ti {
  font-size: 21px;
}

.contact-upload-dropzone strong {
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
}

.contact-upload-file-name {
  max-width: 100%;
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-upload-dropzone small {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.35;
}

.contact-upload-field.has-error .contact-upload-dropzone {
  border-color: #c93d3d;
  background: rgba(201,61,61,.025);
}

/* =========================================================
   CONSENT / ASSURANCES / CAPTCHA / SUBMIT
========================================================= */

.contact-consent-field {
  margin: 3px 0 10px;
}

.contact-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
}

.contact-consent-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-consent-box {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border: 1px solid #cfd6e3;
  border-radius: 5px;
  background: #fff;
  color: transparent;
  transition: all .2s ease;
}

.contact-consent-box .ti {
  font-size: 13px;
}

.contact-consent-label input:checked + .contact-consent-box {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}

.contact-consent-field.has-error .contact-consent-box {
  border-color: #c93d3d;
  box-shadow: 0 0 0 3px rgba(201,61,61,.06);
}

.contact-rfq-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.contact-rfq-captcha-wrap {
  flex: 0 0 auto;
  min-width: 0;
  transform: scale(.86);
  transform-origin: left center;
  margin-right: -36px;
  border-radius: 6px;
}

.contact-rfq-captcha-wrap.has-error .g-recaptcha {
  outline: 2px solid rgba(201,61,61,.65);
  outline-offset: 2px;
  border-radius: 4px;
}

.contact-rfq-submit {
  flex: 0 0 auto;
  min-width: 160px;
}

/* =========================================================
   RTL
========================================================= */

html[dir="rtl"] .contact-hero-overlay {
  background: linear-gradient(
    270deg,
    rgba(7,14,55,.78) 0%,
    rgba(12,22,72,.62) 34%,
    rgba(25,39,152,.25) 62%,
    rgba(25,39,152,.06) 100%
  );
}

html[dir="rtl"] .contact-hero-copy,
html[dir="rtl"] .contact-info-heading,
html[dir="rtl"] .contact-rfq-aside,
html[dir="rtl"] .contact-rfq-form-panel {
  text-align: right;
}
html[dir="rtl"] .contact-hero-buttons {
  direction: rtl;
}
html[dir="rtl"] .contact-service-card {
  text-align: right;
}
html[dir="rtl"] .contact-info-label,
html[dir="rtl"] .contact-rfq-form-kicker {
  letter-spacing: 0;
}

/* Contact RFQ aside: keep pill, title and intro on one logical start edge */
html[dir="rtl"] .contact-rfq-aside {
  align-items: flex-start;
  text-align: right;
}

html[dir="rtl"] .contact-rfq-aside .section-pill,
html[dir="rtl"] .contact-rfq-aside .section-title,
html[dir="rtl"] .contact-rfq-aside .contact-rfq-intro {
  align-self: flex-start;
  text-align: right;
}

/* Date field:
   English = text left / calendar right
   Arabic  = text right / calendar left */
html[dir="ltr"] .contact-dynamic-field input[type="date"] {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .contact-dynamic-field input[type="date"]::-webkit-calendar-picker-indicator {
  margin-left: auto;
  margin-right: 0;
}

html[dir="rtl"] .contact-dynamic-field input[type="date"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .contact-dynamic-field input[type="date"]::-webkit-calendar-picker-indicator {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .contact-rfq-captcha-wrap {
  transform-origin: right center;
  margin-right: 0;
  margin-left: -36px;
}

/* =========================================================
   LARGE LAPTOP
========================================================= */

@media (max-width: 1199.98px) {
  .contact-rfq-layout {
    grid-template-columns: minmax(280px, .84fr) minmax(0, 1.16fr);
    gap: 54px;
  }

  .contact-service-card-title {
    font-size: 10.3px;
  }

}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {
  .contact-hero-copy {
    width: 69%;
    max-width: 540px;
  }

  .contact-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-rfq-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 720px;
  }

  .contact-rfq-aside {
    max-width: 760px;
  }

  .contact-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-service-card-title {
    font-size: 10px;
  }

  .contact-rfq-form-panel {
    max-width: 100%;
    justify-self: stretch;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {
  .contact-hero {
    min-height: 500px;
  }

  .contact-hero-overlay,
  html[dir="rtl"] .contact-hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(11,20,71,.42) 0%,
      rgba(16,27,88,.62) 58%,
      rgba(25,39,152,.4) 100%
    );
  }

  .contact-hero-container {
    min-height: 436px;
    align-items: flex-start;
    padding-top: 38px;
  }

  .contact-hero-copy,
  html[dir="rtl"] .contact-hero-copy {
    width: 100%;
    max-width: 500px;
  }

  .contact-hero-description {
    max-width: 460px;
    font-size: 12px;
  }

  .contact-info-section,
  .contact-rfq-section {
    padding: 32px 0;
  }

  .contact-info-grid {
    gap: 10px;
  }

  .contact-info-card {
    min-height: 118px;
    padding: 15px 13px;
  }

  /* Agreed mobile behavior: keep heading, hide service/support cards */
  .contact-service-grid,
  .contact-support-card {
    display: none;
  }

  .contact-rfq-aside {
    padding-top: 0;
  }

  .contact-rfq-intro {
    max-width: 620px;
  }

  .contact-rfq-form-panel {
    width: 100%;
    max-width: none;
    padding: 19px 16px 17px;
  }

  .contact-rfq-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-rfq-captcha-wrap,
  html[dir="rtl"] .contact-rfq-captcha-wrap {
    width: max-content;
    max-width: 100%;
    transform: scale(.82);
    transform-origin: left top;
    margin: 0 0 -10px;
  }

  html[dir="rtl"] .contact-rfq-captcha-wrap {
    transform-origin: right top;
  }

  .contact-rfq-submit {
    width: 100%;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {
  .contact-hero {
    min-height: 475px;
  }

  .contact-hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-hero-buttons .btn {
    width: 100%;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    min-height: 96px;
  }

  .contact-rfq-grid-two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-dynamic-box {
    padding: 13px 12px 4px;
  }

  .contact-dynamic-box-head {
    display: block;
  }

  .contact-upload-dropzone {
    min-height: 120px;
    padding: 15px 12px !important;
  }
}

/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
  .contact-hero-title {
    font-size: 1.55rem;
    line-height: 1.12;
  }

  .contact-hero-description {
    font-size: 11px;
  }

  .contact-rfq-form-panel {
    padding: 17px 12px 15px;
    border-radius: 12px;
  }

  .contact-rfq-captcha-wrap,
  html[dir="rtl"] .contact-rfq-captcha-wrap {
    transform: scale(.76);
    margin-bottom: -17px;
  }
}

/* =========================================================
   FINAL CONTACT ALIGNMENT OVERRIDES
   Scoped to Contact page only
========================================================= */

/* ---------------------------------------------------------
   1) Contact information cards
   main.js keeps tel/mailto values LTR. On Arabic pages the
   card itself must remain RTL while only the value stays LTR.
--------------------------------------------------------- */
html[dir="rtl"] .contact-info-card {
  direction: rtl !important;
  align-items: flex-start !important;
  text-align: right !important;
}

html[dir="rtl"] .contact-info-card-copy {
  direction: rtl;
  align-items: flex-start !important;
  text-align: right !important;
}

html[dir="rtl"] .contact-info-card .contact-info-label,
html[dir="rtl"] .contact-info-card-copy small {
  text-align: right;
}

html[dir="rtl"] .contact-info-card .ltr-text {
  direction: ltr !important;
  unicode-bidi: isolate;
  text-align: right;
}

/* ---------------------------------------------------------
   2) RFQ heading block
   Pill, title and intro share one logical start edge.
--------------------------------------------------------- */
.contact-rfq-aside {
  width: 100%;
}

.contact-rfq-aside .section-pill {
  width: max-content;
  max-width: 100%;
  align-self: auto;
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.contact-rfq-aside .section-title,
.contact-rfq-aside .contact-rfq-intro {
  width: 100%;
  align-self: stretch;
  text-align: start;
}

html[dir="rtl"] .contact-rfq-aside .section-title,
html[dir="rtl"] .contact-rfq-aside .contact-rfq-intro {
  text-align: right !important;
}

/* Keep a clearer desktop separation between aside and form. */
@media (min-width: 1200px) {
  .contact-rfq-layout {
    grid-template-columns: minmax(320px, .80fr) minmax(0, 1.20fr);
    gap: 88px;
  }
}

/* ---------------------------------------------------------
   4) Date control
   EN: value left / calendar right
   AR: value right / calendar left
   The native icon is hidden visually; the input stays native.
--------------------------------------------------------- */
.contact-date-control {
  position: relative;
  width: 100%;
}

.contact-date-control input[type="date"] {
  width: 100%;
  position: relative;
}

/* Hide only the visible browser icon, not the native date input. */
.contact-date-control input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34px;
  height: 100%;
  cursor: pointer;
  z-index: 3;
}

.contact-date-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #18213a;
  pointer-events: none;
}

.contact-date-icon .ti {
  font-size: 17px;
  line-height: 1;
}

html[dir="ltr"] .contact-date-control input[type="date"] {
  direction: ltr;
  text-align: left;
  padding-left: 10px;
  padding-right: 38px;
}

html[dir="ltr"] .contact-date-control input[type="date"]::-webkit-calendar-picker-indicator {
  right: 4px;
  left: auto;
}

html[dir="ltr"] .contact-date-icon {
  right: 10px;
  left: auto;
}

html[dir="rtl"] .contact-date-control input[type="date"] {
  direction: rtl;
  text-align: right;
  padding-right: 10px;
  padding-left: 38px;
}

html[dir="rtl"] .contact-date-control input[type="date"]::-webkit-calendar-picker-indicator {
  left: 4px;
  right: auto;
}

html[dir="rtl"] .contact-date-icon {
  left: 10px;
  right: auto;
}

/* ---------------------------------------------------------
   5) Responsive safety
--------------------------------------------------------- */
@media (max-width: 1199.98px) and (min-width: 992px) {
  .contact-rfq-layout {
    gap: 58px;
  }
}
/* =========================================================
   FINAL CONTACT POLISH
   Clean consolidated overrides
   RFQ heading alignment and date control are intentionally untouched.
========================================================= */

/* ---------------------------------------------------------
   SERVICE CARDS
   Keep the six cards compact and balanced.
--------------------------------------------------------- */

.contact-service-grid {
  column-gap: 10px;
  row-gap: 10px;
}

.contact-service-card {
  min-height: 92px;
  padding: 12px 11px 11px;
  gap: 10px;
}

.contact-service-card-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.contact-service-card-title {
  font-size: 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.contact-service-card-desc {
  font-size: 9.2px;
  line-height: 1.36;
}


/* ---------------------------------------------------------
   SERVICE / SUPPORT WIDTH
   Approx. 2 cm narrower overall on desktop/tablet landscape.
   The two service cards therefore lose roughly 1 cm each.
--------------------------------------------------------- */

@media (min-width: 992px) {

  .contact-service-grid,
  .contact-support-card {
    width: calc(100% - 0px);
    max-width: calc(100% - 0px);
    margin-inline: auto;
    box-sizing: border-box;
  }
}
/* ---------------------------------------------------------
   SUPPORT CARD
--------------------------------------------------------- */

.contact-support-card {
  min-height: 220px;
}

.contact-support-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-support-links a {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: var(--brand-blue);
  transition: background .2s ease, color .2s ease;
}

.contact-support-links a:hover {
  background: rgba(255,138,0,.10);
  color: var(--orange);
}

.contact-support-links a > .ti {
  width: 22px;
  min-width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 18px;
  line-height: 1;
}

.contact-support-links a > span {
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.contact-support-links small {
  display: none !important;
}

.contact-support-links b {
  display: inline-block;
  width: auto;
  margin: 0;
  color: var(--brand-blue);
  font-size: 9.6px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

html[dir="ltr"] .contact-support-links a {
  direction: ltr !important;
  text-align: left;
}

html[dir="rtl"] .contact-support-links a {
  direction: rtl !important;
  text-align: right !important;
}

html[dir="rtl"] .contact-support-links a > span {
  width: auto;
  flex: 0 0 auto;
}

html[dir="rtl"] .contact-support-links b {
  direction: ltr !important;
  unicode-bidi: isolate;
  text-align: right;
}

/* Keep the phone glyph local to this Contact component. */
html[dir="rtl"] .contact-support-links a[href^="tel:"] > .ti {
  transform: scaleX(-1);
}


/* ---------------------------------------------------------
   SUPPORT TRUST POINTS
--------------------------------------------------------- */

.contact-support-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(25,39,152,.10);
}

.contact-support-trust > span {
  min-width: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 4px;
  color: #4f5f78;
  font-size: 8.8px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.contact-support-trust .ti {
  width: 17px;
  min-width: 17px;
  flex: 0 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 15px;
}

html[dir="ltr"] .contact-support-trust > span {
  font-size: 8.5px;
}

html[dir="rtl"] .contact-support-trust > span {
  direction: rtl;
}


/* ---------------------------------------------------------
   DYNAMIC SERVICE DETAILS
   Same orange family as the active service card, but lighter.
--------------------------------------------------------- */

.contact-dynamic-box {
  border-color: rgba(255,138,0,.42);
  background:
    linear-gradient(
      180deg,
      rgba(255,138,0,.065) 0%,
      rgba(255,138,0,.025) 100%
    );
}

.contact-dynamic-box .contact-rfq-field input {
  background: rgba(255,255,255,.94);
  border-color: rgba(255,138,0,.20);
}
/* =========================================================
   CONTACT PAGE — FINAL RESPONSIVE SYSTEM
   Mobile Hero / Contact Cards / RFQ Submit / Arrow Cleanup
========================================================= */

/* Remove button arrows on every screen size and in both languages. */
.contact-hero .direction-arrow,
.contact-rfq-section .direction-arrow {
  display: none !important;
}


/* =========================================================
   CONTACT — MOBILE HERO STANDARD
   Matches the approved Services / Gantry / Industries rhythm
========================================================= */

@media (max-width: 575.98px) {

  .contact-hero {
    min-height: 535px;
  }

  .contact-hero-container {
    min-height: 473px;
    align-items: stretch;
    padding-top: 0;
    padding-bottom: 0;
  }

  .contact-hero .hero-main {
    align-items: center;
    padding-top: 54px;
    padding-bottom: 6px;
  }
.contact-hero-copy,
html[dir="rtl"] .contact-hero-copy {
  margin-inline: 0;
}
  .contact-hero-buttons {
    display: grid;
    align-items: stretch;
  }

  .contact-hero-buttons .btn {
    min-width: 0;
    white-space: nowrap;
    justify-content: center;
  }

  .contact-hero-spec-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% + 16px);
    min-height: 72px;
    margin-inline: -8px;
  }

  .contact-hero-spec-panel .hero-spec-item {
    min-width: 0;
    min-height: 72px;
    padding: 7px 5px 8px;
    gap: 5px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 0;
    overflow: hidden;
  }

  .contact-hero-spec-panel .hero-spec-item:not(:last-child) {
    border-inline-end: 1px solid rgba(255,255,255,.14);
  }

  .contact-hero-spec-panel .hero-spec-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    margin: 0;
    border-radius: 7px;
  }

  .contact-hero-spec-panel .hero-spec-icon .ti {
    font-size: 16px;
  }

  .contact-hero-spec-panel .hero-spec-content {
    min-width: 0;
    width: 100%;
    text-align: center;
  }

  .contact-hero-spec-panel .hero-spec-content strong {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 20px;
    margin: 0;
    font-size: 8.7px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    text-wrap: balance;
  }

  .contact-hero-spec-panel .hero-spec-content span {
    display: none;
  }

  html[dir="ltr"] .contact-hero-spec-panel .hero-spec-item,
  html[dir="rtl"] .contact-hero-spec-panel .hero-spec-item,
  html[dir="ltr"] .contact-hero-spec-panel .hero-spec-content,
  html[dir="rtl"] .contact-hero-spec-panel .hero-spec-content {
    text-align: center;
  }


  /* ---------------------------------------------------------
     CONTACT INFORMATION — 2 x 2 compact cards
  --------------------------------------------------------- */

  .contact-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }

  .contact-info-card {
    min-height: 108px;
    padding: 12px 10px 11px;
    gap: 7px;
    border-radius: 10px;
  }

  .contact-info-card > .contact-info-card-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
  }

  .contact-info-card > .contact-info-card-icon .ti {
    font-size: 18px;
  }

  .contact-info-label {
    margin-bottom: 3px;
    font-size: 8.6px;
  }

  .contact-info-card-copy strong {
    font-size: 11px;
    line-height: 1.25;
  }

  .contact-info-card-copy small {
    margin-top: 3px;
    font-size: 8.8px;
    line-height: 1.3;
  }


  /* ---------------------------------------------------------
     RFQ FORM — compact submit button on mobile
  --------------------------------------------------------- */

  .contact-rfq-actions,
  html[dir="rtl"] .contact-rfq-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .contact-rfq-submit,
  html[dir="rtl"] .contact-rfq-submit {
    width: auto;
    min-width: 0;
    min-height: 36px;
    padding: 7px 14px;
    margin: 0;
    align-self: flex-end;
    justify-content: center;
    font-size: 9.5px;
    line-height: 1.15;
    white-space: nowrap;
  }

}


/* =========================================================
   CONTACT — VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

  .contact-hero-title {
    font-size: 1.55rem;
    line-height: 1.12;
  }

  .contact-hero-description {
    font-size: 11px;
  }
.contact-info-card {
    min-height: 104px;
    padding: 11px 9px 10px;
  }

  .contact-info-card-copy strong {
    font-size: 10.5px;
  }

  .contact-info-card-copy small {
    font-size: 8.4px;
  }

  .contact-rfq-submit,
  html[dir="rtl"] .contact-rfq-submit {
    min-height: 35px;
    padding-inline: 12px;
    font-size: 9px;
  }

}

/* =========================================================
   CONTACT - FINAL VISUAL ALIGNMENT
   Approved Home / Services / Gantry responsive rhythm
   Hero title wrapping, mobile CTA sizing and footer alignment
========================================================= */

/* Desktop English hero: three balanced lines */
@media (min-width: 992px){
  html[dir="ltr"] .contact-hero-copy{
    width:min(500px,50%);
  }

  html[dir="ltr"] .contact-hero-title{
    width:100%;
    max-width:455px;
    text-wrap:balance;
  }
}

/* Arabic typography follows the approved compact RTL system */
html[dir="rtl"] .contact-hero-title{
  max-width:560px;
  font-size:clamp(2rem,3vw,2.85rem);
  line-height:1.18;
  letter-spacing:0;
  text-wrap:balance;
}

html[dir="rtl"] .contact-info-heading .section-title,
html[dir="rtl"] .contact-rfq-aside .section-title{
  width:min(100%,500px);
  max-width:500px;
  font-size:clamp(1.55rem,2vw,1.95rem);
  line-height:1.28;
  letter-spacing:0;
  text-wrap:balance;
}

/* Keep section rhythm aligned with the approved pages */
.contact-info-section,
.contact-rfq-section{
  padding:clamp(38px,3.6vw,50px) 0;
}

.contact-info-heading .section-title,
.contact-rfq-aside .section-title{
  margin-top:8px;
  margin-bottom:10px;
}

.contact-info-intro,
.contact-rfq-intro{
  max-width:500px;
  line-height:1.62;
}

@media (max-width:767.98px){
  .contact-info-section,
  .contact-rfq-section{
    padding:28px 0;
  }

  html[dir="rtl"] .contact-info-heading .section-title,
  html[dir="rtl"] .contact-rfq-aside .section-title{
    width:min(100%,460px);
    max-width:460px;
    font-size:clamp(1.4rem,5vw,1.7rem);
    line-height:1.32;
  }
}

@media (max-width:575.98px){
  /* EN + AR mobile Hero: three balanced title lines */
  .contact-hero-copy,
  html[dir="rtl"] .contact-hero-copy{
    width:100%;
    max-width:100%;
  }

  html[dir="ltr"] .contact-hero-title{
    width:100%;
    max-width:305px;
    font-size:clamp(1.62rem,7vw,1.9rem);
    line-height:1.14;
    text-wrap:balance;
  }

  html[dir="rtl"] .contact-hero-title{
    width:100%;
    max-width:345px;
    margin-inline-start:0;
    margin-inline-end:auto;
    font-size:clamp(1.72rem,7.1vw,2rem);
    line-height:1.21;
    text-align:right;
    text-wrap:balance;
  }

  html[dir="rtl"] .contact-hero-title > span,
  html[dir="ltr"] .contact-hero-title > span{
    display:inline;
    white-space:normal;
  }

  html[dir="rtl"] .contact-hero-copy,
  html[dir="rtl"] .contact-hero-description{
    text-align:right;
  }

  /* Slightly smaller mobile Hero CTAs than the previous approved size */
  .contact-hero-buttons{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    margin-top:14px;
  }

  .contact-hero-buttons .btn{
    min-height:36px;
    padding:7px 7px;
    font-size:8.8px;
    line-height:1.15;
  }

  .contact-hero-whatsapp-btn .ti{
    font-size:14px;
  }

  /* Footer: English two centered lines, Arabic one centered line */
  footer .foot-bottom,
  html[dir="rtl"] footer .foot-bottom{
    width:100%;
    flex-direction:column;
    align-items:center!important;
    justify-content:center;
    gap:10px;
    text-align:center!important;
  }

  footer .foot-bottom strong,
  footer .foot-bottom .copyright{
    margin-inline:auto;
    text-align:center!important;
  }

  html[dir="ltr"] footer .foot-bottom strong{
    display:block;
    width:220px;
    max-width:calc(100% - 32px);
    font-size:10px;
    line-height:1.35;
    letter-spacing:.015em;
    white-space:normal;
    text-wrap:balance;
  }

  html[dir="rtl"] footer .foot-bottom strong{
    display:block;
    width:auto;
    max-width:100%;
    font-size:10px;
    line-height:1.35;
    letter-spacing:0;
    text-transform:none;
    white-space:nowrap;
  }

  footer .copyright{
    width:100%;
  }
}

@media (max-width:420px){
  html[dir="ltr"] .contact-hero-title{
    max-width:285px;
    font-size:clamp(1.5rem,7.1vw,1.76rem);
    line-height:1.16;
  }
 .contact-hero-buttons .btn{
  padding-inline:6px;
  font-size:8.4px;
}
}
/* =========================================================
   CONTACT - MOBILE HERO FINAL TWEAK
   3-line Arabic title + shorter CTA height only
========================================================= */
@media (max-width:575.98px){

  html[dir="rtl"] .contact-hero-title{
    max-width:285px;
    font-size:clamp(1.66rem,7vw,1.94rem);
    line-height:1.20;
    text-wrap:balance;
  }

  html[dir="rtl"] .contact-hero-title > span{
    display:block;
    white-space:normal;
  }

  .contact-hero-buttons{
    width:70%;
    margin-inline-start:0;
margin-inline-end:auto;
  }

  .contact-hero-buttons .btn{
    min-height:36px;
    padding-top:7px;
    padding-bottom:7px;
  }

}

@media (max-width:420px){

  html[dir="rtl"] .contact-hero-title{
    max-width:270px;
    font-size:clamp(1.56rem,7vw,1.82rem);
    line-height:1.21;
  }
}