.contact-main { width: min(100%, 900px); }

.contact-intro h1 { white-space: normal; }

.contact-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-fieldset legend {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-bottom: 10px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.6;
}

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

.contact-pair .entry-field label {
  color: var(--text-light);
  font-size: .78rem;
}

.contact-radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #bbc6c6;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.contact-radio:hover { border-color: #879595; }

.contact-radio:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: 0 0 0 2px rgba(44, 44, 42, .08);
}

.contact-radio input {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  accent-color: var(--teal);
}

.contact-body.is-embedded {
  background: transparent;
}

.contact-body.is-embedded .contact-header,
.contact-body.is-embedded .contact-footer {
  display: none;
}

.contact-body.is-embedded .contact-main {
  padding-top: 24px;
  padding-bottom: 24px;
}

.contact-body.is-embedded .contact-intro {
  margin-bottom: 30px;
}

@media (max-width: 640px) {
  .contact-pair,
  .contact-radio-group { grid-template-columns: 1fr; }
  .contact-pair { gap: 24px; }
  .contact-body.is-embedded .contact-main { padding-top: 12px; }
}

@supports not selector(:has(*)) {
  .contact-radio:focus-within {
    border-color: var(--teal);
    background: var(--teal-light);
  }
}
