
/* =========================================================
   ATROBOT CONTACT PAGE REDESIGN
   White + lavender + purple
   ========================================================= */

.atrobot-contact-page {
  --contact-purple: #754d7d;
  --contact-lavender: #9a6aa3;
  --contact-pale: #f5eff7;
  --contact-soft: #fbf8fc;
  --contact-ink: #28232c;
  --contact-muted: #716b75;
  --contact-border: #e7dce9;
  color: var(--contact-ink);
}

.atrobot-contact-page * {
  box-sizing: border-box;
}

.atrobot-contact-page a {
  overflow-wrap: anywhere;
}

.atrobot-contact-page .contact-map-hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  isolation: isolate;
  background: #eee8f0;
}

.atrobot-contact-page .contact-live-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.atrobot-contact-page .contact-map-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(249, 245, 250, .94) 0%,
    rgba(249, 245, 250, .84) 34%,
    rgba(249, 245, 250, .28) 62%,
    rgba(249, 245, 250, .05) 100%
  );
}

.atrobot-contact-page .contact-location-card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 40px));
  margin: 52px 0 52px max(24px, calc((100% - 1200px) / 2));
  padding: clamp(25px, 4vw, 44px);
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(117, 77, 125, .15);
  box-shadow: 0 18px 55px rgba(56, 37, 61, .13);
}

.atrobot-contact-page .contact-eyebrow {
  margin: 0 0 12px;
  color: var(--contact-purple);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
}

.atrobot-contact-page .contact-location-card h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.atrobot-contact-page .contact-location-card > p:not(.contact-eyebrow) {
  color: var(--contact-muted);
  line-height: 1.75;
}

.atrobot-contact-page .contact-location-card address {
  margin: 22px 0;
  padding-left: 16px;
  border-left: 3px solid var(--contact-lavender);
  font-size: .94rem;
  font-style: normal;
  line-height: 1.8;
}

.atrobot-contact-page .contact-location-actions,
.atrobot-contact-page .contact-bottom-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.atrobot-contact-page .contact-primary-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid var(--contact-purple);
  border-radius: 0;
  background: var(--contact-purple);
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.atrobot-contact-page .contact-primary-btn:hover {
  background: var(--contact-lavender);
  border-color: var(--contact-lavender);
  color: #fff;
}

.atrobot-contact-page .contact-primary-btn:focus-visible,
.atrobot-contact-page .contact-map-link:focus-visible {
  outline: 3px solid #c9a8d0;
  outline-offset: 3px;
}

.atrobot-contact-page .contact-map-link {
  color: var(--contact-purple);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #c9a8d0;
  text-underline-offset: 5px;
}

.atrobot-contact-page .contact-quick-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--contact-border);
  font-size: .92rem;
}

.atrobot-contact-page .contact-quick-details a {
  color: var(--contact-purple);
  text-decoration: none;
}

.atrobot-contact-page .contact-map-caption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, .95);
  color: var(--contact-ink);
  font-size: .82rem;
  box-shadow: 0 4px 18px rgba(56, 37, 61, .10);
}

.atrobot-contact-page .contact-map-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--contact-lavender);
}

.atrobot-contact-page .contact-intro-section {
  padding: 72px 0 36px;
  background: #fff;
}

.atrobot-contact-page .contact-intro {
  max-width: 780px;
  text-align: center;
}

.atrobot-contact-page .contact-intro h2,
.atrobot-contact-page .contact-bottom-inner h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.atrobot-contact-page .contact-intro > p:last-child {
  max-width: 680px;
  margin: 0 auto;
  color: var(--contact-muted);
  line-height: 1.8;
}

.atrobot-contact-page .contact-form-section {
  padding: 48px 0 80px;
  background: #fff;
  scroll-margin-top: 30px;
}

