:root {
  --main: #262728;
  --btn: #2599ee;
  --system: #eaf4fb;
  --system-secondary: #e6f5ff;
  --selected: #c3e6ff;
  --secondary: #ffd262;
  --success: #22b78d;
  --field: #9ea6b8;
  --error: #ff2d5f;
  --disable: #bcc8d3;
  --text-muted: #767f94;
  --border: #e0e0e0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Rubik, Arial, sans-serif;
  background: #fff;
  color: var(--main);
}

.brix-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.brix-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brix-logo {
  height: 32px;
  width: auto;
  display: block;
}

.nav-back {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--btn);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 12px;
  margin: -8px -12px;
  border-radius: 4px;
}

.nav-back:hover {
  opacity: 0.85;
}

.nav-back-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.nav-back-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: block;
  transform: translateY(1px);
}

.hero-blue {
  background: var(--system-secondary);
  padding: 28px 24px 32px;
  text-align: center;
}

.hero-title { margin: 0 0 12px; font-size: clamp(26px, 4vw, 40px); font-weight: 700; }

.hero-subtitle { margin: 0; font-size: clamp(16px, 2.5vw, 20px); }

.hero-benefits { padding: 32px 24px; }

.benefits-grid { max-width: 1200px; margin: 0 auto; display: grid; gap: 16px; }

@media (min-width: 900px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); } }

.benefit-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }

.benefit-tile--stack { flex-direction: row; text-align: right; align-items: flex-start; }

.benefit-icon { width: 64px; height: 64px; object-fit: contain; }

.benefit-title { font-weight: 700; }

.benefit-desc { font-size: 14px; color: var(--text-muted); }

.form-wrap { max-width: 360px; margin: 0 auto; padding: 28px 24px 48px; }

.form-wrap--wide { max-width: 540px; }

.form-wrap--company { max-width: 600px; }

.form-title { font-size: 24px; font-weight: 600; text-align: center; margin: 0 0 20px; }

.field-group { margin-bottom: 16px; }

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

.field-label--error { color: var(--error); }

.field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
}

.field-input:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 2px rgba(37,153,238,.2); }

.field-group.has-error .field-input:not(.phone-prefix),
.field-group.has-error .phone-suffix {
  border-color: var(--error);
}

.field-group.has-error .field-input:not(.phone-prefix):focus,
.field-group.has-error .phone-suffix:focus {
  border-color: var(--error);
  box-shadow: none;
  outline: none;
  border-width: 2px;
  padding: 11px 13px;
}

.field-group.has-error .phone-prefix {
  border-color: var(--border);
}

.field-error {
  color: var(--error);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
  text-align: right;
}

.phone-row { display: flex; gap: 8px; direction: ltr; }

.phone-prefix { width: 88px; flex-shrink: 0; }

.city-wrap { position: relative; }

.city-suggestions {
  position: absolute; top: 100%; right: 0; left: 0; z-index: 50;
  margin: 4px 0 0; padding: 0; list-style: none; background: #fff;
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08); max-height: 220px; overflow: auto;
}

.city-suggestions li { padding: 10px 14px; cursor: pointer; }

.city-suggestions li:hover { background: var(--system-secondary); }

.consent-row { display: flex; gap: 8px; align-items: flex-start; }

.consent-row input { accent-color: var(--btn); margin-top: 4px; }

.terms-link { background: none; border: none; padding: 0; color: var(--btn); text-decoration: underline; cursor: pointer; font-family: inherit; font-size: inherit; display: inline; }
a.terms-link:hover { opacity: 0.85; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
}

