:root {
  --zs-yellow: #FDFD00;
  --zs-black: #000000;
  --zs-white: #FFFFFF;
  --zs-blue: #0353A4;
  --zs-blue-light: #006DAA;
  --zs-grey: #E5E7EB;
  --zs-error: #D32F2F;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.5;
  color: var(--zs-black);
  background: var(--zs-black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Yellow ring beside a black ring keeps the focus indicator above 3:1 on
   both white cards and the black page background. */
:focus-visible {
  outline: 3px solid var(--zs-yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--zs-black);
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--zs-yellow);
  color: var(--zs-black);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Header */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 20px 20px;
  background: var(--zs-black);
  border-bottom: 3px solid var(--zs-yellow);
}

.site-logo {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.site-header-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-org {
  margin: 0;
  color: var(--zs-white);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-positioning {
  margin: 4px 0 0;
  color: var(--zs-yellow);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 640px) {
  .site-logo {
    width: 108px;
    height: 108px;
  }

  .site-org {
    font-size: 24px;
  }
}

/* Progress */

.progress-wrap {
  background: var(--zs-black);
  padding-bottom: 10px;
}

.progress-track {
  height: 8px;
  /* Light enough to clear 3:1 against the black page so the unfilled part of
     the bar still reads as the full extent of the journey. */
  background: #595959;
}

.progress-fill {
  height: 100%;
  width: 14.29%;
  background: var(--zs-yellow);
  transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0 20px;
  color: #D1D5DB;
  font-size: 13px;
}

.progress-label #progress-name {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--zs-yellow);
}

/* Layout */

.form-root {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 110px;
}

.card {
  background: var(--zs-white);
  border: 1px solid var(--zs-grey);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 24px 20px;
}

.step-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zs-black);
}

.step-title:focus-visible {
  outline: none;
  box-shadow: none;
}

.section-heading {
  margin: 24px 0 10px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zs-blue);
}

.lede {
  margin: 0 0 8px;
  font-size: 16px;
}

.step-intro {
  margin: 0 0 20px;
  color: #374151;
}

/* Step transitions */

.step.step-enter {
  animation: step-in 200ms ease both;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(var(--slide-from, 24px));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Fields cascade in as a step enters. */
.step-enter .field,
.step-enter .field-group,
.step-enter .plan-card,
.step-enter .contact-card,
.step-enter .check-list li {
  animation: field-in 260ms ease both;
}

.step-enter .field:nth-child(2),
.step-enter .field-group:nth-child(2),
.step-enter .plan-card:nth-child(2),
.step-enter .check-list li:nth-child(2) { animation-delay: 50ms; }
.step-enter .field:nth-child(3),
.step-enter .field-group:nth-child(3),
.step-enter .plan-card:nth-child(3),
.step-enter .check-list li:nth-child(3) { animation-delay: 100ms; }
.step-enter .field:nth-child(4),
.step-enter .field-group:nth-child(4),
.step-enter .check-list li:nth-child(4) { animation-delay: 150ms; }
.step-enter .field:nth-child(5),
.step-enter .field-group:nth-child(5),
.step-enter .check-list li:nth-child(5) { animation-delay: 200ms; }
.step-enter .field:nth-child(6),
.step-enter .field-group:nth-child(6),
.step-enter .check-list li:nth-child(6) { animation-delay: 250ms; }

@keyframes field-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* How it works stepper graphic */

.how-it-works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: hiw;
}

.hiw-node {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}

.hiw-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: -18px;
  width: 2px;
  background: var(--zs-grey);
}

.hiw-dot {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--zs-yellow);
  color: var(--zs-black);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--zs-black);
}

.hiw-label {
  padding-top: 6px;
  font-weight: 600;
}

.step-enter .hiw-node {
  animation: hiw-in 300ms ease both;
}

.step-enter .hiw-node:nth-child(2) { animation-delay: 120ms; }
.step-enter .hiw-node:nth-child(3) { animation-delay: 240ms; }
.step-enter .hiw-node:nth-child(4) { animation-delay: 360ms; }

