/* The hiring box. One file, no build. The tenant accent arrives from /theme.css. */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5f5f66;
  --border: #d1d1d6;
  --input-bg: #ffffff;
  --nudge-bg: #fff7df;
  --nudge-border: #f2cf72;
  --nudge-text: #5a4300;
  --error: #c4191f;
  --accent-ink: var(--accent, #114B5F);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #1c1c1f;
    --text: #f2f2f5;
    --muted: #a6a6ad;
    --border: #3a3a40;
    --input-bg: #26262a;
    --nudge-bg: #3a2f12;
    --nudge-border: #7a6220;
    --nudge-text: #f6e3ad;
    --error: #ff6b6b;
    /* The accent as text or a ring must stay readable on a dark page. */
    --accent-ink: color-mix(in srgb, var(--accent, #114B5F) 45%, #ffffff);
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.top,
main,
.foot {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

.top { padding-top: 20px; padding-bottom: 8px; }

.wordmark {
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

a { color: var(--accent-ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.chip input:focus-visible + span {
  outline: 3px solid var(--accent-ink);
  outline-offset: 2px;
}

h1 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 19px; line-height: 1.3; margin: 0 0 10px; }

.hero,
.sec,
.form-wrap,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  margin: 12px 0;
}

.hero { border-top: 5px solid var(--accent, #114B5F); }
.lead { color: var(--muted); font-size: 17px; margin: 0 0 20px; }

.sec ul { margin: 0; padding-left: 20px; }
.sec li { margin: 4px 0; }

.btn {
  display: inline-block;
  background: var(--accent, #114B5F);
  color: #ffffff;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { filter: brightness(1.1); }
.btn-full { display: block; width: 100%; margin-top: 8px; }

.intro,
.muted { color: var(--muted); }

.form-summary {
  color: var(--error);
  font-weight: 600;
  border: 1px solid var(--error);
  border-radius: 10px;
  padding: 10px 12px;
}

.field { margin: 14px 0; padding: 0; border: 0; min-width: 0; }

.field label,
.field legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  padding: 0;
}

.req { color: var(--error); }

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
}

textarea { resize: vertical; min-height: 96px; }

[aria-invalid="true"],
fieldset[aria-invalid="true"] .chip span { border-color: var(--error); }

.field-error {
  color: var(--error);
  font-size: 14px;
  margin: 4px 0 0;
}

.nudge {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--nudge-bg);
  border: 1px solid var(--nudge-border);
  color: var(--nudge-text);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 18px 0 8px;
  font-size: 15px;
}

.nudge svg { flex: none; margin-top: 1px; }
.nudge p { margin: 0; }

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.field .chip {
  display: inline-block;
  position: relative;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

/* The checkbox stays in the page (focus, keyboard, screen readers); the span is what shows. */
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip span {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--input-bg);
  font-size: 15px;
  user-select: none;
}

.chip input:checked + span {
  background: var(--accent, #114B5F);
  border-color: var(--accent, #114B5F);
  color: #ffffff;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 4px;
  font-size: 14px;
}

.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent, #114B5F);
}

/* The honeypot: off-screen for people, still a plain text input for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.done { text-align: center; }
.done-icon { color: #2a9d4a; margin-bottom: 8px; }

.prose h2 { margin-top: 24px; }
.prose ul { padding-left: 20px; }

.foot {
  color: var(--muted);
  font-size: 13px;
  padding-top: 12px;
  padding-bottom: 32px;
}

@media (min-width: 720px) {
  .hero, .sec, .form-wrap, .card { padding: 32px 36px; }
  h1 { font-size: 34px; }
}
