/* Bureau Brand System — Brand Overview v2.0 (2025) */

@font-face {
  font-family: "Acid Grotesk";
  src: url("/fonts/FFF-AcidGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Acid Grotesk";
  src: url("/fonts/FFF-AcidGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Acid Grotesk";
  src: url("/fonts/FFF-AcidGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "National 2 Condensed";
  src: url("/fonts/national-2-condensed-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quadrant Text";
  src: url("/fonts/QuadrantText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-canary-yellow: #fffd6d;
  --color-warm-grey: #c4c3c1;
  --color-mid-grey: #647170;
  --color-steel-blue: #213741;

  --color-off-white: #f7f4e7;
  --color-bright-blue: #3171f1;
  --color-lilac: #c4c0f9;
  --color-red-orange: #ff603b;

  --color-bg: var(--color-off-white);
  --color-surface: #ffffff;
  --color-text: var(--color-steel-blue);
  --color-accent: var(--color-canary-yellow);
  --color-muted: var(--color-mid-grey);
  --color-border: rgba(33, 55, 65, 0.18);
  --color-error: var(--color-red-orange);
  --color-focus: var(--color-bright-blue);

  --font-display: "National 2 Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Acid Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Quadrant Text", "JetBrains Mono", "Courier New", monospace;

  --display-leading: 0.9;
  --display-tracking: -0.05em;

  --body-leading: 1.4;
  --body-tracking: 0.02em;

  --mono-leading: 1.3;
  --mono-tracking: 0.1em;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--body-leading);
  letter-spacing: var(--body-tracking);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.brand-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: var(--mono-tracking);
  text-transform: uppercase;
  color: var(--color-steel-blue);
  margin-bottom: 32px;
}

.brand-bar .dot {
  width: 8px;
  height: 8px;
  background: var(--color-canary-yellow);
  border-radius: 50%;
  display: inline-block;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
  margin: 0 0 24px;
  padding-top: 2px;
  color: var(--color-steel-blue);
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.8vw, 2.375rem);
  line-height: 1;
  letter-spacing: 0;
  margin: 0 0 18px;
  padding-top: 2px;
  color: var(--color-steel-blue);
}

header {
  margin-bottom: 44px;
}

.sub {
  font-family: var(--font-body);
  color: var(--color-mid-grey);
  font-size: 1.0625rem;
  line-height: 1;
  margin: 0 0 24px;
  max-width: 56ch;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 16px;
}

/* Hero treatment — used on the first card and the success card to match
   the look of delivery.withbureau.com (steel-blue border, rounded 18px). */
.hero-card {
  background: #fff;
  border: 2px solid var(--color-steel-blue);
  border-radius: 18px;
  padding: 36px;
  color: var(--color-steel-blue);
}

.progress {
  height: 6px;
  background: rgba(33, 55, 65, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 12px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-canary-yellow);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.step-indicator {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--mono-tracking);
  text-transform: uppercase;
  color: var(--color-mid-grey);
  margin: 0 0 18px;
}

.step-badge {
  display: inline-block;
  background: var(--color-red-orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.step-badge-yellow {
  background: var(--color-canary-yellow);
  color: var(--color-steel-blue);
}

/* Hero cards use the pill-style inputs from delivery.withbureau.com */
.hero-card label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-steel-blue);
}

.hero-card input[type="text"],
.hero-card input[type="email"],
.hero-card input[type="tel"],
.hero-card input[type="number"],
.hero-card input[type="date"],
.hero-card textarea {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 18px;
  border: 1.5px solid var(--color-steel-blue);
  border-radius: 22px;
  background: var(--color-off-white);
  color: var(--color-steel-blue);
}

.hero-card textarea {
  border-radius: 18px;
  min-height: 96px;
}

.hero-card input:focus,
.hero-card textarea:focus {
  border-color: var(--color-steel-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33, 55, 65, 0.12);
}

/* Pill button — matches the "Send verification code" / "Verify and continue"
   primary CTA on delivery.withbureau.com. */
.pill-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 999px;
  padding: 14px 26px;
  display: block;
  margin: 20px auto 0;
  background: var(--color-canary-yellow);
  color: var(--color-steel-blue);
  border: none;
  cursor: pointer;
}

.pill-btn:hover:not(:disabled) {
  background: var(--color-steel-blue);
  color: var(--color-canary-yellow);
}

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

.hidden { display: none !important; }

label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-steel-blue);
  margin-bottom: 8px;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: var(--font-body);
  letter-spacing: var(--body-tracking);
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-warm-grey);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px rgba(49, 113, 241, 0.18);
}

