/*
 * Contact Us component styles.
 *
 * Matches the Figma node for the Contact Us page: hero art full-bleed, then a
 * 1280px content column holding the details card (392 x 713, radius 11px), the
 * form card (843 x 713, radius 11px), the accent ring and the map
 * (1280 x 397, radius 12px). The shared enquiry form lives in
 * contact-us/form.css.
 *
 * The hero is the shared `.hero-frame` from site.css (photograph + magenta arc +
 * real heading, all placed from the same 1440 x 503 frame as the Careers and
 * Blogs heroes). See docs/HERO_BANNER_METHOD.md. The arc is the shared
 * assets/images/hero-arc.svg.
 */

/* The hero band is the one place on this page that bleeds to the viewport edge:
   `.container` would otherwise cap and centre it, which insets the artwork. */
.contact-page-hero { position: relative; overflow: hidden; padding-block: 0; background: #fff; }
.contact-page-hero > .container { position: relative; width: 100%; max-width: none; padding: 0; }
.contact-page-hero .contact-page-layout, .contact-page-hero .contact-page-map { width: min(var(--container), calc(100% - (2 * var(--gutter)))); margin-inline: auto; }

/* The accent's upper part sits behind the hero, exactly as in the design, so
   the hero frame has to paint above it. */
.contact-page-hero__copy { position: relative; z-index: 1; }

/* The shared footer CTA ("Ready to Transform Your Practice") is not part of the
   Contact Us design. This stylesheet only loads on /contact-us/, so hiding it
   here leaves every other page untouched. */
.cta { display: none; }

/* One design pixel of the 1440 frame, exactly like --blog-unit and
   --solution-unit: 1px at 1440, 1.3333px at 1920. The accent is drawn from the
   figma's own coordinates, so it has to scale with the frame instead of staying
   a fixed size while the 1280px column grows. */
.contact-page-content { --contact-unit: clamp(1px, 0.0694444vw, 1.3333333px); position: relative; margin-top: clamp(3rem, 9.1667vw, 11rem); }

.contact-page-layout {
  --contact-border: linear-gradient(242.44deg, #ffdb85 8.56%, #f5ab88 23.29%, #ea788b 40.13%, #e4588d 52.76%, #e24d8e 60.13%, #de4c8e 74.87%, #d34990 87.5%, #c14594 99.08%, #af4298 108.55%);
  position: relative;
  display: grid;
  grid-template-columns: 392fr 843fr;
  gap: 45px;
  align-items: stretch;
  padding: 0;
  color: #000;
  background: #fff;
}

/* Figma: 239 x 308, its right edge 18px from the 1440 frame's edge and its
   bottom 22px above the cards. At 1920 that becomes 318.7 x 410.7, 24px from
   the edge and 29.3px above the cards — the same composition at every width. */
.contact-page-accent { position: absolute; right: calc(18 * var(--contact-unit)); bottom: calc(100% + 22 * var(--contact-unit)); width: calc(239 * var(--contact-unit)); height: auto; pointer-events: none; }

/* The gradient border is drawn by a border-box layer under the white padding-box
   layer, so it follows the 11px radius (a border-image would not). */
.contact-details { padding: 35px; border: 1px solid transparent; border-radius: 11px; background: linear-gradient(#fff, #fff) padding-box, var(--contact-border) border-box; }
.contact-details__group { display: grid; gap: 11px; margin: 0 0 30px; text-align: center; color: #dd0b81; }
.contact-details__group:last-child { margin-bottom: 0; }
/* Section pills. `padding: 1rem 1rem` and `line-height: 1` are the values the
   client measured against the approved design, so the label sits on the pill's
   true optical centre instead of riding high. With an 18px label the box is
   50px tall, which is what makes the 25px radius read as a full stadium. */
.contact-details__group h2 { margin: 0; padding: 1rem 1rem; border-radius: 25px; color: #fff; font-size: 18px; font-weight: 600; line-height: 1; background: linear-gradient(246.56deg, #ffdb85 4.12%, #f7b487 11.74%, #ef8f89 21.53%, #e9728b 30.24%, #e55d8c 40.03%, #e2518d 48.74%, #e24d8e 57.45%, #df4c8e 75.95%, #d74a90 87.93%, #c84792 97.72%, #b44396 105.34%, #af4298 107.52%); }
.contact-details__group p { margin: 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; }
.contact-details a { display: block; color: #dd0b81; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; text-decoration: none; }
.contact-page-map { margin-top: 40px; overflow: hidden; border-radius: 12px; background: #fff; aspect-ratio: 1280 / 397; min-height: 320px; }
.contact-page-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* The details card needs its 392px column to keep the email addresses on one
   line, so the two cards stack as soon as they cannot both hold their Figma
   widths. */
@media (max-width: 1024px) {
  .contact-page-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-page-map { margin-top: 2rem; }
}

@media (max-width: 720px) {
  .contact-page-accent { display: none; }
}