.atrobot-contact-page .contact-form-layout {
  display: grid;
  grid-template-columns: minmax(240px, .78fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.atrobot-contact-page .contact-form-aside {
  padding-top: 22px;
}

.atrobot-contact-page .contact-form-aside h2 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.13;
  letter-spacing: -.03em;
}

.atrobot-contact-page .contact-form-aside > p:not(.contact-eyebrow) {
  color: var(--contact-muted);
  line-height: 1.8;
}

.atrobot-contact-page .contact-benefits {
  display: grid;
  gap: 24px;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.atrobot-contact-page .contact-benefits li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}

.atrobot-contact-page .contact-benefits li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--contact-pale);
  color: var(--contact-purple);
  font-size: .8rem;
  font-weight: 700;
}

.atrobot-contact-page .contact-benefits strong {
  display: block;
  margin-bottom: 5px;
}

.atrobot-contact-page .contact-benefits p {
  margin: 0;
  color: var(--contact-muted);
  font-size: .91rem;
  line-height: 1.65;
}

.atrobot-contact-page .contact-aside-note {
  padding: 17px;
  background: var(--contact-soft);
  border-left: 3px solid var(--contact-lavender);
  font-size: .92rem;
  line-height: 1.7;
}

.atrobot-contact-page .contact-aside-note a {
  color: var(--contact-purple);
  font-weight: 650;
}

.atrobot-contact-page .contact-form-card {
  min-width: 0;
  padding: clamp(22px, 3.5vw, 42px);
  background: #fff;
  border: 1px solid var(--contact-border);
  box-shadow: 0 12px 40px rgba(56, 37, 61, .06);
}

.atrobot-contact-page .contact-form-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--contact-border);
}

.atrobot-contact-page .contact-form-heading h3 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.25;
}

.atrobot-contact-page .contact-form-heading p:last-child {
  margin: 0;
  color: var(--contact-muted);
  font-size: .88rem;
}

.atrobot-contact-page .contact-step {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  background: var(--contact-pale);
  color: var(--contact-purple);
  font-weight: 750;
}

.atrobot-contact-page .contact-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px 18px;
}

.atrobot-contact-page .contact-field {
  min-width: 0;
}

.atrobot-contact-page .contact-field-full {
  grid-column: 1 / -1;
}

.atrobot-contact-page .contact-modern-form .contact-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--contact-ink);
  font-size: .9rem;
  font-weight: 650;
}

.atrobot-contact-page .contact-modern-form input:not([type="checkbox"]),
.atrobot-contact-page .contact-modern-form select,
.atrobot-contact-page .contact-modern-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #ded5e1;
  border-radius: 0;
  background: #fff;
  color: var(--contact-ink);
  font: inherit;
  font-size: .94rem;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.atrobot-contact-page .contact-modern-form textarea {
  min-height: 130px;
  resize: vertical;
}

.atrobot-contact-page .contact-modern-form input::placeholder,
.atrobot-contact-page .contact-modern-form textarea::placeholder {
  color: #99919c;
  opacity: 1;
}

.atrobot-contact-page .contact-modern-form input:focus,
.atrobot-contact-page .contact-modern-form select:focus,
.atrobot-contact-page .contact-modern-form textarea:focus {
  outline: none;
  border-color: var(--contact-lavender);
  box-shadow: 0 0 0 3px rgba(154, 106, 163, .13);
}

.atrobot-contact-page .contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 24px 0;
  color: var(--contact-muted);
  font-size: .9rem;
  line-height: 1.65;
  cursor: pointer;
}

.atrobot-contact-page .contact-consent input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 3px;
  accent-color: var(--contact-purple);
}

.atrobot-contact-page .contact-submit {
  width: 100%;
  min-height: 54px;
}

.atrobot-contact-page .contact-privacy-note {
  margin: 15px 0 0;
  color: var(--contact-muted);
  font-size: .82rem;
  line-height: 1.7;
}

.atrobot-contact-page .contact-privacy-note a {
  color: var(--contact-purple);
}

.atrobot-contact-page .contact-modern-form .form-status:empty {
  display: none;
}

