/* public/_layout/onboard-progress.css
 * Shared progress bar + shell for all onboarding pages.
 * Each page sets <body data-onboard-step="N"> where N is 1-5 (or .5 for "in between").
 * onboard-progress.js injects the bar into [data-onboard-bar].
 */
:root {
  --gcb-gold: #9A7B22;
  --gcb-gold-light: #C9A84C;
  --gcb-navy: #0A2342;
  --gcb-f5: #F5F5F7;
  --gcb-e8: #E8E8ED;
  --gcb-86: #86868B;
  --gcb-1d: #1D1D1F;
}
body.onboard {
  font-family: 'Inter', sans-serif;
  background: var(--gcb-f5);
  color: var(--gcb-1d);
  min-height: 100vh;
  margin: 0;
}
.ob-top {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--gcb-e8);
  padding: 14px 32px;
  display: flex; align-items: center; gap: 32px;
}
.ob-top .ob-logo {
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--gcb-navy);
  font-size: 13px; font-weight: 600;
}
.ob-top .ob-logo img { height: 28px; }
.ob-top .ob-quit {
  margin-left: auto; font-size: 13px; color: var(--gcb-86); text-decoration: none;
}
.ob-top .ob-quit:hover { color: var(--gcb-1d); }

/* Progress bar */
.ob-progress {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 28px 32px 24px; max-width: 880px; margin: 0 auto;
  position: relative;
}
.ob-progress::before {
  content: ''; position: absolute; top: 38px; left: 64px; right: 64px;
  height: 2px; background: var(--gcb-e8); z-index: 0;
}
.ob-progress::after {
  content: ''; position: absolute; top: 38px; left: 64px;
  height: 2px; background: var(--gcb-gold); z-index: 1;
  width: var(--ob-progress, 0%);
  transition: width 0.4s ease;
}
.ob-step {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  flex: 1; min-width: 0;
}
.ob-step .ob-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gcb-e8);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--gcb-86);
  margin-bottom: 8px; transition: all 0.15s;
}
.ob-step.done .ob-dot {
  background: var(--gcb-gold); border-color: var(--gcb-gold); color: #fff;
}
.ob-step.done .ob-dot::before { content: '✓'; }
.ob-step.done .ob-dot span { display: none; }
.ob-step.active .ob-dot {
  background: #fff; border-color: var(--gcb-gold); color: var(--gcb-gold);
  box-shadow: 0 0 0 4px rgba(154,123,34,0.15);
}
.ob-step .ob-lbl {
  font-size: 11px; color: var(--gcb-86); text-align: center;
  max-width: 110px; line-height: 1.3;
}
.ob-step.active .ob-lbl { color: var(--gcb-navy); font-weight: 600; }
.ob-step.done .ob-lbl { color: var(--gcb-1d); }
@media (max-width: 700px) {
  .ob-progress { padding: 20px 12px 16px; }
  .ob-step .ob-lbl { font-size: 10px; max-width: 70px; }
}

/* Content shell */
.ob-stage {
  max-width: 640px; margin: 0 auto; padding: 24px 32px 80px;
}
.ob-stage.wide { max-width: 880px; }
.ob-h1 {
  font-size: 28px; font-weight: 700; color: var(--gcb-navy); margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.ob-sub {
  font-size: 15px; color: var(--gcb-86); margin-bottom: 28px; line-height: 1.55;
}
.ob-card {
  background: #fff; border-radius: 14px; padding: 28px; margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(10,35,66,0.05);
}
.ob-field { margin-bottom: 16px; }
.ob-field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--gcb-1d); margin-bottom: 6px;
}
.ob-field input, .ob-field select, .ob-field textarea {
  width: 100%; padding: 12px 14px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--gcb-e8); border-radius: 10px; background: #fff; color: var(--gcb-1d);
  transition: all 0.15s;
}
.ob-field input:focus, .ob-field select:focus, .ob-field textarea:focus {
  outline: none; border-color: var(--gcb-gold);
  box-shadow: 0 0 0 3px rgba(154,123,34,0.15);
}
.ob-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .ob-row { grid-template-columns: 1fr; } }

/* Actions */
.ob-actions {
  display: flex; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 28px;
}
.ob-actions.end { justify-content: flex-end; }
.ob-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.ob-btn-primary { background: var(--gcb-gold); color: #fff; }
.ob-btn-primary:hover { background: #7d6219; transform: translateY(-1px); }
.ob-btn-secondary { background: #fff; color: var(--gcb-1d); border: 1px solid var(--gcb-e8); }
.ob-btn-secondary:hover { border-color: var(--gcb-gold); color: var(--gcb-navy); }
.ob-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Misc */
.ob-tile {
  border: 1px solid var(--gcb-e8); border-radius: 12px; padding: 20px;
  cursor: pointer; transition: all 0.15s;
}
.ob-tile:hover { border-color: var(--gcb-gold); }
.ob-tile.selected { border-color: var(--gcb-gold); background: rgba(154,123,34,0.06); }
.ob-tile h3 { font-size: 15px; font-weight: 600; color: var(--gcb-navy); margin-bottom: 4px; }
.ob-tile p { font-size: 13px; color: var(--gcb-86); line-height: 1.5; }
