/* ==========================================================================
   AER contact form, done card included. Fixed px values scoped under
   .aer-contact. This page loads Bootstrap 3 (html font-size 10px) and
   ../personal_assets/main.css, so every property those set on label, input,
   select, textarea, button, p, small and strong is reset here.
   ========================================================================== */

.aer-contact {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  color: #0f172a;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.aer-contact *,
.aer-contact *::before,
.aer-contact *::after {
  box-sizing: border-box;
}

.aer-contact [hidden] { display: none !important; }

.aer-contact .aer-contact-form {
  display: grid;
  gap: 22px;
  margin: 0;
}

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

.aer-contact .aer-contact-intro {
  max-width: 68ch;
  margin: 0;
  color: #71717a;
  font-size: 15.2px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

/* Labels: Bootstrap sets inline-block / bold / 5px margin; main.css sets block / 600 / 10px. */
.aer-contact label {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.aer-contact label > span {
  padding: 0;
  color: #3f3f46;
  font-size: 17.28px;
  font-weight: 500;
}

.aer-contact label small {
  color: #71717a;
  font-size: 12.8px;
  font-weight: 400;
}

/* Inputs: main.css sets display block, 10px type and a select margin. */
.aer-contact input,
.aer-contact select,
.aer-contact textarea {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 11px 13px;
  color: #0b0b0c;
  background: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  box-shadow: none;
  font-family: inherit;
  font-size: 15.2px;
  font-weight: 400;
  line-height: normal;
}

.aer-contact textarea { resize: vertical; overflow: auto; }
.aer-contact select { min-height: 44px; cursor: pointer; }

.aer-contact input:focus,
.aer-contact select:focus,
.aer-contact textarea:focus {
  border-color: #0b0b0c;
  outline: 3px solid rgba(11, 11, 12, 0.1);
  outline-offset: 0;
}

.aer-contact input::placeholder,
.aer-contact textarea::placeholder { color: #a1a1aa; opacity: 1; }

/* Honeypot: off-screen, never seen or tabbed to. */
.aer-contact .aer-contact-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px !important;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
}

/* Button: main.css sets a blue fill, 10px type, 3px radius and a blue hover / focus. */
.aer-contact .aer-contact-submit,
.aer-contact .aer-contact-submit:hover,
.aer-contact .aer-contact-submit:focus,
.aer-contact .aer-contact-submit:active {
  color: #ffffff;
  background: #0b0b0c;
  text-decoration: none;
}

.aer-contact .aer-contact-submit {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  justify-self: start;
  margin: 0;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 150ms ease;
  user-select: none;
}

.aer-contact .aer-contact-submit:focus-visible {
  outline: 2px solid #0b0b0c;
  outline-offset: 3px;
}

.aer-contact .aer-contact-submit:disabled,
.aer-contact .aer-contact-submit:disabled:hover {
  color: #ffffff;
  background: #0b0b0c;
  opacity: 0.6;
  cursor: default;
}

.aer-contact .aer-contact-error {
  margin: 0;
  color: #b91c1c;
  font-size: 13.76px;
  line-height: 1.5;
  text-align: center;
}

/* Done card */
.aer-contact .aer-contact-done {
  display: grid;
  gap: 10px;
  padding: 32px 28px;
  text-align: center;
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 16px;
}

.aer-contact .aer-contact-done:focus { outline: none; }

.aer-contact .aer-contact-done strong {
  color: #0f172a;
  font-size: 21.6px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

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