/* ==========================================================================
   Contact page
   ========================================================================== */

/* Page header */
section > h2{
  margin: 4px 0 2px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: .3px;
  font-weight: 800;
  color: var(--ink);
  position: relative;
}
section > h2::after{
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--link), transparent 75%);
}
section > p{
  margin: 6px 0;
}
section > p + p{
  color: var(--muted);
}

/* Form container */
.contact-form{
  max-width: 720px;
  margin: 12px 0 16px;
}

/* Rows */
.contact-form .form-row{
  margin: 10px 0 12px;
}

/* Labels */
.contact-form label{
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Inputs & textarea (global inputs already styled; these tighten spacing) */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea{
  width: 100%;
  box-sizing: border-box;
  border-radius: 6px;
  padding: 8px 10px;
}
.contact-form textarea{
  min-height: 200px;
  resize: vertical;
}

/* Helper text */
.contact-form .note{
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* Focus & invalid states */
.contact-form :where(input, textarea):focus-visible{
  outline: 2px solid var(--link);
  outline-offset: 2px;
}
.contact-form :where(input, textarea):invalid{
  border-color: color-mix(in oklab, #d93025 45%, var(--line));
}

/* Submit */
.contact-form button[type="submit"]{
  padding: 8px 12px;
  border-radius: 6px;
}

/* hCaptcha — move inline styles here */
.captcha-slot{ display:block; min-height:78px; }
@media (max-width: 420px){
  .captcha-slot{ min-height:110px; }
}

/* Small screens */
@media (max-width: 560px){
  section > h2{ font-size: 24px; }
  .contact-form textarea{ min-height: 180px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
