/* Quiet surfaces and generous controls follow the site's monochrome cards. */
#contact .contact-form {
  min-width: 0;
  padding: 40px;
  gap: 28px;
  background: #fff;
  border: 0;
  border-radius: 24px;
}
#contact .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
#contact .contact-form label,
#contact .contact-form legend { min-width: 0; font-size: 15px; font-weight: 700; line-height: 1.6; }
#contact .field-label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#contact .required,
#contact .optional { display: inline-flex; align-items: center; margin: 0; padding: 2px 7px; border-radius: 4px; font-size: 11px; font-weight: 500; line-height: 1.6; letter-spacing: 0; }
#contact .required { color: var(--ink); background: var(--soft); }
#contact .optional { color: var(--muted); padding-inline: 0; }
#contact .contact-form input:not([type=checkbox]),
#contact .contact-form select {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
#contact .contact-form input::placeholder { color: var(--muted); font-size: 15px; opacity: 1; }
#contact .contact-form select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
#contact .contact-form label[for="activity-type"] { position: relative; }
#contact .contact-form label[for="activity-type"]::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: 28px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(25%) rotate(45deg);
  pointer-events: none;
}
#contact .contact-form input:not([type=checkbox]):hover,
#contact .contact-form select:hover { border-color: var(--muted); }
#contact .contact-form input:not([type=checkbox]):focus,
#contact .contact-form select:focus { background: #fff; border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 3px; }
#contact .contact-form legend { width: 100%; margin-bottom: 12px; }
#contact .contact-form legend .field-label { margin-bottom: 0; }
#contact .checkboxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#contact .checkboxes > label { display: block; }
#contact .checkboxes > label:last-child { grid-column: 1 / -1; }
#contact .checkboxes span {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 50px;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
#contact .checkboxes span::before { content: ''; display: inline-grid; place-items: center; flex: 0 0 15px; width: 15px; height: 15px; border: 1px solid var(--muted); border-radius: 3px; color: inherit; font-size: 11px; line-height: 1; }
#contact .checkboxes label:hover span { background: var(--paper); border-color: var(--muted); }
#contact .checkboxes input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
#contact .checkboxes input:checked + span::before { content: '✓'; color: #fff; border-color: #fff; }
#contact .checkboxes input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
#contact .field-error { font-size: 15px; }
#contact .submit-button { width: 100%; min-height: 68px; margin-top: 4px; padding: 14px 18px 14px 26px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; }
#contact .submit-button > span:first-child { font-size: 15px; font-weight: 700; line-height: 1.6; }
#contact .submit-button small { display: inline-block; margin-left: 10px; color: #fff; opacity: .75; font-size: 11px; font-weight: 400; }
#contact .submit-button .round-arrow { flex-shrink: 0; width: 36px; height: 36px; border-color: rgb(255 255 255 / .45); font-size: 20px; }
#contact .submit-button:hover { background: var(--ink); border-color: var(--ink); opacity: .86; }
#contact .submit-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
#contact .contact-form .form-note { margin-top: -12px; color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; }
@media (max-width: 1100px) {
  #contact .contact-form { padding: 30px; gap: 26px; }
  #contact .form-row { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 760px) {
  #contact .contact-form { padding: 26px 22px; border-radius: 20px; }
  #contact .checkboxes span { padding-inline: 12px; }
  #contact .submit-button { padding-left: 20px; }
  #contact .submit-button small { display: block; margin: 2px 0 0; }
}
@media (max-width: 370px) {
  #contact .contact-form { padding-inline: 18px; }
  #contact .checkboxes span { gap: 8px; padding-inline: 10px; }
}

/* Share the heading row instead of reserving empty space above the form. */
#contact .contact-layout { margin-top: 40px; }
#contact .contact-title { margin: 0 0 54px; }
#contact .contact-copy > p:first-of-type { color: var(--ink); }
@media (max-width: 760px) {
  #contact .contact-layout { margin-top: 30px; }
  #contact .contact-title { margin-bottom: 34px; }
}

#contact .contact-consent { display:flex; align-items:flex-start; gap:12px; font-weight:400; }
#contact .contact-consent input { width:20px; height:20px; flex:0 0 20px; margin-top:3px; }
#contact .contact-consent a { text-decoration:underline; text-underline-offset:3px; }
#contact-challenge { margin-top:24px; min-width:0; }
#contact-send-error { margin-top:16px; line-height:1.8; }
#contact-send:disabled { opacity:.5; cursor:not-allowed; }
