.contact-page {
  background: #f7f4ee;
}

.contact-hero {
  position: relative;
  display: flex;
  min-height: 510px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #081d32 url("/assets/swipe-contact-hero-v1.webp") center / cover no-repeat;
  border-bottom: 1px solid #2d4c64;
  isolation: isolate;
}

.contact-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(5, 20, 34, 0.98) 0%, rgba(5, 20, 34, 0.9) 35%, rgba(5, 20, 34, 0.3) 66%, rgba(5, 20, 34, 0.04) 100%);
}

.contact-hero-inner,
.demo-booking,
.contact-support-strip {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.contact-hero-inner {
  padding: 76px 0;
}

.contact-hero-copy {
  width: min(660px, 57%);
}

.contact-kicker {
  margin: 0 0 18px;
  color: #10d187;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(54px, 5.8vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.contact-hero h1 span {
  display: block;
  white-space: nowrap;
}

.contact-lead {
  max-width: 610px;
  margin: 26px 0 0;
  color: #d7e3eb;
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.5;
}

.contact-page .button-primary {
  border-color: #10d187;
  color: #062317;
  background: #10d187;
}

.contact-page .button-primary:hover {
  border-color: #087b50;
  color: #fff;
  background: #087b50;
}

.demo-booking {
  padding: 80px 0 96px;
}

.contact-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.contact-heading h2,
.contact-support-strip h2 {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.contact-heading h2 {
  color: #0b2135;
}

.contact-heading p {
  margin: 14px 0 0;
  color: #5a6b78;
  font-size: 18px;
}

.contact-directory {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 96px;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.contact-card {
  position: relative;
  min-width: 0;
  padding: 38px;
  overflow: hidden;
  border: 1px solid #c8d5dc;
  border-top: 4px solid #10d187;
  border-radius: 16px;
  color: #0b2135;
  background: #fff;
  box-shadow: 0 16px 38px rgba(8, 29, 50, 0.08);
}

.contact-card-dark {
  border-color: #28475e;
  border-top-color: #10d187;
  color: #fff;
  background: #081d32;
}

.contact-card-number {
  position: absolute;
  top: 28px;
  right: 32px;
  color: #9fb1bc;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.contact-card h3 {
  margin: 0;
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.contact-card > p:not(.contact-kicker) {
  max-width: 520px;
  margin: 20px 0 26px;
  color: #586c79;
  font-size: 17px;
  line-height: 1.65;
}

.contact-card-dark > p:not(.contact-kicker) {
  color: #bfd0db;
}

.contact-email {
  display: inline-block;
  color: #087b50;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 850;
  text-decoration-color: #10d187;
  text-underline-offset: 5px;
}

.contact-card-dark .contact-email {
  color: #fff;
}

.contact-card-actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-card-dark .button-outline {
  border-color: #6d8799;
  color: #fff;
}

.contact-card-dark .button-outline:hover {
  border-color: #10d187;
  color: #062317;
  background: #10d187;
}

.demo-form {
  border: 1px solid #cbd7dc;
  border-top: 4px solid #10d187;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(8, 29, 50, 0.07);
}

.demo-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-step {
  min-width: 0;
  margin: 0;
  padding: 32px;
  border: 0;
}

.demo-step + .demo-step {
  border-left: 1px solid #d7e0e4;
}

.demo-step legend {
  display: flex;
  margin: 0 0 26px;
  padding: 0;
  align-items: center;
  color: #0b2135;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.demo-step legend span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  place-items: center;
  border-radius: 50%;
  color: #062317;
  background: #10d187;
  font-size: 17px;
}

.demo-step label {
  display: block;
  margin-bottom: 18px;
  color: #20384b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.demo-step input,
.demo-step select,
.demo-step textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid #aebdc6;
  border-radius: 8px;
  color: #0b2135;
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.demo-step select {
  min-height: 48px;
}

.demo-step textarea {
  min-height: 104px;
  resize: vertical;
}

.demo-step input:focus,
.demo-step select:focus,
.demo-step textarea:focus {
  border-color: #087b50;
  outline: 3px solid rgba(16, 209, 135, 0.2);
}

.demo-step input::placeholder,
.demo-step textarea::placeholder {
  color: #768692;
}

.address-help {
  display: block;
  margin-top: 7px;
  color: #667986;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.address-help.is-ready {
  color: #087b50;
}

.pac-container {
  z-index: 10000;
  border: 1px solid #aebdc6;
  border-radius: 8px;
  font-family: inherit;
  box-shadow: 0 12px 28px rgba(8, 29, 50, 0.16);
}

.pac-item {
  padding: 9px 12px;
  color: #20384b;
  font-size: 14px;
  line-height: 1.5;
}

.pac-item:hover,
.pac-item-selected {
  background: #eef7f3;
}

.pac-item-query {
  color: #0b2135;
  font-size: 14px;
}

.demo-form-action {
  display: flex;
  padding: 26px 32px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid #d7e0e4;
  border-radius: 0 0 14px 14px;
  background: #eef7f3;
}

.demo-form-action strong {
  color: #0b2135;
  font-size: 17px;
}

.demo-form-action p {
  margin: 5px 0 0;
  color: #566976;
  line-height: 1.5;
}

.demo-form-action a {
  color: #087b50;
  font-weight: 800;
}

.demo-form-action .button {
  flex: 0 0 auto;
}

.contact-support-strip {
  display: flex;
  width: 100%;
  max-width: none;
  padding: 64px max(24px, calc((100% - 1180px) / 2));
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: #fff;
  background: #081d32;
}

.contact-support-strip h2 {
  color: #fff;
}

.contact-support-action {
  display: flex;
  align-items: center;
  gap: 22px;
}

.contact-support-action > a:first-child {
  color: #fff;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  text-decoration-color: #10d187;
  text-underline-offset: 5px;
}

.contact-support-action > a:first-child:hover {
  color: #10d187;
}

.contact-support-strip .button-outline {
  border-color: #6d8799;
  color: #fff;
}

.contact-support-strip .button-outline:hover {
  border-color: #10d187;
  color: #062317;
  background: #10d187;
}

@media (max-width: 1020px) {
  .contact-hero-copy {
    width: min(620px, 76%);
  }

  .demo-step-grid {
    grid-template-columns: 1fr;
  }

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

  .demo-step + .demo-step {
    border-top: 1px solid #d7e0e4;
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .contact-hero {
    min-height: 440px;
    background-position: 68% center;
  }

  .contact-hero::before {
    background: rgba(5, 20, 34, 0.74);
  }

  .contact-hero-inner,
  .demo-booking,
  .contact-directory {
    width: calc(100% - 32px);
  }

  .contact-hero-inner {
    padding: 62px 0;
  }

  .contact-hero-copy {
    width: 100%;
  }

  .contact-hero h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .demo-booking {
    padding: 62px 0 72px;
  }

  .contact-directory {
    padding: 62px 0 72px;
  }

  .contact-card {
    padding: 30px 24px;
  }

  .contact-card-number {
    top: 24px;
    right: 24px;
  }

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

  .contact-card-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .demo-step {
    padding: 26px 22px;
  }

  .demo-form-action {
    padding: 24px 22px;
    align-items: stretch;
    flex-direction: column;
  }

  .demo-form-action .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .contact-support-strip {
    padding: 54px 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-support-action {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-support-action .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