.atrobot-contact-page .contact-demo-section {
  background: var(--contact-soft);
}

.atrobot-contact-page .contact-demo-section .contact-form-card {
  background: #fff;
}

.atrobot-contact-page .contact-bottom-strip {
  padding: 42px 0;
  background: var(--contact-pale);
  border-top: 1px solid var(--contact-border);
}

.atrobot-contact-page .contact-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.atrobot-contact-page .contact-bottom-inner h2 {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .atrobot-contact-page .contact-map-hero {
    min-height: 620px;
  }

  .atrobot-contact-page .contact-location-card {
    margin: 32px auto;
  }

  .atrobot-contact-page .contact-form-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .atrobot-contact-page .contact-form-aside {
    padding-top: 0;
  }

  .atrobot-contact-page .contact-benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .atrobot-contact-page .contact-benefits li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .atrobot-contact-page .contact-map-hero {
    min-height: 690px;
    display: flex;
    align-items: flex-start;
  }

  .atrobot-contact-page .contact-map-wash {
    background: linear-gradient(
      180deg,
      rgba(249, 245, 250, .88) 0%,
      rgba(249, 245, 250, .72) 55%,
      rgba(249, 245, 250, .22) 100%
    );
  }

  .atrobot-contact-page .contact-location-card {
    width: calc(100% - 28px);
    margin: 22px 14px;
    padding: 24px 20px;
  }

  .atrobot-contact-page .contact-location-card h1 {
    font-size: 2.1rem;
  }

  .atrobot-contact-page .contact-map-caption {
    right: 12px;
    bottom: 12px;
    font-size: .75rem;
  }

  .atrobot-contact-page .contact-intro-section {
    padding: 48px 0 24px;
  }

  .atrobot-contact-page .contact-form-section {
    padding: 28px 0 48px;
  }

  .atrobot-contact-page .contact-benefits {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .atrobot-contact-page .contact-benefits li {
    grid-template-columns: 36px 1fr;
  }

  .atrobot-contact-page .contact-form-card {
    padding: 22px 17px;
  }

  .atrobot-contact-page .contact-field-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .atrobot-contact-page .contact-field-full {
    grid-column: auto;
  }

  .atrobot-contact-page .contact-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .atrobot-contact-page .contact-location-actions,
  .atrobot-contact-page .contact-bottom-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .atrobot-contact-page .contact-primary-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atrobot-contact-page *,
  .atrobot-contact-page *::before,
  .atrobot-contact-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}


/* ==========================================
   ATROBOT CONTACT PAGE — VISUAL FIXES
   Keeps the existing header, footer and forms.
   ========================================== */

/* 1. Keep the header separate from the map hero.
   The global redesign stylesheet makes the header
   absolute on some pages; override that here. */
body:has(.atrobot-contact-page) .site-header {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  z-index: 200;
}

/* Keep the contact page's content in its own layer. */
.atrobot-contact-page {
  position: relative;
  isolation: isolate;
}

/* 2. Hero: use the map as a background and give
   the location card its own clear space. */
.contact-map-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38rem;
  padding: clamp(2rem, 4vw, 3.5rem) max(1rem, calc((100vw - 78rem) / 2));
  overflow: hidden;
  background: #f8f6fa;
}

/* Map remains behind the content. */
.contact-map-hero .contact-live-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The wash must never intercept clicks. */
.contact-map-hero .contact-map-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(40, 24, 72, 0.16) 0%,
    rgba(40, 24, 72, 0.06) 60%,
    rgba(40, 24, 72, 0.02) 100%
  );
}

/* Smaller, opaque card that sits entirely inside
   the hero instead of extending into the header. */
.contact-map-hero .contact-location-card {
  position: relative;
  z-index: 2;
  flex: 0 1 40rem;
  width: min(100%, 40rem);
  max-width: 40rem;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
  opacity: 1;
  box-shadow: 0 12px 36px rgba(40, 24, 72, 0.12);
  border: 1px solid rgba(40, 24, 72, 0.12);
}

