/* MARK: Contact Us page */

.contact-page--v2 {
  --contact-v2-navy: #062653;
  --contact-v2-navy-deep: #031c3f;
  --contact-v2-green: #35a742;
  --contact-v2-ink: #071b3f;
  --contact-v2-text: #263343;
  --contact-v2-muted: #667085;
  --contact-v2-border: #dfe4ea;
  --contact-v2-surface: #ffffff;
  --contact-v2-surface-soft: #f7f9fb;
  --contact-v2-shadow: 0 14px 38px rgba(7, 27, 63, 0.08);
  background: var(--contact-v2-surface);
  color: var(--contact-v2-text);
  overflow: hidden;
}

.contact-page--v2 *,
.contact-page--v2 *::before,
.contact-page--v2 *::after {
  box-sizing: border-box;
}

.contact-page--v2 .site-container {
  width: min(calc(100% - 48px), 1180px);
  margin-inline: auto;
}

.contact-page--v2 h1,
.contact-page--v2 h2,
.contact-page--v2 h3,
.contact-page--v2 p {
  margin-top: 0;
}

.contact-page--v2 a {
  color: inherit;
}

.contact-page--v2 img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* MARK: Contact hero */
.contact-v2-hero {
  background: #edf1ef;
  margin-bottom: var(--calabash-section-gap);
}

.contact-v2-hero__inner {
  display: flex;
  min-height: 650px;
}

.contact-v2-hero__copy {
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  width: 50%;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(96px, 9vw, 148px) 42px
    max(24px, calc((var(--calabash-viewport, 100vw) - 1180px) / 2));
  background: linear-gradient(
    135deg,
    var(--calabash-turquoise-12) 0%,
    var(--contact-v2-surface) 45%,
    var(--calabash-orange-18) 100%
  );
}

/* MARK: Hero decoration */
.contact-v2-hero__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.contact-v2-hero__decor-icon {
  position: absolute;
  top: var(--decor-top);
  left: var(--decor-left);
  width: var(--decor-size);
  aspect-ratio: 33.8 / 56;
  background: url("../images/footer/calabash-icon-only.svg") center / contain no-repeat;
  opacity: 0.18;
  animation: contact-v2-hero-decor-float var(--decor-duration) ease-in-out infinite;
  animation-delay: var(--decor-delay);
}

@keyframes contact-v2-hero-decor-float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(0.6rem, -0.5rem) rotate(4deg);
  }
  50% {
    transform: translate(0.25rem, 0.6rem) rotate(-3deg);
  }
  75% {
    transform: translate(-0.6rem, -0.35rem) rotate(3deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.contact-v2-eyebrow,
.contact-v2-hero h1,
.contact-v2-hero__intro {
  position: relative;
  z-index: 1;
}

.contact-v2-hero__image {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 50%;
  background-color: #d9e1dd;
}

.contact-v2-hero__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-v2-eyebrow {
  margin-bottom: 10px;
  color: var(--calabash-company-orange-a11y);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.contact-v2-hero h1 {
  max-width: 620px;
  margin-bottom: 12px;
  color: var(--contact-v2-ink);
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.contact-v2-hero__intro {
  max-width: 590px;
  margin-bottom: 40px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
}

/* MARK: Cards, form and contact options */
.contact-v2-enquiries {
  padding: 0 0 var(--calabash-section-gap);
}

.contact-v2-enquiries__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 1fr);
  gap: 18px;
}

.contact-v2-card {
  border: 2px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(var(--contact-v2-surface), var(--contact-v2-surface)) padding-box,
    linear-gradient(135deg, var(--calabash-company-turquoise) 0%, var(--contact-v2-border) 40%) border-box;
  box-shadow: var(--calabash-shadow);
}

.contact-v2-card h2 {
  position: relative;
  margin-bottom: 7px;
  color: var(--contact-v2-ink);
  font-size: clamp(24px, 2.3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.contact-v2-card h2::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 10px;
  background: var(--calabash-company-turquoise);
}

.contact-v2-form-card,
.contact-v2-options {
  background:
    linear-gradient(var(--contact-v2-surface), var(--contact-v2-surface)) padding-box,
    linear-gradient(
      to bottom,
      var(--calabash-company-orange) 0%,
      var(--calabash-company-orange) 50%,
      var(--calabash-company-turquoise) 50%,
      var(--calabash-company-turquoise) 100%
    ) border-box;
}

.contact-v2-form-card {
  padding: clamp(26px, 3vw, 36px);
  scroll-margin-top: 120px;
}

.contact-v2-form-card > p {
  max-width: 410px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.55;
}

.contact-v2-form-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.contact-v2-form-notice--success {
  color: #155724;
  background: #e9f7ed;
  border: 1px solid #bfe5c8;
}

.contact-v2-form-notice--error {
  color: #8b1e1e;
  background: #fff0f0;
  border: 1px solid #f0c2c2;
}

.contact-v2-form {
  position: relative;
}

.contact-v2-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-v2-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-v2-field {
  margin-bottom: 16px;
}

.contact-v2-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--contact-v2-text);
  font-size: 14px;
  font-weight: 650;
}

.contact-v2-form__row .contact-v2-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-v2-field input,
.contact-v2-field select,
.contact-v2-field textarea {
  width: 100%;
  min-height: 51px;
  padding: 13px 16px;
  color: var(--contact-v2-ink);
  background: #fff;
  border: 1px solid #d7dde4;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-v2-field select {
  appearance: auto;
}

.contact-v2-field textarea {
  min-height: 126px;
  resize: vertical;
}

.contact-v2-field input::placeholder,
.contact-v2-field textarea::placeholder {
  color: #7b8491;
}

.contact-v2-field input:focus,
.contact-v2-field select:focus,
.contact-v2-field textarea:focus {
  border-color: var(--calabash-company-turquoise);
  box-shadow: 0 0 0 3px rgba(69, 190, 225, 0.22);
  outline: none;
}

.contact-v2-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 2px 0 18px;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.contact-v2-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  accent-color: var(--contact-v2-navy);
}

