/* Fale Conosco: editorial heading above a form and direct contact channels. */
.legacy-site.contact-page .contact-section {
  width: min(1160px, calc(100% - clamp(48px, 8vw, 144px)));
  padding-bottom: clamp(56px, 7vw, 96px);
}

.contact-section > h2 {
  margin-bottom: clamp(30px, 4vw, 58px);
  color: var(--light);
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 550;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.contact-section > h2 > span {
  color: #a7cec1;
}

.contact-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3.6vw, 52px);
}

.contact-form-column,
.contact-details {
  min-width: 0;
  border: 1px solid var(--rule-on-shell);
  border-radius: var(--radius-card);
  padding: clamp(18px, 3.1vw, 42px);
}

.contact-form-column {
  background: var(--surface-paper);
  color: var(--text-on-paper);
  --contact-border: #64847f;
  --contact-error: #782935;
}

.contact-details {
  background: var(--surface-inset);
  color: var(--text-on-shell);
}

.contact-columns h3 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.contact-demo,
.form-intro {
  font-size: 14px;
  line-height: 1.6;
}

.contact-demo {
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid #123e4333;
  border-radius: var(--radius-field);
  background: #e4efe5;
}

.contact-demo a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.contact-demo a:hover {
  text-decoration-thickness: 2px;
}

.form-intro {
  margin-bottom: 14px;
}

.contact-form-column noscript .contact-demo {
  margin: 18px 0 0;
}

#contact-fields {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin-bottom: 18px;
}

.contact-field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-field label {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.contact-field label span {
  font-size: 13px;
  font-weight: 450;
}

.contact-field :is(input, select, textarea) {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--contact-border);
  border-radius: var(--radius-field);
  padding: 11px 12px;
  background-color: #fcfef9;
  color: var(--text-on-paper);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  scroll-margin-block: 84px;
}

/* Reset the Safari menu-list appearance to keep the target height. */
.contact-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.contact-field textarea {
  min-height: 142px;
  max-height: 500px;
  resize: vertical;
}

.contact-field [aria-invalid="true"] {
  border-color: var(--contact-error);
  background-color: #fff4ef;
  box-shadow: inset 0 0 0 1px var(--contact-error);
}

.contact-field :disabled {
  background-color: #e4efe5;
}

.mc-legacy-study .legacy-site.contact-page .contact-form-column :is(:focus-visible, .form-feedback:focus) {
  outline: 3px solid var(--text-on-paper);
  outline-offset: 3px;
}

.field-error {
  color: var(--contact-error);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.form-feedback {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--radius-field);
  border-inline-start: 3px solid var(--contact-error);
  background: #faeae7;
  font-size: 14px;
  line-height: 1.55;
  scroll-margin-block: 84px;
}

.form-feedback p {
  font-weight: 700;
}

.form-feedback ul {
  margin: 4px 0 0;
  padding-inline-start: 18px;
}

.form-feedback a {
  display: inline-block;
  padding-block: 3px;
  text-underline-offset: 3px;
}

#form-result {
  margin: 18px 0 0;
  border-color: var(--surface-inset);
  background: #e1efe0;
}

.form-feedback[hidden],
.field-error[hidden] {
  display: none;
}

.mc-legacy-study .contact-page .contact-form-column .contact-actions button {
  border-color: var(--surface-inset);
  background: var(--surface-inset);
  color: var(--light);
}

.mc-legacy-study .contact-page .contact-form-column .contact-actions button:is(:hover,:focus-visible):enabled {
  background: var(--light);
  color: var(--text-on-paper);
}

.mc-legacy-study .contact-page .contact-form-column .contact-actions button:disabled {
  background: #e4efe5;
  color: var(--text-on-paper);
  transform: none;
  box-shadow: none;
  cursor: default;
}

.mc-legacy-study .contact-page .contact-actions button:disabled .direction-arrow {
  transform: none;
}

.contact-channels {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-channels li + li {
  border-top: 1px solid var(--rule-on-shell);
}

.contact-channel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 0;
  color: var(--text-on-shell);
  text-decoration: none;
  line-height: 1.45;
}

.contact-channel strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
}

.contact-channel .contact-channel-copy > span {
  display: block;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.contact-channel-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule-on-shell);
  border-radius: 50%;
  background: #ffffff08;
  color: var(--light);
}

.contact-channel-icon .footer-icon {
  width: 17px;
  height: 17px;
  margin: 0;
}

.contact-channel:is(:hover,:focus-visible) .contact-channel-copy > span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-page .contact-social {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-on-shell);
}

.contact-page .contact-social h3 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: normal;
  margin-bottom: 12px;
}

.contact-page .contact-social-links {
  gap: 10px;
}

@media (max-width: 900px) {
  .contact-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .contact-field-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .contact-actions button {
    width: 100%;
  }

  .contact-channel {
    gap: 8px;
  }
}

@media (forced-colors: active) {
  .contact-field select {
    appearance: auto;
    background-image: none;
  }
}
