/* The forms: contact, and the partner application. Labels above their fields, a single column on a
   phone, and the whole thing as wide as the words need rather than as wide as the page. */
.omi-form {
  max-width: 640px;
  margin-top: 34px;
}
.wide-form {
  max-width: 780px;
}
.omi-form h2 {
  margin: 0 0 18px;
  font: 600 19px var(--font-site);
}
.form-section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.form-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.field {
  margin-bottom: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0 18px;
}
.field label,
.field legend {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
}
.field .optional {
  color: var(--muted);
  font-size: 13px;
}
.omi-form input:not([type="checkbox"]):not([type="radio"]),
.omi-form textarea,
.omi-form select {
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--panel);
  color: var(--site-text);
  font: 15px / 1.5 var(--font-site);
}
.omi-form textarea {
  resize: vertical;
}
.omi-form input:focus-visible,
.omi-form textarea:focus-visible,
.omi-form select:focus-visible {
  border-color: var(--gold);
  outline: none;
}
fieldset.field {
  padding: 0;
  border: 0;
}
label.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.55;
}
label.check input,
.omi-form input[type="radio"] {
  flex: none;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 3px 0 0;
  accent-color: var(--gold);
}
.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}
.form-notice {
  margin: 0;
  font-size: 14px;
}
.form-notice[data-tone="bad"] {
  color: var(--error);
}
.form-thanks {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-control);
  background: var(--panel);
}

.contact-intro {
  margin: -16px 0 0;
  text-align: center;
}
.contact-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 30px 0 6px;
  border-radius: 4px;
}
.contact-qr {
  display: block;
  width: 130px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.contact-qr img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 6px;
  border-radius: 4px;
}
.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--site-text);
}
.contact-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.contact-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.contact-email {
  margin: 18px 0 0;
}
.contact-hours {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Contact: where we are beside how to write to us. */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
  margin-top: 10px;
}
.contact-layout h2 {
  margin: 26px 0 10px;
  font: 600 17px var(--font-site);
}
.contact-layout h2:first-child {
  margin-top: 34px;
}
/* Both columns open on their heading, so the form's own top margin would push it below the address. */
.contact-layout .omi-form {
  margin-top: 0;
}
.contact-address {
  margin: 0;
  line-height: 1.7;
}
.coming-soon {
  font: 600 20px var(--font-site);
}

@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
