/* Contact form, shown in an iframe on the website's Contact Us page.
   Matches the Ontraport form it replaced. Change the look here: docs/contact-form.md */
:root {
  --field-bg: #f2f2f2;
  --field-ink: #3b3b3b;
  --placeholder: #8a8a8a;
  --button: #aa835c;
  --button-hover: #94704d;
  --error: #b3261e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--field-ink);
  font-family: Lato, Helvetica, Arial, sans-serif;
}

form { display: grid; gap: 12px; padding: 2px; }

.field { display: block; }

input, textarea {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e2e2e2;
  border-radius: 0;
  background: var(--field-bg);
  color: var(--field-ink);
  font: inherit;
  font-size: 15px;
}

textarea { min-height: 76px; resize: vertical; }

input::placeholder, textarea::placeholder { color: var(--placeholder); letter-spacing: .04em; }

input:focus, textarea:focus { outline: 2px solid var(--button); outline-offset: 1px; background: #fff; }

button {
  width: 100%;
  padding: 11px 16px;
  border: 0;
  border-radius: 0;
  background: var(--button);
  color: #fff;
  font: inherit;
  font-size: 20px;
  line-height: 1.2;
  cursor: pointer;
}

button:hover { background: var(--button-hover); }
button:focus-visible { outline: 2px solid var(--button-hover); outline-offset: 2px; }
button:disabled { opacity: .7; cursor: default; }

.error { margin: 0; color: var(--error); font-size: 14px; line-height: 1.4; }

.thanks { padding: 24px 4px; text-align: center; outline: none; }
.thanks h2 { margin: 0 0 8px; color: var(--button-hover); font-size: 22px; font-weight: 400; }
.thanks p { margin: 0; font-size: 15px; line-height: 1.5; }

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