/* ══════════════════════════════════════════════════════════════
   contact.css — Contact Section (High-Contrast Refined Design)
   Full contrast optimization for Light (morning) & Dark modes.
   Elements rest freely on the background (no boxed card/frame).
   No white gradient overlay — clean alpha mask map fade.
   Typography matched to site design tokens.
   Consistent LTR alignment in all languages.
   ══════════════════════════════════════════════════════════════ */

/* ── Keyframe Animations ── */
@keyframes pinPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }

  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes stepFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes inputShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

/* ══════════════════════════════════════════════════════════════
   1. SECTION CONTAINER
   ══════════════════════════════════════════════════════════════ */
.contact-section {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 44px;
  background: transparent;
  z-index: 20;
  box-sizing: border-box;
  overflow: hidden;
  scroll-margin-top: 70px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

/* Top separator line matching other sections */
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(7, 25, 27, 0.12) 20%,
      rgba(7, 25, 27, 0.22) 50%,
      rgba(7, 25, 27, 0.12) 80%,
      transparent 100%);
  pointer-events: none;
  z-index: 5;
}

/* Bottom separator line */
.contact-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(to right,
      transparent 0%,
      rgba(7, 25, 27, 0.12) 20%,
      rgba(7, 25, 27, 0.22) 50%,
      rgba(7, 25, 27, 0.12) 80%,
      transparent 100%);
  pointer-events: none;
  z-index: 5;
}

body.dark .contact-section::before {
  background: linear-gradient(to right,
      transparent 0%,
      rgba(0, 255, 165, 0.15) 20%,
      rgba(0, 255, 165, 0.40) 50%,
      rgba(0, 255, 165, 0.15) 80%,
      transparent 100%);
  box-shadow: 0 0 12px rgba(0, 255, 165, 0.2);
}

body.dark .contact-section::after {
  background: linear-gradient(to right,
      transparent 0%,
      rgba(0, 255, 165, 0.15) 20%,
      rgba(0, 255, 165, 0.40) 50%,
      rgba(0, 255, 165, 0.15) 80%,
      transparent 100%);
  box-shadow: 0 0 12px rgba(0, 255, 165, 0.2);
}


/* ══════════════════════════════════════════════════════════════
   2. INTEGRATED CARTOGRAPHIC MAP
   ══════════════════════════════════════════════════════════════ */
.contact-map-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 56%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  /* Pure alpha mask fade — reveals natural page background */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 1) 60%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 1) 60%);
}

.contact-map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none;
}

/* MapLibre GL Vector Map Container & Canvas */
.contact-map-iframe .maplibregl-map {
  background: transparent !important;
  cursor: default !important;
  user-select: none;
  width: 100% !important;
  height: 100% !important;
}

.contact-map-iframe .maplibregl-canvas-container {
  width: 100% !important;
  height: 100% !important;
}

.contact-map-iframe .maplibregl-canvas {
  width: 100% !important;
  height: 100% !important;
  outline: none;
  pointer-events: none;
  /* Light mode: crisp, clean vector map at elegant subtle opacity */
  opacity: 0.65;
  transition: opacity 0.35s ease, filter 0.35s ease;
}

body.dark .contact-map-iframe .maplibregl-canvas {
  /* Dark mode: vivid, illuminated emerald vector map with clear roads & details */
  filter: sepia(1) hue-rotate(115deg) saturate(3.2) brightness(1.22) contrast(1.25);
  opacity: 0.90;
}

/* Atmospheric subtle tint (dark mode only) */
.contact-map-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}

body.dark .contact-map-tint {
  display: block;
  background: radial-gradient(ellipse at 75% 50%, rgba(0, 255, 165, 0.08) 0%, transparent 70%);
}