.contact-v2-consent a {
  font-weight: 750;
  text-decoration: underline;
}

.contact-v2-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  min-height: 52px;
  padding: 12px 22px;
  color: var(--calabash-navy);
  background: var(--calabash-turquoise-12);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(69, 190, 225, 0.35);
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.contact-v2-submit__arrow {
  margin-left: auto;
  font-size: 1.45em;
  line-height: 1;
}

.contact-v2-submit:hover,
.contact-v2-submit:focus-visible {
  transform: translateY(-2px);
  background: rgba(69, 190, 225, 0.22);
  border-color: rgba(69, 190, 225, 0.5);
}

.contact-v2-submit.is-sending {
  cursor: not-allowed;
  opacity: 0.85;
}

.contact-v2-submit.is-sending:hover {
  transform: none;
}

.contact-v2-submit.is-sending .contact-v2-submit__arrow {
  display: none;
}

.contact-v2-submit.is-sending::after {
  content: "";
  width: 20px;
  height: 20px;
  margin-left: auto;
  border: 2.5px solid rgba(6, 44, 79, 0.25);
  border-top-color: var(--calabash-navy);
  border-radius: 50%;
  animation: contact-v2-submit-spin 700ms linear infinite;
}

@keyframes contact-v2-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-v2-submit.is-sending::after {
    animation: none;
  }
}

/* MARK: Get in touch list */
.contact-v2-options {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 36px);
}

.contact-v2-options > h2 {
  margin-bottom: 12px;
}

.contact-v2-options__list {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
}