textarea {
  resize: vertical;
  min-height: 96px;
  font-family: var(--font-body);
}

button {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: var(--mono-tracking);
  line-height: var(--mono-leading);
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--color-canary-yellow);
  color: var(--color-steel-blue);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s, color 0.15s;
  margin-top: 16px;
}

button:hover:not(:disabled) {
  background: var(--color-steel-blue);
  color: var(--color-canary-yellow);
}

button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

button.link {
  background: transparent;
  color: var(--color-mid-grey);
  padding: 8px 0;
  margin-top: 12px;
  text-transform: none;
  letter-spacing: var(--body-tracking);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.875rem;
}

button.link:hover:not(:disabled) {
  background: transparent;
  color: var(--color-steel-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hint {
  font-family: var(--font-body);
  color: var(--color-mid-grey);
  font-size: 0.875rem;
  margin: 12px 0 0;
}

.field { margin-bottom: 26px; }

.field .helper-text {
  margin: -2px 0 10px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: var(--body-tracking);
  color: var(--color-mid-grey);
  line-height: 1.45;
  max-width: 60ch;
}

.required-mark { color: var(--color-red-orange); margin-left: 4px; }

/* ── Checklist group ───────────────────────────────────────────── */
.checklist {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 6px 18px;
  background: #fff;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: var(--body-tracking);
  line-height: 1.4;
  text-transform: none;
  color: var(--color-steel-blue);
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
}

.checkbox-row:last-child { border-bottom: none; }

.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 0;
  accent-color: var(--color-canary-yellow);
  cursor: pointer;
}

/* Single-row checkbox (e.g., marketing agreement) sits on its own */
.field-checkbox .checkbox-row {
  border-bottom: none;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: rgba(255, 253, 109, 0.18);
}

/* ── File upload ───────────────────────────────────────────────── */
.file-drop {
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-off-white);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.file-drop:hover,
.file-drop.is-drag {
  border-color: var(--color-steel-blue);
  background: #fff;
}

.file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-steel-blue);
}

.file-drop-sub {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-mid-grey);
  margin-top: 4px;
}

.file-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.file-preview-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  aspect-ratio: 1 / 1;
}

.file-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-preview-item .file-name {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(33, 55, 65, 0.78);
  color: #fff;
  font-size: 0.6875rem;
  padding: 4px 6px;
  letter-spacing: var(--body-tracking);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-preview-item .remove-file {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  background: var(--color-red-orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0;
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.file-preview-item .remove-file:hover { background: var(--color-steel-blue); color: #fff; }

.file-preview-item.is-converting {
  background: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}

.file-preview-item.is-converting .file-name {
  background: transparent;
  color: var(--color-mid-grey);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: var(--mono-tracking);
  text-transform: uppercase;
  text-align: center;
  position: static;
  padding: 0;
}

.convert-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(33, 55, 65, 0.18);
  border-top-color: var(--color-steel-blue);
  animation: spin 0.9s linear infinite;
  position: absolute;
  top: calc(50% - 22px);
  left: calc(50% - 14px);
}

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

/* ── Signature pad ─────────────────────────────────────────────── */
.signature-wrap {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  position: relative;
  overflow: hidden;
}

.signature-wrap canvas {
  display: block;
  width: 100%;
  height: 200px;
  touch-action: none;
  background: #fff;
}

.signature-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid var(--color-border);
  background: var(--color-off-white);
}

.signature-hint {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-mid-grey);
}

.signature-actions button.link { margin: 0; padding: 4px 0; }

/* ── Section headings within the long form ────────────────────── */
.section-heading {
  margin: 36px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.section-heading:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.section-heading h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: var(--display-leading);
  letter-spacing: 0;
  margin: 0 0 8px;
  color: var(--color-steel-blue);
}

.section-heading p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-mid-grey);
  margin: 0;
  max-width: 56ch;
}

