/* ============================================================
   NORTHBOUND REACH — Onboarding Form Styles
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ob-accent: #D4642A;
  --ob-accent-hover: #BF5420;
  --ob-text: #1A1A1A;
  --ob-text-secondary: #555;
  --ob-text-muted: #888;
  --ob-border: #E0D5C5;
  --ob-border-light: #EDE5D8;
  --ob-bg: #FAF9F7;
  --ob-card: #ffffff;
  --ob-radius: 12px;
  --ob-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ob-font-heading: 'Playfair Display', Georgia, serif;
}

html, body {
  height: 100%;
  font-family: var(--ob-font);
  font-size: 15px;
  color: var(--ob-text);
  background: var(--ob-bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */

.ob-header {
  background: #fff;
  border-bottom: 1px solid var(--ob-border-light);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
}

.ob-header-inner {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.ob-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ob-brand {
  font-family: var(--ob-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--ob-text);
  letter-spacing: -0.3px;
}

/* ── Main ── */

.ob-main {
  min-height: calc(100vh - 56px - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.ob-container {
  max-width: 720px;
  width: 100%;
}

/* ── Intro (vertically centered) ── */

.ob-intro {
  text-align: center;
  padding: 20px 0;
}

.ob-hero-title {
  font-family: var(--ob-font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--ob-text);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.ob-hero-sub {
  font-size: 17px;
  color: var(--ob-text-secondary);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 36px;
}

/* ── Progress ── */

.ob-progress {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ob-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--ob-border-light);
  border-radius: 3px;
  overflow: hidden;
}

.ob-progress-fill {
  height: 100%;
  background: var(--ob-accent);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 33.33%;
}

.ob-progress-label {
  font-size: 13px;
  color: var(--ob-text-muted);
  white-space: nowrap;
  font-weight: 500;
}

/* ── Steps ── */

.ob-step {
  background: var(--ob-card);
  border: 1px solid var(--ob-border-light);
  border-radius: var(--ob-radius);
  padding: 36px 32px;
}

.ob-step-title {
  font-family: var(--ob-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--ob-text);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.ob-step-desc {
  font-size: 14px;
  color: var(--ob-text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Fields ── */

.ob-field {
  margin-bottom: 24px;
}

.ob-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ob-text);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.ob-req {
  color: var(--ob-accent);
}

.ob-field-hint {
  font-size: 13px;
  color: var(--ob-text-muted);
  line-height: 1.5;
  margin: 4px 0 12px;
}

.ob-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--ob-font);
  color: var(--ob-text);
  background: #fff;
  border: 1px solid var(--ob-border);
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.ob-input:focus {
  border-color: var(--ob-accent);
  box-shadow: 0 0 0 3px rgba(212, 100, 42, 0.1);
}

.ob-input::placeholder {
  color: #bbb;
}

.ob-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

select.ob-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.ob-hint {
  display: block;
  font-size: 12px;
  color: var(--ob-text-muted);
  margin-top: 4px;
}

.ob-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .ob-row { grid-template-columns: 1fr; }
}

/* ── Volume selector cards ── */

.ob-volume-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 600px) {
  .ob-volume-grid { grid-template-columns: repeat(2, 1fr); }
}

.ob-volume-card {
  display: block;
  cursor: pointer;
}

.ob-volume-card input[type="radio"] {
  display: none;
}

.ob-volume-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  border: 2px solid var(--ob-border-light);
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  text-align: center;
}

.ob-volume-card:hover .ob-volume-inner {
  border-color: var(--ob-border);
}

.ob-volume-card.ob-volume-active .ob-volume-inner,
.ob-volume-card input:checked + .ob-volume-inner {
  border-color: var(--ob-accent);
  background: rgba(212, 100, 42, 0.05);
  transform: scale(1.02);
}

.ob-volume-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--ob-text);
  line-height: 1;
}

.ob-volume-label {
  font-size: 12px;
  color: var(--ob-text-muted);
  margin-top: 4px;
}

/* ── Info box ── */

.ob-info-box {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: #FFF8F1;
  border: 1px solid #F9D4A8;
  border-radius: 10px;
  margin-bottom: 24px;
}

.ob-info-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.ob-info-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ob-text);
  margin-bottom: 4px;
}

.ob-info-text p {
  font-size: 13px;
  color: var(--ob-text-secondary);
  line-height: 1.5;
}

.ob-info-text em {
  color: var(--ob-accent);
  font-style: normal;
  font-weight: 600;
}

/* ── Toggle Cards ── */

.ob-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .ob-toggle-group { grid-template-columns: 1fr; }
}

.ob-toggle-card {
  display: block;
  padding: 16px;
  border: 2px solid var(--ob-border-light);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.ob-toggle-card input[type="radio"] {
  display: none;
}

.ob-toggle-card:hover {
  border-color: var(--ob-border);
}

.ob-toggle-card.ob-toggle-active {
  border-color: var(--ob-accent);
  background: rgba(212, 100, 42, 0.04);
}

.ob-toggle-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ob-text);
  margin-bottom: 4px;
}

.ob-toggle-content span {
  font-size: 12px;
  color: var(--ob-text-muted);
  line-height: 1.4;
}

/* ── Navigation ── */

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

/* ── Buttons ── */

.ob-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--ob-font);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.ob-btn:active {
  transform: scale(0.98);
}

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

.ob-btn-primary:hover {
  background: var(--ob-accent-hover);
  box-shadow: 0 4px 12px rgba(212, 100, 42, 0.25);
}

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

.ob-btn-ghost {
  background: transparent;
  color: var(--ob-text-secondary);
  border: 1px solid var(--ob-border);
}

.ob-btn-ghost:hover {
  background: var(--ob-border-light);
}

/* ── Success ── */

.ob-success {
  text-align: center;
  padding: 40px 0;
}

.ob-success-gif {
  margin-bottom: 28px;
}

.ob-success-gif img {
  max-width: 100%;
  height: auto;
}

.ob-success-title {
  font-family: var(--ob-font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--ob-text);
  margin-bottom: 12px;
}

.ob-success-text {
  font-size: 16px;
  color: var(--ob-text-secondary);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto;
}

/* ── Footer ── */

.ob-footer {
  text-align: center;
  padding: 14px 24px;
  font-size: 12px;
  color: var(--ob-text-muted);
  border-top: 1px solid var(--ob-border-light);
}

/* ── Submitting state ── */

.ob-btn-primary.ob-submitting {
  pointer-events: none;
  opacity: 0.7;
}

/* ── Error toast ── */

.ob-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #C94432;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  animation: ob-toast-in 0.2s ease;
}

@keyframes ob-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