.contact-v2-option {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 91px;
  padding: 15px 0;
  color: var(--contact-v2-text);
  text-decoration: none;
  border-bottom: 1px solid var(--contact-v2-border);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.contact-v2-option:last-child {
  border-bottom: 0;
}

.contact-v2-option--arrow {
  grid-template-columns: 68px minmax(0, 1fr) 24px;
}

.contact-v2-option:hover,
.contact-v2-option:focus-visible {
  color: var(--calabash-company-orange-a11y);
  transform: translateX(3px);
  outline: none;
}

.contact-v2-option__icon {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  background: var(--calabash-turquoise-08);
  border: 1.5px solid rgba(69, 190, 225, 0.3);
  border-radius: 50%;
  transition:
    background-color var(--calabash-transition),
    border-color var(--calabash-transition),
    transform var(--calabash-transition);
}

.contact-v2-option:hover .contact-v2-option__icon,
.contact-v2-option:focus-visible .contact-v2-option__icon {
  background: var(--calabash-orange-18);
  border-color: rgba(235, 105, 16, 0.35);
  transform: scale(1.06);
}

.contact-v2-option__icon::before {
  width: 32px;
  height: 32px;
  content: "";
  background-color: var(
    --calabash-company-orange
  );
  -webkit-mask-image: var(--contact-v2-icon-src);
  mask-image: var(--contact-v2-icon-src);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.contact-v2-option__copy {
  display: block;
  min-width: 0;
}

.contact-v2-option__copy strong,
.contact-v2-option__copy b,
.contact-v2-option__copy small {
  display: block;
}

.contact-v2-option__copy strong {
  margin-bottom: 3px;
  color: var(--contact-v2-ink);
  font-size: 16px;
}

.contact-v2-option__copy b {
  margin-bottom: 3px;
  color: var(--contact-v2-text);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.contact-v2-option__copy small {
  color: var(--contact-v2-text);
  font-size: 14px;
  line-height: 1.45;
}

.contact-v2-option__arrow {
  font-size: 1.45rem;
  line-height: 1;
}

/* MARK: Head office and map */
.contact-v2-office {
  padding: 0 0 var(--calabash-section-gap);
}

.contact-v2-office .site-container {
  width: min(calc(100% - 48px), 1400px);
}

.contact-v2-office__title {
  position: relative;
  margin-bottom: 40px;
  color: var(--contact-v2-ink);
  font-size: clamp(25px, 2.6vw, 33px);
  font-weight: 800;
  text-align: center;
}

.contact-v2-office__title::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--calabash-company-turquoise);
}

.contact-v2-office__grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.25fr) minmax(0, 0.45fr) minmax(
      250px,
      0.3fr
    );
  align-items: stretch;
  gap: 18px;
}

.contact-v2-office__grid--no-testimonial {
  grid-template-columns: minmax(250px, 0.25fr) minmax(0, 0.45fr);
}

.contact-v2-testimonial {
  position: relative;
}

.contact-v2-testimonial .testimonial-card {
  position: absolute;
  inset: 0;
}

.contact-v2-office-card {
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  background:
    linear-gradient(var(--contact-v2-surface), var(--contact-v2-surface)) padding-box,
    linear-gradient(to right, var(--calabash-company-orange) 0%, var(--contact-v2-surface) 50%) border-box;
  box-shadow: 0 2px 12px rgba(7, 27, 63, 0.025);
}

.contact-v2-office-card h2 {
  margin-bottom: 17px;
}

.contact-v2-office-detail {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

a.contact-v2-office-detail:hover {
  color: var(--calabash-company-orange-a11y);
}

.contact-v2-office-detail__icon {
  width: 19px;
  height: 19px;
  margin-top: 1px;
  object-fit: contain;
}

.contact-v2-office-detail address {
  font-style: normal;
}

.contact-v2-office-detail strong {
  overflow-wrap: anywhere;
}

.contact-v2-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
  text-align: center;
}

.contact-v2-rating__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  color: #1a1a1a;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853) border-box;
  border: 2px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.contact-v2-rating__cta:hover,
.contact-v2-rating__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(7, 27, 63, 0.2);
  outline: none;
}

.contact-v2-rating__stars-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-v2-rating__stars {
  position: relative;
  display: block;
  width: 90px;
  height: 18px;
  flex: 0 0 90px;
}

.contact-v2-rating__stars-bg,
.contact-v2-rating__stars-fg {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  -webkit-mask-image: url(../images/icons/star.svg);
  mask-image: url(../images/icons/star.svg);
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 18px 18px;
  mask-size: 18px 18px;
}

.contact-v2-rating__stars-bg {
  width: 100%;
  background-color: var(--contact-v2-border);
}

.contact-v2-rating__stars-fg {
  width: var(--contact-v2-rating-percent);
  overflow: hidden;
  background-color: var(--calabash-company-orange);
}

.contact-v2-rating__value {
  color: var(--contact-v2-ink);
  font-size: 15px;
  font-weight: 800;
}

.contact-v2-rating__link {
  color: var(--contact-v2-text);
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
}

.contact-v2-rating__link:hover,
.contact-v2-rating__link:focus-visible {
  color: var(--calabash-company-orange-a11y);
}

.contact-v2-map {
  position: relative;
  height: 100%;
  min-height: 392px;
  overflow: hidden;
  background: #e6eee7;
  border-radius: 12px;
}