/* ── Leaflet Custom Marker ── */
.lf-marker-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lf-pin {
  position: relative;
  z-index: 2;
  fill: var(--accent);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.lf-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0.8px solid var(--accent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  animation: lfRingPulse 3.2s ease-out infinite;
}

.lf-ring-2 {
  animation-delay: 0.55s;
}

@keyframes lfRingPulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }

  68% {
    transform: translate(-50%, -50%) scale(4.5);
    opacity: 0;
  }

  100% {
    transform: translate(-50%, -50%) scale(4.5);
    opacity: 0;
  }
}


/* ══════════════════════════════════════════════════════════════
   3. INNER CONTENT (Free on page background)
   ══════════════════════════════════════════════════════════════ */
.contact-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* ── Top Row: Badge + Direct Phone ── */
.contact-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 14px;
}

/* ── High-Contrast Glass Badge Pill (Matches Testimonials style) ── */
.contact-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all .2s ease;
  margin-bottom: 20px;
  width: fit-content;
  cursor: default;
}

.contact-badge-pill:hover {
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

body.dark .contact-badge-pill {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: #e2ede8;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.dark .contact-badge-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(0, 255, 165, 0.4);
  box-shadow: 0 4px 16px rgba(0, 255, 165, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

body.lang-ar .contact-badge-pill,
html[lang="ar"] .contact-badge-pill {
  font-family: var(--pf-text-face), 'Thmanyah Serif Text', 'Thmanyah Sans', sans-serif !important;
  font-weight: 600;
  letter-spacing: 0;
}

/* ── Section Title (Same typography as other site headings) ── */
.contact-big-title {
  font-family: var(--font-foreign);
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #07191b;
  margin: 6px 0 28px;
}

body.dark .contact-big-title {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

body.lang-ar .contact-big-title {
  font-family: 'Thmanyah Serif Text', 'Cairo', serif;
  letter-spacing: normal;
  font-weight: 700;
}

/* ── 3 Horizontal Info Columns ── */
.contact-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  max-width: 760px;
  margin-bottom: 24px;
}

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

.contact-col-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #475569;
}

body.dark .contact-col-head {
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.14em;
}

body.lang-ar .contact-col-head {
  font-family: 'Thmanyah Serif Text', 'Cairo', serif;
  letter-spacing: 0.02em;
  font-size: 12px;
}

.contact-col-icon {
  color: var(--accent);
  flex-shrink: 0;
}

body.dark .contact-col-icon {
  color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

.contact-col-val {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.55;
  text-decoration: none;
  display: block;
}

body.dark .contact-col-val {
  color: #f1f5f9;
  font-weight: 500;
}

body.lang-ar .contact-col-val {
  font-family: 'Thmanyah Serif Text', 'Cairo', serif;
  font-size: 14.5px;
}

.contact-info-link {
  transition: color 0.22s ease;
}

.contact-info-link:hover {
  color: var(--accent);
}

body.dark .contact-info-link:hover {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* ── Stepped Form Area ── */
.contact-form-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 620px;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 24px;
}

/* ── Step Container ── */
.contact-step:not(.contact-step--hidden) {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  animation: stepFadeIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.contact-step--hidden,
.contact-step.contact-step--hidden {
  display: none !important;
}

/* ── Ghost Input & Floating Label ── */
.contact-ghost-wrap {
  position: relative;
  flex: 1;
}

.contact-ghost-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #07191b;
  padding: 10px 0 10px;
  caret-color: var(--accent);
  box-shadow: none;
  border-radius: 0;
  display: block;
  box-sizing: border-box;
  line-height: 1.25;
}

body.dark .contact-ghost-input {
  color: #ffffff;
  font-weight: 400;
}

body.lang-ar .contact-ghost-input {
  font-family: 'Thmanyah Serif Text', 'Cairo', serif;
}

.contact-ghost-textarea {
  min-height: 48px;
  resize: none;
  overflow: hidden;
}

/* Floating Label (Sharp contrast in light and dark mode) */
.contact-ghost-label {
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: #475569;
  pointer-events: none;
  transition: all 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left top;
  white-space: nowrap;
}

body.dark .contact-ghost-label {
  color: #94a3b8;
  font-weight: 400;
}

body.lang-ar .contact-ghost-label {
  font-family: 'Thmanyah Serif Text', 'Cairo', serif;
}

.contact-ghost-input:focus~.contact-ghost-label,
.contact-ghost-input:not(:placeholder-shown)~.contact-ghost-label {
  top: -12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

body.dark .contact-ghost-input:focus~.contact-ghost-label,
body.dark .contact-ghost-input:not(:placeholder-shown)~.contact-ghost-label {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

body.lang-ar .contact-ghost-input:focus~.contact-ghost-label,
body.lang-ar .contact-ghost-input:not(:placeholder-shown)~.contact-ghost-label {
  letter-spacing: 0.02em;
  font-size: 12px;
}

/* Thin Animated Underline (Crisp contrast in both modes) */
.contact-ghost-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: rgba(7, 25, 27, 0.18);
  position: relative;
}

body.dark .contact-ghost-line {
  height: 1.5px;
  background: rgba(255, 255, 255, 0.24);
}

.contact-ghost-line::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-ghost-input:focus~.contact-ghost-line::after {
  width: 100%;
}

/* Error Shake */
.contact-field--error {
  animation: inputShake 0.35s ease;
}

.contact-field--error~.contact-ghost-line::after {
  width: 100% !important;
  background: #ff4d4f !important;
  box-shadow: 0 0 10px rgba(255, 77, 79, 0.5) !important;
}

/* ── Circular Next / Send Button (High Contrast in Both Modes) ── */
.contact-circle-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  outline: none;
  margin-bottom: 2px;
  transition: opacity 0.2s ease;
}

.contact-circle-btn[disabled] {
  opacity: 0.85;
  cursor: not-allowed;
  pointer-events: none;
}

/* When sending: normal appearance without rotation or scale */
.contact-circle-btn.is-loading .contact-circle-icon {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

body.dark .contact-circle-btn.is-loading .contact-circle-icon {
  color: #030504;
  box-shadow: 0 0 20px var(--accent-glow);
}

.contact-circle-text {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #07191b;
  transition: color 0.22s ease;
}

body.dark .contact-circle-text {
  color: #ffffff;
  font-weight: 600;
}

body.lang-ar .contact-circle-text {
  font-family: 'Thmanyah Serif Text', 'Cairo', serif;
  font-size: 14px;
}

.contact-circle-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid rgba(7, 25, 27, 0.18);
  background: rgba(7, 25, 27, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: #07191b;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 14px rgba(7, 25, 27, 0.05);
}

body.dark .contact-circle-icon {
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.contact-circle-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  transition: transform 0.24s ease;
}

.contact-circle-btn:hover .contact-circle-icon {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(20, 71, 58, 0.25);
  transform: scale(1.05);
}

body.dark .contact-circle-btn:hover .contact-circle-icon {
  color: #030504;
  box-shadow: 0 0 24px var(--accent-glow);
}

.contact-circle-btn:hover .contact-circle-icon svg {
  transform: none;
}

.contact-circle-btn:hover .contact-circle-text {
  color: var(--accent);
}

body.dark .contact-circle-btn:hover .contact-circle-text {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

/* ── Success State ── */
.contact-success {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 16px !important;
}

.contact-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.contact-success-icon svg {
  width: 22px;
  height: 22px;
}

.contact-success-text {
  font-family: var(--font-sans);
  font-size: 15px;
  color: #1e293b;
  margin: 0;
  line-height: 1.6;
}

body.dark .contact-success-text {
  color: #f1f5f9;
  font-weight: 500;
}

body.lang-ar .contact-success-text {
  font-family: 'Thmanyah Serif Text', 'Cairo', serif;
  font-size: 16px;
}

/* ── Reset / Send Another Message Button ── */
.contact-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 25, 27, 0.05);
  border: 1.2px solid rgba(7, 25, 27, 0.16);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: #07191b;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.4, 1);
  outline: none;
}

body.dark .contact-reset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1.2px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.lang-ar .contact-reset-btn {
  font-family: 'Thmanyah Serif Text', 'Cairo', serif;
  font-size: 13.5px;
}

.contact-reset-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(20, 71, 58, 0.2);
}

body.dark .contact-reset-btn:hover {
  color: #030504;
  box-shadow: 0 0 16px var(--accent-glow);
}

.contact-reset-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  transition: transform 0.3s ease;
}

.contact-reset-btn:hover .contact-reset-icon svg {
  transform: rotate(-45deg);
}

/* ── Step Progress Indicators (Only Active Step Shows Name) ── */
.contact-step-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.contact-step-pill {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #475569;
  padding: 6px 4px;
  transition: color 0.22s ease, transform 0.2s ease;
  outline: none;
}

/* Only show step text label for the active step */
.contact-step-pill span:not(.contact-step-pill-dot) {
  display: none;
}

.contact-step-pill.active span:not(.contact-step-pill-dot) {
  display: inline-block;
  animation: pillFadeIn 0.25s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}

@keyframes pillFadeIn {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

body.dark .contact-step-pill {
  color: #94a3b8;
  font-weight: 600;
}

body.lang-ar .contact-step-pill {
  font-family: 'Thmanyah Serif Text', 'Cairo', serif;
  letter-spacing: 0.02em;
  font-size: 12px;
}

.contact-step-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(7, 25, 27, 0.22);
  transition: all 0.25s ease;
}

body.dark .contact-step-pill-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.32);
}

