/* Realtor partner sign-up: the public site's brand (navy, gold, Poppins), as on /iratfeltoltes. */
:root {
  --navy: #0b1622;
  --navy-soft: #16263a;
  --gold: #c79a45;
  --gold-ink: #7a5a1c;
  --page: #f3f1ec;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #5f6873;
  --line: #e7e2d8;
  --input: #cfc7b6;
  --cream: #faf6ec;
  --ok: #1e7a4c;
  --ok-soft: #e6f4ec;
  --bad: #b3261e;
  --bad-soft: #fdecea;
  --focus: #2457c5;
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.6 Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--gold-ink); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 14px; border-radius: 8px;
  background: var(--card); color: var(--navy); font-weight: 600;
}
.skip:focus { top: 12px; }

.brand { background: var(--navy); border-bottom: 3px solid var(--gold); }
.brand-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 760px; margin: 0 auto; padding: 14px 16px;
}
.brand img { display: block; height: 44px; width: auto; }
.brand-login {
  padding: 8px 14px; border: 1.5px solid rgba(243, 231, 204, .45); border-radius: 999px;
  color: #f3e7cc; font-size: 14px; font-weight: 600; text-decoration: none;
}
.brand-login:hover { border-color: var(--gold); color: #fff; }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 28px 16px 8px; outline: none; }

.hero { padding: 4px 2px 22px; }
.eyebrow { margin: 0 0 6px; color: var(--gold-ink); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 0 0 10px; color: var(--navy); font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.lead { margin: 0 0 18px; max-width: 60ch; color: #3d4752; font-size: 17px; }
.benefits { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits svg {
  flex: none; width: 28px; height: 28px; padding: 5px; margin-top: 1px;
  border-radius: 50%; background: var(--navy); color: var(--gold);
}
.benefits span { display: grid; color: var(--muted); font-size: 15px; line-height: 1.5; }
.benefits strong { color: var(--navy); font-weight: 600; }

.panel {
  padding: 24px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(11, 22, 34, .04), 0 10px 30px rgba(11, 22, 34, .05);
}
.panel h2 { margin: 0 0 6px; color: var(--navy); font-size: 22px; line-height: 1.3; font-weight: 600; }
.muted { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.span2 { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { color: var(--navy); font-size: 14px; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }
input, textarea {
  width: 100%; min-width: 0; padding: 11px 13px;
  border: 1.5px solid var(--input); border-radius: 11px;
  background: #fff; color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 92px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #8c939b; }
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(36, 87, 197, .18); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); }
.field-error { margin: 0; color: var(--bad); font-size: 14px; }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 4px; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; padding: 0; flex: none; accent-color: var(--navy); }
#consent-error { margin-left: 32px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 11px;
  background: var(--bad-soft); color: #7d1a14; font-size: 14.5px; font-weight: 500;
}
button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; margin-top: 18px; padding: 12px 26px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600;
  transition: background .15s ease, transform .05s ease;
}
button:active { transform: translateY(1px); }
button:disabled { cursor: progress; opacity: .6; transform: none; }
button.primary { background: var(--navy); color: #fff; }
button.primary:hover:not(:disabled) { background: var(--navy-soft); }

.done { padding: 10px 0 4px; text-align: center; outline: none; }
.done-mark {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px;
  border-radius: 50%; background: var(--ok-soft); color: var(--ok);
}
.done-mark svg { width: 28px; height: 28px; }
.done p { max-width: 50ch; margin: 0 auto; color: #3d4752; }

.have-account { margin: 18px 2px 0; color: var(--muted); font-size: 15px; text-align: center; }
.have-account a { font-weight: 600; }

.site-footer {
  width: 100%; max-width: 760px; margin: 0 auto;
  padding: 22px 16px max(28px, env(safe-area-inset-bottom));
  color: var(--muted); font-size: 13px; text-align: center;
}
.site-footer p { margin: 4px 0; }

@media (max-width: 600px) {
  main { padding-top: 22px; }
  .hero h1 { font-size: 27px; }
  .lead { font-size: 16px; }
  .panel { padding: 20px 16px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  button.primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
