/* ============================================================
   FORMS — the sign-up, resend and stop-reminder pages (one white card on paper),
   plus the inputs, page titles and messages the questionnaire shares
   ============================================================ */

main.form-main {
  padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 8vw, 5rem);
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.5rem, 5vw, 2.75rem);
}

/* ---------- PAGE TITLE ---------- */
.q-header {
  margin-bottom: 2rem;
}

h1.q-title {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin: 0.9rem 0 0.75rem;
}

.q-header > h1.q-title:first-child {
  margin-top: 0;
}

.q-desc {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ---------- FIELDS ---------- */
.f-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.f-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border: none;
}

.f-label {
  font-weight: 700;
  color: var(--ink);
}

.f-input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.9rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.f-input::placeholder {
  color: #6B7686;
}

.f-input:hover {
  border-color: var(--dots);
}

.f-input:focus,
.f-input:focus-visible {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--input-focus-ring);
}

/* Type-to-search list (country) */
.f-combo {
  position: relative;
}

.f-combo-list {
  position: absolute;
  z-index: 50;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow-y: auto;
  list-style: none;
  padding: 0.3rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(20, 33, 61, 0.12);
}

.f-combo-option {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}

.f-combo-option.active,
.f-combo-option:hover {
  background: var(--trail-soft);
  color: var(--trail-soft-ink);
}

.f-combo-divider {
  height: 1px;
  margin: 0.3rem 0.4rem;
  background: var(--line);
}

.f-combo-empty {
  padding: 0.6rem 0.75rem;
  color: var(--muted);
}

/* ---------- CHECKBOXES ---------- */
.f-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 44px;
  color: var(--ink);
  line-height: 1.5;
  cursor: pointer;
}

.f-check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.05rem;
  accent-color: var(--trail);
  cursor: pointer;
}

.f-note {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- NOTES, ACKNOWLEDGMENT, PILOT ---------- */
.f-lang-note {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--compass-soft-ink);
  background: var(--compass-soft);
  border-radius: 12px;
  padding: 0.8rem 1rem;
}

.f-pilot {
  background: var(--trail-soft);
  color: var(--trail-soft-ink);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
}

.f-pilot .f-ack-title {
  color: var(--trail-soft-ink);
}

.f-pilot .f-ack-intro {
  color: var(--trail-soft-ink);
}

/* The acknowledgment text, in a scrollable box */
.f-ack {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  max-height: 22rem;
  overflow-y: auto;
}

.f-ack-title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.f-ack-intro {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.f-ack-heading {
  font-size: 1rem;
  color: var(--ink);
  margin: 1rem 0 0.35rem;
}

.f-ack-list {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  padding-left: 1.15rem;
}

.f-ack-list li {
  margin-bottom: 0.35rem;
}

.f-guardian {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.f-guardian-intro {
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- SUBMIT AND MESSAGES ---------- */
.f-submit {
  margin-top: 0.25rem;
}

.f-submit .btn-primary {
  width: 100%;
}

.q-error-msg {
  display: none;
  margin-top: 0.75rem;
  color: var(--error);
  font-weight: 500;
}

.q-error-msg.visible {
  display: block;
}

/* Resend page: shown instead of the report when a private link has expired */
.f-expired {
  background: var(--trail-soft);
  color: var(--trail-soft-ink);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.f-expired-title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--trail-soft-ink);
  margin-bottom: 0.3rem;
}

.f-sent {
  background: var(--compass-soft);
  color: var(--compass-soft-ink);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  line-height: 1.6;
}

.f-unsubscribe {
  margin-top: 1.75rem;
}