/* Keep the heading from becoming oversized. */
.contact-map-hero .contact-location-card h1 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.08;
  overflow-wrap: break-word;
}

.contact-map-hero .contact-location-card > p:not(.contact-eyebrow) {
  max-width: 38rem;
  line-height: 1.65;
}

.contact-map-hero .contact-location-card address {
  margin-top: 1.25rem;
  font-style: normal;
  line-height: 1.7;
}

/* Keep both actions visible and separated. */
.contact-location-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
}

.contact-location-actions a {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.contact-location-actions .contact-primary-btn {
  flex: 0 0 auto;
}

.contact-map-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
}

/* Contact details stay inside the opaque card. */
.contact-quick-details {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(154, 106, 163, 0.25);
}

.contact-quick-details a {
  overflow-wrap: anywhere;
}

/* Keep the map caption above the map, but outside
   the location card and away from its buttons. */
.contact-map-hero .contact-map-caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: auto;
  z-index: 3;
  max-width: calc(100% - 2.5rem);
  pointer-events: none;
}

/* 3. Restore the site's dotted lavender background
   to the introduction and both form sections. */
.contact-intro-section,
.contact-form-section,
.contact-demo-section {
  background-color: #fff !important;
  background-image: radial-gradient(
    rgba(40, 24, 72, 0.13) 1.25px,
    transparent 1.25px
  ) !important;
  background-size: 22px 22px !important;
  background-position: 0 0;
}

/* Keep the actual form cards readable against dots. */
.contact-form-card {
  background: #fff;
  position: relative;
  z-index: 1;
}

/* Keep the form grid and its controls above backgrounds. */
.contact-form-layout,
.contact-form-aside {
  position: relative;
  z-index: 1;
  min-width: 0;
}

/* 4. Tablet and mobile adjustments. */
@media (max-width: 767px) {
  .contact-map-hero {
    min-height: auto;
    padding: 1.25rem 1rem 5rem;
    align-items: flex-start;
  }

  .contact-map-hero .contact-live-map {
    min-height: 100%;
  }

  .contact-map-hero .contact-location-card {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    padding: 1.4rem;
  }

  .contact-map-hero .contact-location-card h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .contact-location-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-location-actions .contact-primary-btn,
  .contact-location-actions .contact-map-link {
    max-width: 100%;
  }

  .contact-map-hero .contact-map-caption {
    right: 1rem;
    bottom: 0.75rem;
    left: 1rem;
    max-width: none;
  }

  .contact-quick-details {
    gap: 0.35rem 1rem;
  }
}


/* =========================================
   CONTACT HERO — FINAL POSITIONING FIX
   ========================================= */

/* 1. Restore the transparent overlay header.
   Do not change the global header or navigation. */
body:has(.atrobot-contact-page) .site-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: rgba(40, 24, 72, 0.58) !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Preserve the header's existing home-page layout. */
body:has(.atrobot-contact-page) .site-header .header-bar {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 2. Let the map occupy the hero area behind the card. */
.atrobot-contact-page .contact-map-hero {
  position: relative;
  min-height: 43rem;
  padding: 7.5rem 2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

/* Keep the map itself full-size. */
.atrobot-contact-page .contact-live-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border: 0;
}

/* A light overlay keeps the map visible. */
.atrobot-contact-page .contact-map-wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(40, 24, 72, 0.12),
    rgba(40, 24, 72, 0.02) 72%
  );
}

/* 3. Reduce the card width and height so it doesn't
   cover the office marker in the middle of the map. */
.atrobot-contact-page .contact-location-card {
  position: relative;
  z-index: 2;
  flex: 0 1 34rem;
  width: 34rem;
  max-width: min(34rem, 48vw);
  margin: 0;
  padding: 1.75rem 2rem;
  background: #fff !important;
  opacity: 1;
  box-shadow: 0 10px 30px rgba(40, 24, 72, 0.12);
}