.btn.primary { background: var(--btn); color: #fff; }

.btn.primary:disabled { background: var(--disable); cursor: not-allowed; }

.btn.outline { background: #fff; border: 1px solid var(--border); color: var(--main); }

.step-nav { display: flex; gap: 12px; margin-top: 28px; }

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

.step-nav .btn.primary { flex: 2; }

.step-bars { display: flex; gap: 8px; }

.step-bar { flex: 1; height: 5px; border-radius: 20px; background: var(--system); }

.step-bar.filled { background: var(--secondary); }

.step-indicator {
  width: 100%;
  margin-bottom: 32px;
}

.step-indicator-mobile {
  display: flex;
}

.step-labels.step-indicator-desktop {
  display: none;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  direction: rtl;
  width: 100%;
}

.step-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  direction: rtl;
}

.step-num {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  color: #fff;
  font-weight: 400;
}

.step-item.active .step-num {
  color: var(--main);
  font-weight: 800;
}

.step-item.done .step-num {
  color: var(--main);
  font-size: 14px;
  font-weight: 700;
}

.step-text {
  font-size: 20px;
  line-height: 1.2;
  color: var(--main);
  font-weight: 400;
  white-space: nowrap;
}

.step-item.active .step-text {
  font-weight: 600;
}

@media (min-width: 768px) {
  .step-indicator-mobile {
    display: none;
  }

  .step-labels.step-indicator-desktop {
    display: flex;
  }
}

.section-title { font-size: 20px; font-weight: 800; margin: 0 0 20px; }

.role-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.role-chip { padding: 10px 20px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; font-family: inherit; }

.role-chip.selected { border: 2px solid var(--btn); background: var(--system-secondary); color: var(--btn); font-weight: 700; }

.yesno-row { display: flex; gap: 16px; }

.yesno-chip { flex: 1; height: 56px; border: none; border-radius: 8px; background: var(--system); cursor: pointer; font-family: inherit; }

.yesno-chip.selected { background: var(--selected); border: 1px solid var(--btn); }

.area-selector { display: flex; flex-direction: column; gap: 16px; }

.area-search-wrap { position: relative; }

.area-search-wrap .field-input.area-search {
  direction: rtl;
  text-align: right;
  padding: 12px 44px 12px 16px;
  border-radius: 8px;
}

.area-search-icon,
.area-search-action {
  position: absolute;
  top: 50%;
  right: 14px;
  left: auto;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--field);
  pointer-events: none;
}

.area-search-action {
  border: none;
  background: none;
  padding: 4px;
  cursor: pointer;
  pointer-events: auto;
}

.area-list { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }

.area-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding-inline-start: 12px;
  padding-inline-end: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

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

.area-row-spacer { flex: 1; min-width: 0; }

.area-label { font-size: 16px; color: var(--main); }

.area-label--bold { font-weight: 700; }

.area-badge {
  flex-shrink: 0;
  padding: 2px 5px;
  border-radius: 8px;
  background: var(--system);
  font-size: 12px;
  font-weight: 700;
  color: var(--main);
  white-space: nowrap;
}

.area-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-inline-start: 6px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.area-chevron.open { transform: rotate(180deg); }

.area-chevron-icon { display: block; }

.area-check { width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }

.area-check.on { background: var(--btn); color: #fff; border-color: var(--btn); }

.truck-type-picker { position: relative; }

.truck-type-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  direction: rtl;
  text-align: right;
}

.truck-type-trigger-spacer { flex: 1; min-width: 0; }

.truck-type-trigger-text {
  font-size: 16px;
  color: var(--field);
  line-height: 1.2;
}

.truck-type-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.truck-type-picker.open .truck-type-chevron { transform: rotate(180deg); }

.truck-type-list {
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.truck-type-list.hidden { display: none; }

.truck-type-option {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  color: var(--main);
  cursor: pointer;
  font-family: inherit;
}

.truck-type-option:hover { background: #fafafa; }

.truck-type-divider {
  height: 1px;
  margin: 0 16px;
  background: var(--border);
}

.truck-card { position: relative; background: #f8fbff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 10px; }

.truck-remove { position: absolute; left: 8px; top: 8px; border: none; background: none; cursor: pointer; }

.truck-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.truck-tag { background: var(--system-secondary); color: var(--btn); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; }

.truck-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

body.truck-dialog-open { overflow: hidden; }

.truck-dialog {
  background: #fff;
  width: 100%;
  max-width: 393px;
  max-height: min(90vh, 720px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.truck-dialog-header {
  flex-shrink: 0;
  min-height: 64px;
  padding: 12px 14px 12px 16px;
  background: var(--system-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  direction: rtl;
}

.truck-dialog-title {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--main);
  text-align: right;
  line-height: 1.3;
}

.truck-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--main);
  cursor: pointer;
  padding: 0;
  border-radius: 8px;
}

.truck-close:hover { background: rgba(0, 0, 0, 0.05); }

.truck-dialog-body {
  flex: 1;
  min-height: 0;
  padding: 16px 24px 0;
  overflow: auto;
}

.truck-dialog-required {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--main);
  text-align: right;
  direction: rtl;
}

.truck-dialog-form { direction: rtl; }

.dialog-section { margin-bottom: 16px; }

.dialog-field-label {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--main);
  text-align: right;
}

.dialog-subheading {
  margin: 4px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--main);
  text-align: right;
}

.dialog-row {
  display: flex;
  gap: 16px;
  direction: rtl;
}

.dialog-row .dialog-section {
  flex: 1;
  min-width: 0;
}

