.contact-section {
  padding: 50px 0 80px;
  scroll-margin-top: 120px;
}
.contact-form-card {
  max-width: 840px;
  padding: clamp(24px, 5vw, 56px);
  background: #f3f5f8;
  border-radius: 12px;
}
.contact-form-card h2 {
  margin-top: 0;
}
.contact-required {
  font-size: 0.9rem;
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.contact-form .form-field {
  min-width: 0;
}
.contact-form .contact-captcha {
  display: none;
}
.contact-form .form-field:has(textarea),
.contact-form .form-field:has(input[type="checkbox"]),
.contact-form .buttons {
  grid-column: 1 / -1;
}
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.contact-form input:not([type="checkbox"]):not([type="hidden"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #707b89;
  border-radius: 4px;
  background: #fff;
  color: #171717;
  font: inherit;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 3px 10px 0 0;
  vertical-align: top;
  accent-color: #253f61;
}
.contact-form label.inline {
  font-size: 0.95rem;
  font-weight: 400;
}
.contact-form a {
  color: #253f61;
  text-decoration: underline;
}
.contact-form :is(input, select, textarea, button, a):focus-visible {
  outline: 3px solid #253f61;
  outline-offset: 3px;
}
.contact-form button {
  border: 0;
  background: #f22e62;
  color: #fff;
  font: inherit;
  font-weight: 600;
  transition: all 0.3s;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: rgba(0, 0, 0, 0.2) 0px -4px 34px 0;
  text-decoration: none;
}
.contact-form button:hover {
  background: #f94939;
}
.contact-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.contact-form-card .notices {
  padding: 16px;
  margin-bottom: 24px;
  border-left: 4px solid #253f61;
  background: #fff;
}
.contact-form-card .notices.success {
  color: #166534;
  border-left-color: #15803d;
  background: #f0fdf4;
}
.contact-form-card .notices.error {
  color: #991b1b;
  border-left-color: #b91c1c;
  background: #fef2f2;
}
.contact-form-card .notices:is(.success, .error) p {
  color: inherit;
}
.contact-form .form-message {
  color: #991b1b;
}
@media (max-width: 600px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-section {
    padding: 30px 0 50px;
  }
  .contact-form button {
    width: 100%;
  }
}
