.contact-page {
  max-width: 640px;
  margin: 1.5rem auto 2rem;
  padding: 0 1rem 2rem;
}

.contact-page__header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  color: #330000;
}

.contact-page__header p {
  margin: 0 0 1.25rem;
  color: #374151;
  line-height: 1.5;
}

.contact-form {
  background: #fafbfe;
  border: 1px solid rgba(202, 3, 3, 0.12);
  border-radius: 10px;
  padding: 1.25rem;
}

.contact-field {
  margin-bottom: 1rem;
}

.contact-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1f2937;
}

.contact-field__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: #111827;
}

.contact-field__input:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 1px;
  border-color: #3b82f6;
}

.contact-field__textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-field--error .contact-field__input {
  border-color: #dc2626;
}

.contact-field__error {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: #dc2626;
}

.contact-challenge {
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
}

.contact-challenge__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #330000;
}

.contact-challenge__prompt {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: #374151;
}

.contact-challenge__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.contact-challenge__color {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.15);
  background: var(--chip-color);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.15);
}

.contact-challenge__color:hover {
  transform: scale(1.06);
}

.contact-challenge__color.is-tapped {
  outline: 3px solid #111827;
  transform: scale(0.95);
}

.contact-challenge__color.is-complete {
  opacity: 0.55;
  cursor: default;
}

.contact-challenge__progress {
  margin: 0;
  font-size: 0.875rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-challenge__reset {
  border: none;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  padding: 0;
}

.contact-form__submit {
  display: inline-block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: #330000;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contact-form__submit:hover {
  background: #4a0000;
}

.contact-form__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.contact-alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.contact-alert--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.contact-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.contact-honeypot-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-honeypot {
  display: none;
}