.contact-v2-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-v2-map__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  min-height: inherit;
  padding: 28px 24px;
  background: linear-gradient(135deg, var(--calabash-turquoise-12, #e8f7fc) 0%, var(--calabash-off-white, #f8faf9) 70%);
  text-align: center;
}

.contact-v2-map__placeholder p {
  max-width: 34ch;
  margin: 0;
  color: var(--contact-v2-ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-v2-map__load {
  min-height: 46px;
  padding: 10px 24px;
  border: 0;
  border-radius: 10px;
  background: var(--calabash-company-orange-a11y);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color var(--calabash-transition);
}

.contact-v2-map__load:hover,
.contact-v2-map__load:focus-visible {
  background: var(--calabash-company-orange-a11y-dark);
}

.contact-v2-map__load:focus-visible {
  outline: 3px solid var(--calabash-company-turquoise);
  outline-offset: 2px;
}

.contact-v2-map__link {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  color: var(--contact-v2-ink);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 6px;
  box-shadow: var(--contact-v2-shadow);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.contact-v2-map__link:hover,
.contact-v2-map__link:focus-visible {
  color: var(--calabash-company-orange-a11y);
}

.contact-v2-map__arrow {
  font-size: 1.25rem;
  line-height: 1;
}

/* MARK: Why work with Calabash Mint */
.contact-v2-reasons {
  padding: 0 0 var(--calabash-section-gap);
}

.contact-v2-reasons h2 {
  position: relative;
  margin-bottom: 40px;
  color: var(--contact-v2-ink);
  font-size: clamp(25px, 2.6vw, 33px);
  font-weight: 800;
  text-align: center;
}

.contact-v2-reasons h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--calabash-company-turquoise);
}

.contact-v2-reasons__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.contact-v2-reason {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 30px 22px;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--calabash-orange-18) 0%,
    var(--calabash-off-white) 45%,
    var(--calabash-turquoise-12) 100%
  );
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(7, 27, 63, 0.025);
  transition:
    box-shadow var(--calabash-transition),
    transform var(--calabash-transition);
}

.contact-v2-reason:hover {
  box-shadow: var(--calabash-shadow);
  transform: translateY(-4px);
}

.contact-v2-reason__icon-badge {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  place-items: center;
  background: var(--calabash-turquoise-08);
  border: 1.5px solid rgba(69, 190, 225, 0.3);
  border-radius: 50%;
}

.contact-v2-reason__icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.contact-v2-reason h3 {
  margin-bottom: 0;
  color: var(--contact-v2-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.contact-v2-reason p {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

/* MARK: Responsive layout */
@media (max-width: 1180px) {
  .contact-v2-hero__copy {
    padding-right: 76px;
  }

  .contact-v2-hero__decor {
    display: none;
  }

  .contact-v2-reasons__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .contact-v2-hero__inner {
    min-height: 0;
    flex-direction: column;
  }

  .contact-v2-hero__copy {
    width: 100%;
    padding: 44px 24px;
  }

  .contact-v2-hero__image {
    width: 100%;
    min-height: 380px;
  }

  .contact-v2-hero__image img {
    object-position: center 28%;
  }

  .contact-v2-enquiries__grid,
  .contact-v2-office__grid {
    grid-template-columns: 1fr;
  }

  .contact-v2-map {
    height: 392px;
  }

  .contact-v2-testimonial .testimonial-card {
    position: static;
    inset: auto;
    height: 340px;
  }

  .contact-v2-options {
    order: -1;
  }

  .contact-v2-reasons__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .contact-page--v2 .site-container {
    width: min(calc(100% - 30px), 1180px);
  }

  .contact-v2-hero__copy {
    padding-inline: 20px;
  }

  .contact-v2-hero__image {
    min-height: 270px;
  }

  .contact-v2-form-card,
  .contact-v2-options,
  .contact-v2-office-card {
    padding: 22px 19px;
  }

  .contact-v2-form__row {
    grid-template-columns: 1fr;
  }

  .contact-v2-map {
    height: 330px;
  }

  .contact-v2-map__link {
    top: auto;
    right: 12px;
    bottom: 12px;
  }

  .contact-v2-reasons__grid {
    grid-template-columns: 1fr;
  }

  .contact-v2-reason {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page--v2 *,
  .contact-page--v2 *::before,
  .contact-page--v2 *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .contact-v2-hero__decor-icon {
    animation: none;
  }
}
