/* Contact Us — matches optimus-oncology/contact-us.jpg */

.contact-page {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  background: #ffffff;
  color: #333333;
}

.contact-page main {
  overflow-x: clip;
}

/* Shared column — aligns with .site-header (logo) and footer content */
.contact-page .cu-container {
  box-sizing: border-box;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 50px);
}

/* —— Hero (Figma banner 1440×611) —— */
.contact-page .cu-hero {
  --cu-hero-gutter: clamp(16px, 3.75vw, 54px);
  margin: 0;
  padding: 0;
  background: #ffffff;
}

.contact-page .cu-hero__banner {
  position: relative;
  width: 100%;
  height: clamp(420px, 42.36vw, 611px);
  min-height: 420px;
  overflow: hidden;
  background: #ffffff;
}

@media (min-width: 1440px) {
  .contact-page .cu-hero__banner {
    height: 611px;
  }
}

/* Rectangle 61 — white fade into photo */
.contact-page .cu-hero__banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: min(75.69%, 1090px);
  height: 100%;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, #ffffff 37.39%);
  pointer-events: none;
}

.contact-page .cu-hero__media {
  position: absolute;
  top: 0;
  right: -18px;
  z-index: 0;
  width: 58%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
}

.contact-page .cu-hero__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.contact-page .cu-hero__inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  box-sizing: border-box;
  pointer-events: none;
}

.contact-page .cu-hero__frame {
  box-sizing: border-box;
  height: 100%;
  padding: 25px var(--cu-hero-gutter) 32px;
  pointer-events: auto;
}

.contact-page .cu-hero__body {
  position: relative;
  z-index: 1;
  max-width: min(676px, 46vw);
}

.contact-page .cu-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: #071333;
  font-family: var(--font);
  font-size: var(--fs-caption);
  font-weight: 400;
  line-height: 20px;
}

.contact-page .cu-crumbs__sep {
  color: #000000;
  font-size: var(--fs-caption);
  line-height: 1;
}

.contact-page .cu-crumbs a {
  color: #071333;
  text-decoration: none;
}

.contact-page .cu-crumbs a:hover {
  color: #52a330;
}

.contact-page .cu-crumbs [aria-current="page"] {
  color: #071333;
}

.contact-page .cu-hero h1 {
  margin: clamp(80px, 16.9vw, 243px) 0 24px;
  color: #52a330;
  font-family: var(--font);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.4;
}

.contact-page .cu-hero__lede {
  margin: 0;
  max-width: 100%;
  color: #000000;
  font-family: var(--font);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.5;
}

/* —— Enquiry form —— */
.contact-page .cu-enquiry {
  padding: clamp(36px, 4vw, 48px) 0 clamp(44px, 5vw, 56px);
  background: #f3f3f2;
}

.contact-page .cu-enquiry-inner {
  margin: 0 auto;
}

.contact-page .cu-enquiry h2 {
  margin: 0 0 28px;
  color: #071333;
  font-family: var(--font);
  font-size: var(--fs-h2);
  font-weight: 700;
  text-align: left;
  line-height: 1.35;
}

.contact-page .cu-enquiry h2 span {
  display: inline;
  position: static;
}

.contact-page .cu-enquiry h2 span::after {
  content: none;
}

.contact-page .cu-lead-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.contact-page .cu-lead-tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d2e9c9;
  border-radius: 999px;
  background: #ffffff;
  color: #071333;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.contact-page .cu-lead-tab.is-active {
  background: linear-gradient(90deg, #50a330 0%, #69a435 100%);
  border-color: transparent;
  color: #ffffff;
}

.contact-page .cu-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px clamp(20px, 3vw, 40px);
  max-width: 100%;
}

.contact-page .cu-form .req {
  color: #b42318;
}

.contact-page .cu-consent__label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

.contact-page .cu-consent__label input {
  width: 18px !important;
  min-height: 18px !important;
  margin-top: 3px;
  padding: 0 !important;
  flex: 0 0 auto;
}

.contact-page .cu-consent__label a {
  color: #50a330;
  text-decoration: none;
}

.contact-page .cu-form .cu-wide,
.contact-page .cu-form .cu-form-actions {
  grid-column: 1 / -1;
}

.contact-page .cu-form label {
  display: block;
  margin: 0 0 8px;
  color: #071333;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 22px;
}

