/* Tokens pulled directly from breez.com.au's live CSS custom properties
   (:root), so this form matches the marketing site exactly rather than
   approximating it. Update here if the site's palette ever changes. */
:root {
  --ink: #10151b;
  --ink-soft: #57626d;
  --ink-faint: #8a93a0;
  --paper: #faf9f5;
  --surface: #ffffff;
  --line: #e5e0d3;
  --teal: #0e7490;
  --teal-deep: #0b4f5c;
  --teal-pale: #e6f1f1;
  --signal: #22c7a9;
  --coral: #ff5a36;
  --coral-deep: #e1431c;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-soft: 0 1px 2px rgba(16, 21, 27, 0.04), 0 12px 32px -16px rgba(16, 21, 27, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}

.head { margin-bottom: 28px; }

.logo {
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.progress-track {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--coral);
  transition: width 0.25s ease;
}

.step-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.card h2 { margin: 0 0 4px; font-size: 21px; font-weight: 600; }
.card .intro { margin: 0 0 20px; color: var(--ink-soft); font-size: 14px; }

.field { margin-bottom: 18px; }

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

.field .required-mark { color: var(--coral); }

.field .optional-mark {
  color: var(--ink-faint);
  font-weight: 400;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.skip-note {
  margin: 0 0 20px;
  padding: 10px 14px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.field .help {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 2px 0 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="password"],
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}

.field textarea { min-height: 80px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-pale);
}

.field .error-text {
  display: none;
  color: var(--coral-deep);
  font-size: 12.5px;
  margin-top: 4px;
}

.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: var(--coral);
}

.field.invalid .error-text { display: block; }

.nav-row {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
}

.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-deep); }
.btn-primary:disabled { background: var(--ink-faint); cursor: not-allowed; }

.btn-secondary { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--teal-pale); color: var(--teal-deep); }

.autosave-note {
  text-align: center;
  color: var(--ink-faint);
  font-size: 12.5px;
  margin-top: 20px;
}

.staff-tag {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--teal-deep);
  background: var(--teal-pale);
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.context-block {
  background: var(--teal-pale);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 16px;
}
.context-block h3 { font-size: 13px; color: var(--teal-deep); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.context-block dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; }
.context-block dt { font-size: 13px; color: var(--ink-soft); text-transform: capitalize; }
.context-block dd { font-size: 13.5px; margin: 0; color: var(--ink); }

.review-block { margin-bottom: 16px; }
.review-block h3 { font-size: 14px; color: var(--ink-soft); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.review-block dl { margin: 0; }
.review-block dt { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.review-block dd { margin: 0; font-size: 14.5px; }

.success h2 { color: var(--teal-deep); }
.success a { color: var(--teal); font-weight: 600; }

.submit-error {
  background: #fff1ee;
  border: 1px solid #ffcfc2;
  color: var(--coral-deep);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}

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