/* NexusSec - Project Partner registration (/work-with-us). Mobile first. */
:root {
  --bg: #eef3f9; --card: #fff; --card2: #f4f7fc; --border: #dbe3ee; --border-strong: #7d8a9e;
  --text: #101a2b; --text2: #46536a; --text3: #5b6472;
  --brand: #2563eb; --brand-strong: #1d4ed8; --brand-soft: #e9f0fa;
  --navy1: #0c1f42; --navy2: #091731; --navy3: #060f20;
  --danger: #b42318; --danger-soft: #fef3f2; --ok: #067647; --ok-soft: #ecfdf3;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--card); color: var(--text); line-height: 1.6; font-size: 16px;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
main a { color: var(--brand-strong); }
[hidden] { display: none !important; }
.wx-wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Hero */
.wx-hero {
  padding: 100px 0 56px; color: #fff;
  background: radial-gradient(120% 140% at 50% 0%, var(--navy1), var(--navy3));
}
.crumbs { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 28px; }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.wx-kicker { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #9fc0ff; margin-bottom: 10px; }
.wx-hero h1 { font-size: clamp(32px, 7vw, 52px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; max-width: 17ch; }
.wx-intro { font-size: 18px; color: rgba(255,255,255,.82); max-width: 60ch; margin: 18px 0 28px; }

/* Buttons */
.wx-btn, .wx-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s;
}
.wx-btn { background: var(--brand-strong); color: #fff; }
.wx-btn:hover { background: #1e40af; }
.wx-btn-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.wx-btn-ghost:hover { border-color: var(--text); }
.wx-btn[disabled] { opacity: .7; cursor: default; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px;
}
.wx-hero a:focus-visible { outline-color: #fff; }

/* Page sections */
.wx-section { padding: 56px 0; }
.wx-section + .wx-section { padding-top: 0; }
.wx-section h2 { font-size: clamp(25px, 4.5vw, 32px); letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; }
.wx-lead { color: var(--text2); font-size: 17px; max-width: 62ch; }
.wx-work { list-style: none; display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--border); }
.wx-work li { padding: 13px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.wx-steps { list-style: none; counter-reset: wx; margin-top: 28px; display: grid; gap: 24px; }
.wx-steps li { counter-increment: wx; position: relative; padding-left: 56px; }
.wx-steps li::before {
  content: counter(wx); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; background: var(--navy1); color: #fff;
}
.wx-steps h3 { font-size: 18px; line-height: 1.3; padding-top: 8px; }
.wx-steps p { color: var(--text2); margin-top: 4px; }
.wx-terms {
  margin-top: 32px; padding: 20px; background: var(--brand-soft); border-radius: 12px;
  border-left: 3px solid var(--brand-strong); color: var(--text2);
}
.wx-terms strong { color: var(--text); display: block; margin-bottom: 4px; }

/* Form card */
.wx-register { background: var(--bg); padding: 48px 0 72px; border-top: 1px solid var(--border); }
.wx-card {
  max-width: 720px; margin: 0 auto; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 18px 28px;
}
.wx-card > header h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.02em; }
.wx-card > header p { color: var(--text2); margin-top: 6px; }
.wx-req { color: var(--danger); font-weight: 700; }
.wx-state { padding: 24px 0 4px; color: var(--text2); }

/* Progress */
.wx-progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 22px; }
.wx-progress li { font-size: 13px; color: var(--text3); }
.wx-progress .bar { display: block; height: 6px; border-radius: 3px; background: var(--border); }
.wx-progress .label { display: none; margin-top: 7px; }
.wx-progress li.is-done .bar, .wx-progress li.is-current .bar { background: var(--brand-strong); }
.wx-progress li.is-current { color: var(--text); font-weight: 600; }
.wx-progress-text { margin-top: 10px; font-size: 14px; color: var(--text2); }
.wx-progress-text b { color: var(--text); }

/* Steps and fields */
.wx-step { margin-top: 24px; }
.wx-step > h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 18px; }
.wx-step > h3:focus { outline: none; }
.wx-group-title {
  font-size: 17px; font-weight: 700; margin: 30px 0 4px; padding-top: 22px; border-top: 1px solid var(--border);
}
.wx-group-note { color: var(--text2); font-size: 14.5px; margin-bottom: 14px; }
.wx-field { margin-bottom: 20px; min-width: 0; }
.wx-field > label, .wx-field legend, .wx-label {
  display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; padding: 0;
}
.wx-optional { font-weight: 400; color: var(--text2); }
fieldset { border: 0; min-width: 0; }
.wx-hint { font-size: 14px; color: var(--text2); margin-bottom: 7px; }
.wx-hint-after { font-size: 14px; color: var(--text2); margin-top: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], select, textarea {
  display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: 11px 13px; font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 1.5px solid var(--border-strong); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 124px; resize: vertical; line-height: 1.5; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2346536a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input:hover, select:hover, textarea:hover { border-color: #5f6b7e; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid transparent; outline-offset: 2px; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.25);
}
.wx-row { display: grid; gap: 0; }
.wx-phone { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }

/* Radios and checkboxes */
.wx-choices { display: grid; gap: 8px; }
.wx-choice {
  display: flex; align-items: flex-start; gap: 11px; min-height: 48px; padding: 12px 14px; cursor: pointer;
  font-size: 15.5px; line-height: 1.35; background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
}
.wx-choice:hover { border-color: var(--border-strong); }
.wx-choice:has(input:checked) { border-color: var(--brand-strong); background: #f4f8ff; }
.wx-choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 1px; }
.wx-choice input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand-strong); }
.wx-choices.is-days { grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); }
.wx-field > label.wx-check-plain { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; font-weight: 400; cursor: pointer; padding: 8px 0; margin: 0; min-height: 44px; }
.wx-check-plain input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-strong); }

