/* Keep Contact typography distinct from the shared coaching and newsletter styles. */
.rs-contact-page {
  --rs-contact-copy: #334c47;
  --rs-contact-dark-copy: #eaf6f3;
  --rs-contact-dark-link: #aef0eb;
}

.rs-contact-page .contact-page-hero-grid > div > p:last-child {
  color: var(--rs-contact-dark-copy);
  font-size: clamp(16px, 1.55vw, 18px);
  line-height: 1.65;
}

.rs-contact-page .contact-page-hero .eyebrow {
  font-size: 13px;
}

.rs-contact-page .contact-expectations {
  padding: clamp(20px, 3vw, 34px);
}

.rs-contact-page .contact-expectations li {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  color: var(--rs-contact-dark-copy);
  font-size: 16px;
  line-height: 1.5;
  padding-block: 12px;
}

.rs-contact-page .contact-expectations li span {
  font-size: 12px;
}

.rs-contact-page .contact-expectations > a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  color: var(--rs-contact-dark-link);
  overflow-wrap: anywhere;
  padding-block: 6px;
}

.rs-contact-page .contact-expectations > a,
.rs-contact-page .contact-side-card > a,
.rs-contact-page .contact-privacy-card a {
  font-size: 15px;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.rs-contact-page .contact-expectations .section-kicker,
.rs-contact-page .contact-form .section-kicker,
.rs-contact-page .contact-side-card .section-kicker,
.rs-contact-page .newsletter-form .section-kicker {
  font-size: 13px;
  letter-spacing: 0.1em;
}

.rs-contact-page .contact-side-card > p:not(.section-kicker),
.rs-contact-page .contact-privacy-card p,
.rs-contact-page .contact-form .form-heading > p:last-child {
  color: var(--rs-contact-copy);
  font-size: 16px;
  line-height: 1.65;
}

.rs-contact-page .contact-side-card > a,
.rs-contact-page .contact-privacy-card a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  color: #075c61;
  padding-block: 10px;
}

.rs-contact-page .contact-form .form-grid label:not(.honeypot),
.rs-contact-page .newsletter-form-fields label:not(.honeypot) {
  font-size: 15px;
  line-height: 1.5;
}

.rs-contact-page .contact-form .form-grid label:not(.honeypot) {
  display: block;
}

.rs-contact-page .contact-form .form-grid label:not(.honeypot) > :is(input, select, textarea) {
  display: block;
  margin-top: 8px;
}

.rs-contact-page .contact-form .form-grid label > span {
  color: var(--rs-contact-copy);
  font-size: 14px;
}

.rs-contact-page .contact-form .form-grid :is(input, select, textarea),
.rs-contact-page .newsletter-form-fields input {
  min-width: 0;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.5;
}

.rs-contact-page .contact-form .form-grid :is(input, select, textarea) {
  border-color: #69847b;
}

.rs-contact-page .contact-form .form-grid textarea {
  min-height: 145px;
}

.rs-contact-page .contact-form .form-grid :is(input, textarea)::placeholder,
.rs-contact-page .contact-form select:invalid {
  color: #49605a;
  opacity: 1;
}

.rs-contact-page :is(.contact-form, .newsletter-form) .form-consent {
  grid-template-columns: 20px minmax(0, 1fr);
  min-height: 44px;
  font-size: 15px;
  line-height: 1.6;
}

.rs-contact-page :is(.contact-form, .newsletter-form) .form-consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.rs-contact-page .contact-form .form-consent {
  color: var(--rs-contact-copy);
}

.rs-contact-page .contact-form :is(.rs-recaptcha-status, .form-submit-row > p),
.rs-contact-page .rs-form-notice {
  font-size: 15px;
  line-height: 1.6;
}

.rs-contact-page .contact-form .button {
  border-color: #006970;
  background: #006970;
  font-size: 15px;
}

.rs-contact-page .contact-form .button:is(:hover, :focus-visible) {
  border-color: #07565c;
  background: #07565c;
}

.rs-contact-page .newsletter-form > p:not(.section-kicker, .newsletter-status) {
  color: var(--rs-contact-dark-copy);
  font-size: 16px;
  line-height: 1.65;
}

.rs-contact-page .newsletter-form-fields label > span,
.rs-contact-page .newsletter-form :is(.form-consent, small, .newsletter-status) {
  color: var(--rs-contact-dark-copy);
  font-size: 15px;
}

.rs-contact-page .newsletter-form-fields input {
  border-color: #9bbdb6;
}

.rs-contact-page .newsletter-form-fields input::placeholder {
  color: #d4e8e4;
  opacity: 1;
}

.rs-contact-page .newsletter-form-fields .button {
  font-size: 15px;
  white-space: normal;
}

.rs-contact-page :is(.contact-page-main, .contact-page-hero, .contact-newsletter-section) :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.rs-contact-page .contact-form .button:focus-visible {
  outline-color: #006970;
}

.rs-contact-page .newsletter-form .button:focus-visible,
.rs-contact-page .newsletter-form .form-consent input:focus-visible {
  outline-color: var(--rs-contact-dark-link);
}

@media (min-width: 901px) {
  .rs-contact-page .newsletter-form-fields {
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr) auto;
  }
}

@media (max-width: 600px) {
  .rs-contact-page .contact-form,
  .rs-contact-page .newsletter-form,
  .rs-contact-page .contact-side-card,
  .rs-contact-page .contact-privacy-card {
    padding-inline: clamp(18px, 6vw, 28px);
  }
}
