/* ── Page-specific tokens ─────────────────────────────────────── */
:root {
  --text-error: #dc2626;
}

/* ── Layout ───────────────────────────────────────────────────── */
html,
body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 1.5rem;
}

/* ── Card ─────────────────────────────────────────────────────── */
.card {
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}

/* ── Headings / copy ──────────────────────────────────────────── */
h1 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}
.subtitle {
  font-size: 0.875rem;
  color: var(--text-subtle);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* ── Form fields ──────────────────────────────────────────────── */
.field {
  margin-bottom: 1rem;
}
label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}
label .req {
  color: var(--text-error);
  margin-left: 2px;
}
input[type='text'],
input[type='email'],
textarea {
  width: 100%;
  padding: 0.5625rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  border-color: var(--ms-blue);
  box-shadow: 0 0 0 3px rgb(0 120 212 / 0.15);
}
textarea {
  resize: vertical;
  min-height: 80px;
}

/* Honeypot — visually hidden but accessible to screen readers so screen-reader
       users don't accidentally fill it. Real bots fill every visible field. */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ── Submit button ────────────────────────────────────────────── */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.6875rem 1.25rem;
  background-color: var(--ms-blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
  margin-top: 0.5rem;
}
.btn-submit:hover {
  background-color: var(--ms-blue-hover);
}
.btn-submit:active {
  background-color: #005a9e;
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Footer link ──────────────────────────────────────────────── */
.back-link {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-subtle);
  text-decoration: none;
}
.back-link:hover {
  color: var(--text-primary);
}
.back-link-spaced {
  margin-top: 1.5rem;
}
.label-note {
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Thank-you state ──────────────────────────────────────────── */
.thanks {
  text-align: center;
  padding: 1rem 0;
}
.thanks .check {
  font-size: 2.5rem;
  color: #16a34a;
  margin-bottom: 1rem;
}
.thanks h1 {
  margin-bottom: 0.5rem;
}
.thanks p {
  font-size: 0.9375rem;
  color: var(--text-subtle);
  line-height: 1.6;
}
