.contact-form {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
  position: relative;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* The contact band is light mint in both themes: --accent is too faint on it. */
.contact-section :focus-visible,
.contact-section .contact-form input:focus-visible,
.contact-section .contact-form textarea:focus-visible {
  outline-color: #163b2e;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form label {
  font-size: 14px;
  font-weight: 600;
}
.contact-form p {
  margin: 8px 0;
  font-size: 14px;
}
.form-notice,
.contact-form #contact-status {
  color: #2c5547;
}
.form-notice a,
#privacy-details a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.analytics-consent {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 620px;
  z-index: 40;
  padding: 22px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 5px 30px #0005;
}
.analytics-consent[hidden] {
  display: none;
}
.analytics-consent p {
  margin: 0 0 16px;
  padding-right: 28px;
  font-size: 14px;
}
.analytics-consent button {
  display: inline-block;
  padding: 10px 14px;
  margin: 0 10px 8px 0;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
}
.analytics-privacy {
  display: block;
  width: fit-content;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.analytics-consent .analytics-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  font-size: 24px;
  border: 0;
}
#privacy-details {
  font-size: 14px;
}
#privacy-details p {
  margin: 14px 0;
}
@media (max-width: 480px) {
  .analytics-consent {
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 16px;
  }
  .analytics-consent button {
    width: 100%;
    margin-right: 0;
  }
}