/* ── Done step ─────────────────────────────────────────────────── */
.done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.done-actions button { margin-top: 0; }

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-steel-blue);
  border: 1.5px solid var(--color-steel-blue);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 12px 22px;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-steel-blue);
  color: var(--color-surface);
}

.btn-primary-pill {
  background: var(--color-canary-yellow);
  color: var(--color-steel-blue);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 12px 22px;
}

.btn-primary-pill:hover:not(:disabled) {
  background: var(--color-steel-blue);
  color: var(--color-canary-yellow);
}

#details-form button[type="submit"] {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 999px;
  padding: 14px 28px;
  display: block;
  margin: 28px auto 0;
}

/* ── Progress / error states ──────────────────────────────────── */
.error {
  background: var(--color-red-orange);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: var(--body-tracking);
  margin-top: 16px;
}

.notice {
  background: var(--color-canary-yellow);
  color: var(--color-steel-blue);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: var(--body-tracking);
  margin-top: 16px;
}

.upload-progress {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: var(--mono-tracking);
  text-transform: uppercase;
  color: var(--color-mid-grey);
  margin-top: 8px;
}

/* ── Reference image (helper photos shown next to file fields) ── */
.ref-image {
  margin-top: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-off-white);
  padding: 8px;
  display: inline-block;
}

.ref-image img {
  max-width: 220px;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.ref-image figcaption {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: var(--mono-tracking);
  text-transform: uppercase;
  color: var(--color-mid-grey);
  margin-top: 6px;
}

/* ── Relocation form additions ─────────────────────────────────── */

/* Yes / No radio pills */
.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: var(--body-tracking);
  text-transform: none;
  color: var(--color-steel-blue);
  margin: 0;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.radio-pill:hover { border-color: var(--color-steel-blue); }

.radio-pill:has(input:checked) {
  background: var(--color-canary-yellow);
  border-color: var(--color-steel-blue);
  color: var(--color-steel-blue);
  font-weight: 600;
}

.radio-pill:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(49, 113, 241, 0.18);
}

/* Inline note under a field (e.g. deadline notice) */
.field-note {
  margin: 10px 0 0;
  padding: 10px 14px;
  background: rgba(255, 253, 109, 0.22);
  border-left: 3px solid var(--color-canary-yellow);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-steel-blue);
  max-width: 60ch;
}

/* The single-page form submit button uses the pill style */
#relocation-form > .pill-btn {
  margin-top: 36px;
}

/* ── Match Delivery Details form design ─────────────────────────── */

/* Custom select chevron (steel-blue triangle), same as delivery.withbureau.com */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23213741' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* Red-orange emphasis inside helper text (e.g. "*Charges may apply…") */
.helper-warn {
  color: var(--color-red-orange);
  font-weight: 500;
}

/* Bureau logo in the brand bar (matches delivery.withbureau.com) */
.brand-bar img {
  display: block;
  height: 48px;
  width: auto;
  background: transparent;
}

/* Admin brand-bar suffix label next to the logo */
.brand-bar .brand-suffix {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: var(--mono-tracking);
  text-transform: uppercase;
  color: var(--color-mid-grey);
  border-left: 1px solid var(--color-border);
  padding-left: 14px;
  line-height: 1;
}

/* Single-page form: each section is wrapped in .form-section so it can be
   shown/hidden as a unit. Keep the divider between sections, but not above the
   very first one. (Overrides the generic .section-heading:first-child rule.) */
#form-host .form-section .section-heading {
  margin: 36px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
#form-host .form-section:first-child .section-heading {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Two fields on one line (e.g. First Name + Last Name), still separate fields */
.field-row {
  display: flex;
  gap: 16px;
}
.field-row > .field {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 480px) {
  .field-row { flex-direction: column; gap: 0; }
}