/* Service coverage tags */
.wx-tag-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.wx-add { min-height: 48px; padding: 0 18px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--brand-strong); background: #fff; border: 1.5px solid var(--brand-strong); border-radius: 10px; cursor: pointer; }
.wx-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wx-tags:empty { display: none; }
.wx-tags li { display: inline-flex; align-items: center; gap: 2px; background: var(--brand-soft); border-radius: 999px; padding: 2px 3px 2px 13px; font-size: 14.5px; max-width: 100%; overflow-wrap: anywhere; }
.wx-tags button { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--text2); font-size: 20px; line-height: 1; cursor: pointer; }
.wx-tags button:hover { background: #d7e3f6; color: var(--text); }

/* Services */
.wx-svc { border: 1.5px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.wx-svc.is-on { border-color: var(--brand-strong); }
.wx-svc .wx-choice { border: 0; border-radius: 10px; background: transparent; }
.wx-svc.is-on .wx-choice { font-weight: 600; }
.wx-svc-detail { padding: 2px 14px 4px; display: grid; gap: 0; }
.wx-svc-detail .wx-field { margin-bottom: 14px; }
.wx-svc-detail label { font-size: 14.5px; }
.wx-brandgroup { margin-bottom: 18px; }
.wx-brandgroup .wx-choices { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* File */
.wx-file-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
input[type=file] { font: inherit; font-size: 15px; max-width: 100%; min-height: 44px; }
input[type=file]::file-selector-button {
  min-height: 44px; margin-right: 12px; padding: 0 16px; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--brand-strong); background: #fff; border: 1.5px solid var(--brand-strong); border-radius: 10px;
}
input[type=file]:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wx-text-btn { min-height: 44px; padding: 0 4px; font: inherit; font-size: 15px; color: var(--danger); background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* Rates */
.wx-rate-row { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.wx-unit { display: inline-block; font-weight: 700; color: var(--brand-strong); }
.wx-helper { background: var(--brand-soft); color: var(--text); border-radius: 10px; padding: 11px 14px; font-size: 14.5px; margin-bottom: 16px; }

/* Errors */
.wx-error { color: var(--danger); font-size: 14.5px; font-weight: 500; margin-top: 6px; }
.wx-field.has-error input:not([type=checkbox]):not([type=radio]):not([type=file]), .wx-field.has-error select, .wx-field.has-error textarea { border-color: var(--danger); }
.wx-summary {
  margin-top: 20px; padding: 14px 16px; background: var(--danger-soft); border: 1.5px solid var(--danger);
  border-radius: 10px; color: var(--text);
}
.wx-summary:focus { outline: none; }
.wx-summary p { font-weight: 700; }
.wx-summary ul { margin: 6px 0 0 18px; font-size: 15px; }
.wx-summary a { color: var(--danger); }
.wx-count { font-size: 14px; color: var(--text2); text-align: right; margin-top: 4px; }
.wx-count.is-near { color: var(--danger); font-weight: 600; }

/* Review */
.wx-review section { padding: 16px 0; border-top: 1px solid var(--border); }
.wx-review section:first-child { border-top: 0; padding-top: 0; }
.wx-review header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.wx-review h4 { font-size: 17px; }
.wx-review dl { display: grid; gap: 10px; }
.wx-review dt { font-size: 14px; color: var(--text2); }
.wx-review dd { overflow-wrap: anywhere; white-space: pre-line; }
.wx-edit { min-height: 44px; padding: 0 16px; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--brand-strong); background: #fff; border: 1.5px solid var(--brand-strong); border-radius: 999px; cursor: pointer; }
.wx-consents { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--border); }
.wx-consents .wx-field { margin-bottom: 8px; }
.wx-notice { margin: 14px 0 0; padding: 12px 14px; background: var(--card2); border-radius: 10px; font-size: 15px; color: var(--text2); }

/* Navigation */
.wx-nav { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }
.wx-nav .wx-btn { order: -1; }
.wx-nav button { width: 100%; }
.wx-submit-status { margin-top: 18px; padding: 14px 16px; background: var(--danger-soft); border: 1.5px solid var(--danger); border-radius: 10px; color: var(--text); }
.wx-submit-status:focus { outline: none; }
.wx-submit-status.is-busy { background: var(--brand-soft); border-color: var(--brand-strong); }

/* Success */
.wx-success { margin-top: 22px; padding: 22px 20px; background: var(--ok-soft); border: 1.5px solid var(--ok); border-radius: 12px; }
.wx-success:focus { outline: none; }
.wx-success h3 { font-size: 21px; margin-bottom: 8px; }
.wx-reference { margin-top: 14px; font-size: 15px; color: var(--text2); }
.wx-reference b { display: block; font-size: 21px; letter-spacing: .03em; color: var(--text); overflow-wrap: anywhere; }

.wx-noscript { margin-top: 18px; padding: 14px 16px; background: var(--card2); border-radius: 10px; }
/* Hidden from people; left for bots to fill in. */
.wx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Read by screen readers only. */
.wx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 620px) {
  .wx-wrap { padding: 0 24px; }
  .wx-card { padding: 32px 32px 36px; }
  .wx-row.is-two { grid-template-columns: 1fr 1fr; gap: 14px; }
  .wx-row.is-three { grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
  .wx-choices.is-inline { grid-template-columns: repeat(3, 1fr); }
  .wx-work { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .wx-svc-detail { grid-template-columns: 1.6fr 1fr; gap: 14px; }
  .wx-svc-detail .wx-span { grid-column: 1 / -1; }
  .wx-progress .label { display: block; }
  .wx-progress-text { display: none; }
  .wx-nav { display: flex; justify-content: space-between; gap: 12px; }
  .wx-nav .wx-btn { order: 2; margin-left: auto; }
  .wx-nav button { width: auto; min-width: 150px; }
  .wx-review dl { grid-template-columns: 190px 1fr; gap: 8px 16px; }
}
@media (min-width: 900px) {
  .wx-hero { padding: 132px 0 76px; }
  .wx-section { padding: 72px 0; }
  .wx-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .wx-steps li { padding-left: 0; padding-top: 54px; }
  .wx-work { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