.contact-step-pill.active {
  color: var(--accent);
  font-weight: 700;
}

body.dark .contact-step-pill.active {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 10px var(--accent-glow);
}

.contact-step-pill.active .contact-step-pill-dot {
  background: var(--accent);
  width: 14px;
  border-radius: 3px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.contact-step-pill:not(.active):hover .contact-step-pill-dot {
  background: var(--accent);
  transform: scale(1.3);
}

.contact-step-pill:hover {
  color: #07191b;
}

body.dark .contact-step-pill:hover {
  color: #ffffff;
}

body.dark .contact-step-pill:hover .contact-step-pill-dot {
  background: rgba(255, 255, 255, 0.75);
}

/* ── Bottom Section Index (05 / 05) ── */
.contact-card-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 16px;
  width: 100%;
}

.contact-bottom-index {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-sans);
}

.contact-idx-cur {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

body.dark .contact-idx-cur {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.contact-idx-sep,
.contact-idx-total {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

body.dark .contact-idx-sep,
body.dark .contact-idx-total {
  color: #94a3b8;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   4. RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════ */
/* ── Tablet Mode (641px to 1080px): Identical to Desktop Layout ── */
@media (max-width: 1080px) and (min-width: 641px) {
  .contact-section {
    position: relative;
    padding: 48px 24px 44px;
    display: flex;
    flex-direction: column;
    min-height: 560px;
  }

  .contact-map-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    opacity: 0.65;
    display: block;
    pointer-events: none;
  }

  .contact-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-align: start;
  }

  .contact-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 760px;
    margin-bottom: 24px;
  }

  .contact-col {
    align-items: flex-start;
    text-align: start;
  }

  .contact-col-head {
    justify-content: flex-start;
  }

  .contact-form-area {
    max-width: 580px;
    align-items: flex-start;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding-top: 24px;
  }

  .contact-step:not(.contact-step--hidden) {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
  }

  .contact-step--hidden,
  .contact-step.contact-step--hidden {
    display: none !important;
  }

  .contact-ghost-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  .contact-circle-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: auto;
    height: auto;
    flex-shrink: 0;
    align-self: flex-end;
  }

  .contact-circle-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
  }
}