@keyframes hiw-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 640px) {
  .how-it-works {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }

  .hiw-node {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .hiw-node:not(:last-child)::after {
    left: calc(50% + 26px);
    right: calc(-50% + 26px);
    top: 17px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .hiw-label {
    padding-top: 0;
    font-size: 14px;
  }
}

/* Fields */

.field {
  margin-bottom: 18px;
}

.field-group {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
  min-inline-size: auto;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.label-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--zs-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--zs-black);
  background: var(--zs-white);
  border: 1.5px solid #9CA3AF;
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

input[readonly] {
  background: #F3F4F6;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--zs-error);
}

.hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: #4B5563;
}

.error {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--zs-error);
}

.chip {
  display: inline-block;
  margin: 8px 0 0;
  padding: 6px 12px;
  background: var(--zs-yellow);
  color: var(--zs-black);
  border: 1px solid var(--zs-black);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  animation: chip-pop 220ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes chip-pop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.error:not([hidden]) {
  animation: error-in 180ms ease both;
}

@keyframes error-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 14px;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr 120px;
  }
}

.reveal {
  margin-top: 12px;
}

/* Pill radios */

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  position: relative;
  cursor: pointer;
}

.pill input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.pill span {
  display: inline-block;
  padding: 10px 20px;
  border: 1.5px solid #9CA3AF;
  border-radius: 999px;
  font-weight: 600;
  background: var(--zs-white);
  color: var(--zs-black);
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.pill:hover span {
  border-color: var(--zs-blue);
  transform: translateY(-1px);
}

.pill input:checked + span {
  background: var(--zs-yellow);
  border-color: var(--zs-black);
  color: var(--zs-black);
}

.pill input:focus-visible + span {
  outline: 3px solid var(--zs-yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--zs-black);
}

/* Plan cards */

.plan-cards {
  display: grid;
  gap: 14px;
  margin-bottom: 6px;
}

.plan-card {
  position: relative;
  display: block;
  padding: 18px 18px 16px;
  border: 2px solid var(--zs-grey);
  border-radius: var(--radius);
  background: var(--zs-white);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.plan-card:hover:not(:has(.card-input:checked)) {
  border-color: var(--zs-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.plan-card .card-input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.plan-card:has(.card-input:checked) {
  border-color: var(--zs-yellow);
  border-width: 3px;
  padding: 17px 17px 15px;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.plan-card:has(.card-input:focus-visible) {
  outline: 3px solid var(--zs-yellow);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--zs-black);
}

.plan-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--zs-yellow);
  border: 2px solid var(--zs-black);
  opacity: 0;
  transition: opacity 150ms ease;
}

.plan-check::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 7px;
  height: 12px;
  border: solid var(--zs-black);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.plan-card:has(.card-input:checked) .plan-check {
  opacity: 1;
}

.plan-name {
  display: block;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zs-blue);
}

.plan-users {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.plan-price {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
}

.plan-tagline {
  display: block;
  font-size: 14px;
  color: #374151;
  margin-top: 4px;
}

/* Stepper input */

.stepper {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 220px;
}

.stepper input {
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper-btn {
  width: 48px;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 700;
  background: var(--zs-white);
  color: var(--zs-black);
  border: 1.5px solid var(--zs-black);
  border-radius: 8px;
  cursor: pointer;
}

.stepper-btn:hover {
  background: var(--zs-yellow);
}

/* Summary strip */

.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 12px 16px;
  background: var(--zs-blue);
  color: var(--zs-white);
  border-radius: 8px;
  font-size: 14px;
}

.summary-strip .summary-item {
  font-weight: 600;
}

.summary-strip .summary-term {
  color: var(--zs-yellow);
}

/* Checklist and warning */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 6px 0 6px 38px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--zs-yellow);
  border: 2px solid var(--zs-black);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 12px;
  width: 6px;
  height: 11px;
  border: solid var(--zs-black);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.plain-list {
  margin: 0;
  padding-left: 22px;
}

.plain-list li {
  padding: 3px 0;
}

.warning-strip {
  margin: 24px 0 0;
  padding: 14px 16px;
  background: var(--zs-yellow);
  color: var(--zs-black);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 14px;
  border-left: 6px solid var(--zs-black);
  border-radius: 4px;
}

/* Emergency contacts */

.contact-card {
  border: 1.5px solid var(--zs-grey);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.contact-legend {
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zs-blue);
  padding: 0 6px;
}

/* Liability panel and declarations */

.liability-panel {
  max-height: 260px;
  overflow-y: auto;
  border: 1.5px solid #9CA3AF;
  border-radius: 8px;
  padding: 4px 16px 16px;
  background: var(--zs-white);
  font-size: 14px;
}

.liability-panel .section-heading {
  margin-top: 12px;
}

.scroll-affordance {
  margin: 8px 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--zs-blue);
  text-align: center;
}