.chip-pair { display: flex; gap: 16px; }

.chip-opt {
  flex: 1;
  height: 56px;
  border: none;
  border-radius: 8px;
  background: var(--system);
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  color: var(--main);
}

.chip-opt.selected {
  background: var(--selected);
  border: 1px solid var(--btn);
}

.dialog-dd-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  direction: rtl;
  text-align: right;
}

.dialog-dd-text {
  flex: 1;
  font-size: 16px;
  color: var(--main);
  text-align: right;
}

.dialog-dd-text.is-placeholder { color: var(--field); }

.dialog-dd-chevron {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.dialog-dropdown.open .dialog-dd-chevron { transform: rotate(180deg); }

.dialog-dd-list {
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

.dialog-dd-list.hidden { display: none; }

.dialog-dd-option {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: #fff;
  text-align: right;
  font-size: 16px;
  color: var(--main);
  cursor: pointer;
  font-family: inherit;
  direction: rtl;
}

.dialog-dd-option.selected {
  background: var(--selected);
  font-weight: 600;
}

.dialog-dd-option:hover { background: #fafafa; }

.dialog-dd-divider {
  height: 1px;
  margin: 0 16px;
  background: var(--border);
}

.slider-head {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: rtl;
  margin-bottom: 4px;
}

.slider-label {
  flex: 1;
  font-size: 16px;
  color: var(--main);
  text-align: right;
  line-height: 1.35;
}

.slider-val-box {
  flex-shrink: 0;
  width: 64px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--field);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  color: var(--main);
}

.truck-slider {
  width: 100%;
  height: 28px;
  margin: 0;
  accent-color: var(--btn);
  cursor: pointer;
}

.slider-minmax {
  display: flex;
  justify-content: space-between;
  direction: rtl;
  font-size: 14px;
  color: var(--main);
  margin-top: 2px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: rtl;
  margin-bottom: 12px;
}

.toggle-label {
  font-size: 14px;
  color: var(--main);
  text-align: right;
  line-height: 1.4;
}

.toggle-spacer { flex: 1; min-width: 0; }

.toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--disable);
  border-radius: 14px;
  transition: background 0.2s ease;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.toggle-switch input:checked + .toggle-track {
  background: var(--btn);
}

.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(-20px);
}

.truck-dialog-footer {
  flex-shrink: 0;
  padding: 8px 24px 24px;
}

.truck-add-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 8px rgba(40, 6, 138, 0.15);
}

.truck-add-btn:disabled {
  background: var(--disable) !important;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.thanks-wrap { max-width: 480px; margin: 64px auto; padding: 24px; text-align: center; }

.page-thanks .brix-navbar {
  justify-content: center;
}

.thanks-icon { width: 80px; height: 80px; border-radius: 50%; background: #f2fffb; color: var(--success); font-size: 44px; line-height: 80px; margin: 0 auto 24px; }

.brix-footer {
  position: relative;
  background: #fff9f0;
  overflow: hidden;
  color: var(--main);
}

.footer-watermark {
  position: absolute;
  left: -20px;
  bottom: 0;
  width: 160px;
  max-width: 40vw;
  pointer-events: none;
  user-select: none;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.footer-columns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-col {
  text-align: start;
}

.footer-logo {
  display: block;
  height: 32px;
  width: auto;
}

.footer-tagline {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--main);
}

.footer-heading {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--main);
}

.footer-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.footer-item {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.35;
}

.footer-item:last-child {
  margin-bottom: 0;
}

.footer-label {
  font-weight: 700;
  color: var(--main);
}

.footer-link {
  color: var(--btn);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-link:hover {
  opacity: 0.85;
}

.footer-item--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
}

.footer-credit {
  position: absolute;
  bottom: 6px;
  inset-inline-start: 12px;
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(38, 39, 40, 0.35);
}

.footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover {
  color: rgba(38, 39, 40, 0.55);
}

.footer-version {
  position: absolute;
  bottom: 6px;
  inset-inline-end: 12px;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(38, 39, 40, 0.4);
}

@media (min-width: 768px) {
  .footer-columns {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
  }

  .footer-brand .footer-logo {
    height: 32px;
  }

  .footer-tagline {
    font-weight: 700;
  }

  .footer-item--stack {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 10px;
  }
}

.brix-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--main); color: #fff; padding: 12px 20px; border-radius: 10px; opacity: 0; transition: all .25s; z-index: 2000; }

.brix-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.hidden { display: none !important; }

.section-step { display: none; }

.section-step.active { display: block; }