/* Keep the title prominent without making the card too tall. */
.atrobot-contact-page .contact-location-card h1 {
  max-width: 12ch;
  font-size: clamp(2.15rem, 3.2vw, 3rem);
  line-height: 1.08;
}

.atrobot-contact-page .contact-location-card > p:not(.contact-eyebrow) {
  margin-top: 0.8rem;
  line-height: 1.55;
}

.atrobot-contact-page .contact-location-card address {
  margin-top: 1rem;
  line-height: 1.6;
}

.atrobot-contact-page .contact-location-actions {
  margin-top: 1.2rem;
  gap: 0.65rem 1rem;
}

.atrobot-contact-page .contact-quick-details {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
}

/* 4. Move the small location label to the top-right
   of the map, away from the white card and office pin. */
.atrobot-contact-page .contact-map-caption {
  position: absolute;
  top: 7.5rem;
  right: 1.5rem;
  bottom: auto;
  left: auto;
  z-index: 4;
  max-width: min(22rem, 35vw);
  pointer-events: none;
}

/* 5. Responsive layout for tablets and phones. */
@media (max-width: 767px) {
  .atrobot-contact-page .contact-map-hero {
    min-height: 0;
    padding: 6rem 1rem 4.5rem;
    align-items: flex-start;
  }

  .atrobot-contact-page .contact-location-card {
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
    padding: 1.4rem;
  }

  .atrobot-contact-page .contact-location-card h1 {
    font-size: clamp(2rem, 8vw, 2.65rem);
  }

  .atrobot-contact-page .contact-map-caption {
    top: auto;
    right: 1rem;
    bottom: 0.65rem;
    left: 1rem;
    max-width: none;
  }

  .atrobot-contact-page .contact-location-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Remove the map caption / floating white location box */
.atrobot-contact-page .contact-map-caption {
  display: none !important;
}


/* Keep Request a Demo and Google Maps side by side */
.atrobot-contact-page .contact-location-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.atrobot-contact-page .contact-location-actions .contact-primary-btn,
.atrobot-contact-page .contact-location-actions .contact-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
}

/* Style Google Maps as a filled lavender button */
.atrobot-contact-page .contact-location-actions .contact-map-link {
  padding: 0.8rem 1.2rem;
  background: #9a6aa3;
  border: 1px solid #9a6aa3;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 180ms ease;
}

.atrobot-contact-page .contact-location-actions .contact-map-link:hover {
  background: #7f5d84;
  border-color: #7f5d84;
  color: #fff;
}

/* Keep the buttons usable on smaller screens */
@media (max-width: 767px) {
  .atrobot-contact-page .contact-location-actions {
    flex-wrap: wrap;
  }
}

.atrobot-contact-page .contact-live-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 0;
}

.atrobot-contact-page .contact-map-wash {
  pointer-events: none;
}


/* Move the contact information card to the right side */
.atrobot-contact-page .contact-map-hero {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-left: 2rem;
  padding-right: clamp(2rem, 5vw, 5rem);
}

/* Keep the card compact and aligned to the right */
.atrobot-contact-page .contact-location-card {
  margin-left: auto;
  margin-right: 0;
  width: min(100%, 38rem);
  max-width: 38rem;
  flex: 0 1 38rem;
}

/* Keep the map visible behind the card */
.atrobot-contact-page .contact-live-map {
  z-index: 0;
}

.atrobot-contact-page .contact-map-wash {
  z-index: 1;
  pointer-events: none;
}

.atrobot-contact-page .contact-location-card {
  z-index: 2;
}

/* Preserve the layout on mobile */
@media (max-width: 767px) {
  .atrobot-contact-page .contact-map-hero {
    justify-content: center;
    padding: 6rem 1rem 4.5rem;
  }

  .atrobot-contact-page .contact-location-card {
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
    margin: 0;
  }
}