.scroll-affordance::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  width: 8px;
  height: 8px;
  border: solid var(--zs-blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
}

.check-row input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: 1px 0 0;
  accent-color: var(--zs-blue);
}

.check-row input:disabled,
.check-row:has(input:disabled) {
  cursor: not-allowed;
}

.check-row:has(input:disabled) span {
  color: #6B7280;
}

/* Signature */

.signature-wrap {
  border: 2px dashed #9CA3AF;
  border-radius: 8px;
  background: var(--zs-white);
}

.signature-pad {
  display: block;
  width: 100%;
  height: 170px;
  touch-action: none;
  border-radius: 6px;
}

.signature-actions {
  margin-top: 8px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn .btn-spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid var(--zs-black);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-primary {
  background: var(--zs-yellow);
  color: var(--zs-black);
  border: 2px solid var(--zs-black);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
  background: var(--zs-white);
  color: var(--zs-blue);
  border: 2px solid var(--zs-blue);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--zs-blue-light);
  border-color: var(--zs-blue-light);
  color: var(--zs-white);
}

.btn-link {
  background: none;
  border: none;
  padding: 4px 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--zs-blue);
  text-decoration: underline;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--zs-blue-light);
}

/* Step navigation bar */

.step-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--zs-black);
  border-top: 2px solid #333333;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
}

.step-nav-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.step-nav-inner .btn {
  flex: 1;
}

@media (min-width: 640px) {
  .step-nav-inner .btn {
    flex: 0 0 auto;
    min-width: 180px;
  }
}

.step-nav.nav-single .btn-secondary {
  display: none;
}

.step-nav.nav-single .btn-primary {
  flex: 1;
}

/* Toast */

.toast[hidden] {
  display: none;
}

.toast {
  position: fixed;
  top: calc(var(--header-height, 90px) + 14px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(92vw, 520px);
  padding: 12px 18px;
  background: var(--zs-black);
  color: var(--zs-white);
  /* The page is black, so the toast needs its own edge to read as a surface. */
  border: 2px solid var(--zs-yellow);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  font-size: 14px;
}

.toast-action {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--zs-yellow);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

/* Success */

.reference-block {
  padding: 14px 16px;
  background: var(--zs-yellow);
  color: var(--zs-black);
  border-radius: 8px;
  font-size: 16px;
  border-left: 6px solid var(--zs-black);
}

/* Footer */

.site-footer {
  padding: 18px 20px calc(96px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: #D1D5DB;
  font-size: 13px;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: var(--zs-yellow);
  font-weight: 600;
}

/* Success screen */

.success-tick {
  display: block;
  width: 84px;
  height: 84px;
  margin: 4px auto 18px;
}

.success-tick .tick-circle {
  fill: var(--zs-yellow);
  stroke: var(--zs-black);
  stroke-width: 2;
}

.success-tick .tick-mark {
  fill: none;
  stroke: var(--zs-black);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: tick-draw 500ms ease 250ms forwards;
}

@keyframes tick-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (min-width: 640px) {
  .card {
    padding: 32px 36px;
  }

  .step-title {
    font-size: 28px;
  }
}
