/* Register interest. One form shared by the PropertyMe and Sidekick pages.
   Each page sets the colours through the --in-* tokens; the layout lives here. */
.interest {
  --in-ink: #111;
  --in-muted: #545454;
  --in-line: #d9d6cf;
  --in-field: #fff;
  --in-focus: #4268fc;
  --in-error: #b42318;
  min-width: 0;
  color: var(--in-ink);
}

.interest-form { display: grid; gap: 22px; }
.interest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.interest-field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.interest-field em, .interest-choice legend em { color: var(--in-muted); font-style: normal; font-weight: 400; }

.editorial .interest .interest-form .interest-field :is(input, textarea),
.interest-field input,
.interest-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--in-line);
  border-radius: 14px;
  background: var(--in-field);
  color: var(--in-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.editorial .interest .interest-form .interest-field textarea, .interest-field textarea { min-height: 84px; resize: vertical; }
.editorial .interest .interest-form .interest-field :is(input, textarea):hover { border-color: var(--in-focus); }
.editorial .interest .interest-form .interest-field :is(input, textarea):focus-visible { outline: 3px solid var(--in-focus); outline-offset: 2px; border-color: transparent; box-shadow: none; }

.interest-choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.interest-choice legend { margin-bottom: 12px; padding: 0; font-size: 14px; font-weight: 600; }
.interest-choice > div { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-choice label { position: relative; display: block; cursor: pointer; }
.interest-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

/* The way in: four short chips. */
.interest-choice label > span {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--in-line);
  border-radius: 999px;
  background: var(--in-field);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .3s cubic-bezier(.2, .7, .1, 1);
}

.interest-choice label:hover > span { border-color: var(--in-focus); transform: translateY(-1px); }
.interest-choice input:checked + span { border-color: var(--in-focus); background: var(--in-focus); color: #fff; }
.interest-choice input:focus-visible + span { outline: 3px solid var(--in-focus); outline-offset: 2px; }

.interest-check { display: flex; align-items: center; gap: 12px; width: fit-content; font-size: 15px; cursor: pointer; }
.interest-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--in-focus); cursor: pointer; }
.interest-check input:focus-visible { outline: 3px solid var(--in-focus); outline-offset: 2px; }

.interest-submit { display: flex; }
.interest-submit .button[disabled] { cursor: progress; opacity: .7; }
.interest-note { margin: 0; color: var(--in-muted); font-size: 13px; line-height: 1.6; }
.interest .interest-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.interest-error { color: var(--in-error); }

.interest-done { padding: clamp(28px, 4vw, 44px); border: 1px solid var(--in-line); border-radius: 24px; background: var(--in-field); }
.interest-done:focus { outline: none; }
.interest-done:focus-visible { outline: 3px solid var(--in-focus); outline-offset: 3px; }
.interest-done h3 { margin: 0 0 10px; color: var(--in-ink); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.03em; }
.interest-done p { margin: 0; color: var(--in-muted); font-size: 16px; line-height: 1.6; }

@media (max-width: 620px) {
  .interest-form { gap: 18px; }
  .interest-grid { grid-template-columns: 1fr; gap: 12px; }
  .interest-field { gap: 6px; }
  .editorial .interest .interest-form .interest-field :is(input, textarea), .interest-field input, .interest-field textarea { min-height: 48px; padding: 12px 14px; }
  .editorial .interest .interest-form .interest-field textarea, .interest-field textarea { min-height: 72px; }
  .interest-choice legend { margin-bottom: 10px; }
  .interest-choice label > span { min-height: 42px; padding: 9px 14px; }
  .interest-choice > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .interest-choice label > span { width: 100%; }
  .interest-submit .button { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .interest-choice label > span { transition: none; }
  .interest-choice label:hover > span { transform: none; }
}
