/* Defines the styles for Contact hero. */
/* Applies styling to .contact-hero. */
.contact-hero {
  background: linear-gradient(135deg, #0f766e 0%, #0b5f58 55%, #115e59 100%);
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* Applies styling to .contact-hero .inner. */
body .site-main .contact-hero .inner {
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Applies styling to .contact-hero::after. */
.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 40%);
  opacity: 0.7;
  pointer-events: none;
}

/* Applies styling to .contact-hero-grid. */
.contact-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

/* Applies styling to .contact-visual. */
.contact-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.75rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Applies styling to .contact-visual::before, .contact-visual::after. */
.contact-visual::before,
.contact-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

/* Applies styling to .contact-visual::before. */
.contact-visual::before {
  width: 240px;
  height: 170px;
  top: -20px;
  left: 5%;
}

/* Applies styling to .contact-visual::after. */
.contact-visual::after {
  width: 190px;
  height: 190px;
  bottom: -30px;
  right: -20px;
  left: 20%;
  background: rgba(255, 255, 255, 0.08);
}

/* Applies styling to .contact-visual img. */
.contact-visual img {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

/* Applies styling to .contact-content. */
.contact-content {
  color: #ffffff;
  display: grid;
  gap: 0.6rem;
  order: 1;
}

/* Applies styling to .contact-title. */
.contact-title {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.2;
  max-width: 24ch;
  color: #ffffff;
  font-family: var(--font-sans);
}

/* Applies styling to .contact-lead. */
.contact-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.9);
}

/* Applies styling to .contact-card. */
.contact-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Applies styling to .contact-visual. */
.contact-visual {
  align-self: center;
  order: 2;
}

/* Applies styling to .contact-card label. */
.contact-card label {
  color: #1f2937;
}

/* Applies styling to .contact-card .btn-primary. */
.contact-card .btn-primary {
  margin-top: 0.5rem;
}

/* Applies styling to .form-consent. */
.form-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.85rem;
}

/* Applies styling to .form-consent input[type="checkbox"]. */
.form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  accent-color: var(--teal);
}

/* Applies styling to .form-consent label. */
.form-consent label {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #1f2937;
}

/* Applies styling to .form-consent a. */
.form-consent a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* Applies styling to .form-consent a:hover. */
.form-consent a:hover {
  color: var(--teal-dark);
}

/* Applies styling to .contact-card input, .contact-card textarea, .contact-card select. */
.contact-card input,
.contact-card textarea,
.contact-card select {
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  background: #f8fafc;
}

/* Applies styling to .contact-card label. */
.contact-card label {
  font-size: 0.82rem;
}

/* Applies styling to .form-row. */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Applies styling to .contact-form. */
.contact-form {
  gap: 0.6rem;
}

/* Applies styling to .form-consent. */
.form-consent {
  margin-top: 0.6rem;
}

/* This changes the layout on min-width: 701px screens. */
@media (min-width: 701px) {
/* Applies styling to .contact-hero. */
  .contact-hero {
    padding: 2.75rem 0 3.1rem;
  }

/* Applies styling to .contact-visual::before. */
  .contact-visual::before {
    width: 280px;
    height: 200px;
  }

/* Applies styling to .contact-visual::after. */
  .contact-visual::after {
    width: 220px;
    height: 220px;
  }

/* Applies styling to .contact-card. */
  .contact-card {
    padding: 0.95rem;
  }

/* Applies styling to .form-row. */
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* This changes the layout on min-width: 981px screens. */
@media (min-width: 981px) {
/* Applies styling to .contact-hero-grid. */
  .contact-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem;
  }

/* Applies styling to .contact-content. */
  .contact-content {
    order: initial;
  }

/* Applies styling to .contact-visual. */
  .contact-visual {
    order: initial;
  }

/* Applies styling to .contact-visual::before. */
  .contact-visual::before {
    left: -30px;
  }

/* Applies styling to .contact-visual::after. */
  .contact-visual::after {
    left: auto;
  }
}
