/* Contact + thank-you pages: one form card and two short confirmations.
   Loaded alongside site.css, never instead of it. */

/* ---------------------------------------------------------------- hero --- */

.page-hero {
  padding: 64px 0 8px;
  text-align: center;
}
.page-hero .h1 { max-width: 640px; margin: 0 auto; }
.page-hero__lede {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin: 20px auto 0;
}
.page-hero__demo { margin-top: 22px; }

/* ---------------------------------------------------------------- form --- */

.contact { padding: 40px 0 88px; }

.form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 40px;
}

.field + .field { margin-top: 20px; }

.field__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-ink);
  margin-bottom: 8px;
}
.field__optional {
  font-weight: 400;
  color: var(--text-faint);
}

.field__input {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-ink);
  background: var(--surface-app);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color 160ms ease, background 160ms ease;
}
.field__input::placeholder { color: var(--text-faint); }
.field__input:hover { border-color: var(--text-faint); }
.field__input:focus {
  outline: none;
  border-color: var(--green-primary);
  background: var(--surface-card);
}
.field__input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Native validation only: nothing is marked wrong before it is filled in. */
.field__input:user-invalid {
  border-color: var(--status-urgent-fg);
  background: var(--status-urgent-bg);
}

textarea.field__input {
  min-height: 148px;
  resize: vertical;
}

.form__submit { margin-top: 28px; width: 100%; }

.form__note {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-faint);
  text-align: center;
  margin: 16px 0 0;
}

/* ----------------------------------------------------------- thank you --- */

.thanks {
  padding: 88px 0 96px;
  text-align: center;
}
.thanks__inner {
  max-width: 620px;
  margin: 0 auto;
}
.thanks__mark {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--status-success-bg);
  color: var(--status-success-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.thanks__mark .ico { width: 28px; height: 28px; }
.thanks .h1 { font-size: clamp(32px, 4.4vw, 48px); }
.thanks p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 20px auto 0;
}
.thanks .btn-row {
  justify-content: center;
  margin-top: 34px;
}

.thanks__list {
  margin: 28px auto 0;
  padding: 24px 26px;
  max-width: 520px;
  list-style: none;
  text-align: left;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.thanks__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}
.thanks__list .ico {
  width: 17px; height: 17px;
  color: var(--green-primary);
  margin-top: 3px;
}

/* -------------------------------------------------------- responsive --- */

@media (max-width: 640px) {
  .page-hero { padding: 44px 0 4px; }
  .contact { padding: 32px 0 64px; }
  .form { padding: 28px 22px; border-radius: 20px; }
  .thanks { padding: 60px 0 72px; }
  .thanks__list { padding: 20px; }
}