/* ── Mobile Phone Mode (<= 640px): Map Cover Background, Centered Title, Right-Aligned Data, Open Area for Pin, Stepped Form Below ── */
@media (max-width: 640px) {
  .contact-section {
    position: relative !important;
    width: 100% !important;
    padding: 38px 18px 36px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 590px !important;
  }

  /* 1. Map Cover Layer in the Background */
  .contact-map-layer {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    display: block !important;
    pointer-events: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    opacity: 0.58 !important;
  }

  body.dark .contact-map-layer {
    opacity: 0.72 !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* 2. Inner Content on Top of Map */
  .contact-inner {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    flex: 1 1 auto !important;
    margin: 0 auto !important;
  }

  /* 3. Badge & Title Centered */
  .contact-top-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 8px !important;
  }

  .contact-badge-pill {
    margin: 0 auto 14px auto !important;
    text-align: center !important;
  }

  .contact-big-title {
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto 24px auto !important;
    font-size: clamp(2.1rem, 7.5vw, 2.7rem) !important;
  }

  /* 4. Data on the Left, Leaving Right Empty for Location Coordinates/Pin */
  .contact-cols {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 52% !important;
    max-width: 200px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    gap: 16px !important;
    margin-bottom: 30px !important;
    min-height: 175px !important;
    box-sizing: border-box !important;
    padding: 10px 0 10px 4px !important;
  }

  body.lang-ar .contact-cols,
  html[dir="rtl"] .contact-cols {
    align-items: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    padding: 10px 0 10px 4px !important;
  }

  .contact-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    gap: 4px !important;
  }

  body.lang-ar .contact-col,
  html[dir="rtl"] .contact-col {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .contact-col-head {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 6px !important;
    text-align: left !important;
    width: 100% !important;
    font-size: 11px !important;
    color: #334155 !important;
  }

  body.lang-ar .contact-col-head,
  html[dir="rtl"] .contact-col-head {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  body.dark .contact-col-head {
    color: #cbd5e1 !important;
  }

  .contact-col-val {
    text-align: left !important;
    width: 100% !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    color: #07191b !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.8) !important;
  }

  body.lang-ar .contact-col-val,
  html[dir="rtl"] .contact-col-val {
    text-align: left !important;
  }

  body.lang-ar .contact-col-val[href^="tel"],
  html[dir="rtl"] .contact-col-val[href^="tel"] {
    direction: ltr !important;
    text-align: left !important;
    display: inline-block !important;
  }

  body.dark .contact-col-val {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
  }

  /* 5. Stepped Form Continues Below */
  .contact-form-area {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding-top: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Next Button & Input strictly on the same row */
  .contact-step:not(.contact-step--hidden) {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .contact-step--hidden,
  .contact-step.contact-step--hidden {
    display: none !important;
  }

  .contact-ghost-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    text-align: start !important;
  }

  .contact-ghost-input {
    font-size: 16px !important;
    min-height: 44px !important;
    text-align: start !important;
    color: #07191b !important;
    font-weight: 500 !important;
  }

  body.dark .contact-ghost-input {
    color: #ffffff !important;
  }

  .contact-ghost-label {
    text-align: start !important;
    color: #475569 !important;
  }

  body.dark .contact-ghost-label {
    color: #cbd5e1 !important;
  }

  /* Perfect circular Next button */
  .contact-circle-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex-shrink: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 4px 0 !important;
    align-self: flex-end !important;
    cursor: pointer !important;
  }

  .contact-circle-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .contact-circle-text {
    font-size: 13px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .contact-step-progress {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 18px !important;
    gap: 10px !important;
  }
}

/* Next button arrow always points to the right in all languages */
.contact-circle-btn .contact-circle-icon svg,
body.lang-ar .contact-circle-btn .contact-circle-icon svg,
html[dir="rtl"] .contact-circle-btn .contact-circle-icon svg {
  transform: none !important;
}