/* CineFrames contact page. Depends on tokens.css + landing.css (rail, footer,
   .eyebrow, .cta are shared from the landing system). */

.contact {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--edge) var(--space-6);
}

.contact__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.contact__lede {
  margin: 0 0 var(--space-5);
  max-width: 52ch;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--bone-soft);
}

/* ---- form ---- */
.cform {
  display: grid;
  gap: var(--space-3);
}
/* the grid display would otherwise override the [hidden] attribute on success */
.cform[hidden] {
  display: none;
}

.cform__row {
  display: grid;
  gap: var(--space-1);
}

.cform__label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.cform__input {
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--bone);
  background: var(--ink-raise);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.7em 0.85em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cform__input::placeholder {
  color: var(--bone-faint);
}
.cform__input:focus-visible {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 2px rgba(176, 141, 87, 0.25);
}

.cform__textarea {
  resize: vertical;
  min-height: 8em;
  line-height: 1.55;
}

/* honeypot: kept in the layout for bots but off-screen for people and AT */
.cform__gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}
.cform__submit {
  cursor: pointer;
}
.cform__submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.cform__status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--bone-soft);
}
.cform__status.is-error {
  color: var(--oxblood-lift);
}

/* success panel replaces the form on a successful send */
.cform__success {
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

@media (prefers-reduced-motion: reduce) {
  .cform__success {
    animation: none;
  }
}