.contact-page .cu-form input,
.contact-page .cu-form select,
.contact-page .cu-form textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #ffffff;
  color: #333333;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
}

.contact-page .cu-form textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-page .cu-form select {
  appearance: none;
  color: #333333;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2371706e' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.contact-page .cu-form select:invalid {
  color: #8d8d8b;
}

.contact-page .cu-form input::placeholder,
.contact-page .cu-form textarea::placeholder {
  color: #8d8d8b;
}

.contact-page .cu-form-actions {
  margin-top: 4px;
}

.contact-page .cu-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 100px;
  background: #6ab74c;
  color: #ffffff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.contact-page .cu-submit:hover {
  background: #5fa33f;
}

/* —— Map (full-bleed + floating address card) —— */
.contact-page .cu-map {
  position: relative;
  height: clamp(380px, 38vw, 520px);
  overflow: hidden;
  background: #e8efe4;
}

.contact-page .cu-map__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-page .cu-map__embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e8efe4;
}

.contact-page .cu-map__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Floating card — top-left over map (same as design; not left: -325px which clips) */
.contact-page .cu-map-card {
  position: absolute;
  top: clamp(28px, 4vw, 56px);
  left: clamp(24px, 4vw, 64px);
  box-sizing: border-box;
  width: min(300px, calc(100% - 48px));
  max-width: 300px;
  padding: 22px 24px 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  pointer-events: auto;
}

.contact-page .cu-map-card__brand {
  margin: 0 0 4px;
  color: #6ab74c;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.contact-page .cu-map-card h3 {
  margin: 0 0 10px;
  color: #000000;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.contact-page .cu-map-card p:last-child {
  margin: 0;
  color: #333333;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: break-word;
}

@media (max-width: 1024px) {
  .contact-page .cu-hero__banner {
    height: clamp(380px, 48vw, 520px);
  }

  .contact-page .cu-hero__body {
    max-width: min(676px, 52vw);
  }

  .contact-page .cu-hero__media {
    width: 54%;
  }

  .contact-page .cu-hero__photo {
    object-position: 62% 40%;
  }

  .contact-page .cu-hero__banner::after {
    width: 88%;
    max-width: none;
  }

  .contact-page .cu-hero h1 {
    margin-top: clamp(48px, 12vw, 120px);
    line-height: 1.15;
  }
}

@media (max-width: 900px) and (min-width: 768px) {
  .contact-page .cu-hero__media {
    width: 52%;
  }

  .contact-page .cu-hero__photo {
    object-position: 65% 38%;
  }

  .contact-page .cu-hero__banner::after {
    width: 92%;
  }
}

@media (max-width: 900px) {
  .contact-page .cu-form {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-page .cu-map-card {
    top: 24px;
    left: 20px;
    width: min(280px, calc(100% - 40px));
    max-width: 280px;
    padding: 18px 18px 20px;
  }
}

@media (max-width: 767px) {
  .contact-page .cu-hero__banner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    background: #ffffff;
  }

  .contact-page .cu-hero__inner {
    position: relative;
    inset: auto;
    order: 0;
    height: auto;
  }

  .contact-page .cu-hero__media {
    position: relative;
    order: 1;
    width: 100%;
    height: clamp(240px, 58vw, 320px);
  }

  .contact-page .cu-hero__photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-position: 72% 35%;
  }

  .contact-page .cu-hero__banner::after {
    display: none;
  }

  .contact-page .cu-hero__frame {
    height: auto;
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .contact-page .cu-hero__body {
    max-width: none;
  }

  .contact-page .cu-hero h1 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 1.75rem;
    line-height: 1.4;
  }

  .contact-page .cu-hero__lede {
    max-width: none;
    font-size: 1rem;
    line-height: 1.55;
  }

  .contact-page .cu-enquiry {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .contact-page .cu-form {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-page .cu-map {
    height: clamp(320px, 78vw, 420px);
  }

  .contact-page .cu-map-card {
    top: auto;
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    padding: 16px 18px 18px;
  }

  .contact-page .cu-map-card__brand {
    font-size: 1rem;
  }

  .contact-page .cu-map-card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .contact-page .cu-map-card p:last-child {
    font-size: 0.875rem;
    line-height: 1.5;
  }
}