/* ============================================
   ESTATERATE — AGENT ONBOARDING STYLESHEET
   ============================================ */

.ob-wrap { min-height: 100vh; background: #f5f4f1; }

.ob-nav {
  background: #0f1a14; padding: 0 2rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.ob-nav .logo { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; }
.ob-nav .logo span { color: #1D9E75; }
.ob-nav-agent { display: flex; align-items: center; gap: 8px; }
.ob-nav-avatar { width: 30px; height: 30px; border-radius: 50%; background: #1D9E75; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: #fff; }
.ob-nav-name { font-size: 13px; color: rgba(255,255,255,0.55); }

.ob-progress { background: #fff; border-bottom: 1px solid #e8e6e1; padding: 1.25rem 2rem; }
.ob-progress-inner { max-width: 740px; margin: 0 auto; }
.ob-steps { display: flex; align-items: center; gap: 0; }
.ob-step { display: flex; align-items: center; gap: 8px; flex: 1; }
.ob-step:last-child { flex: none; }
.ob-step-dot {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0;
  border: 2px solid transparent;
}
.ob-step-dot.done { background: #E1F5EE; color: #0F6E56; border-color: #1D9E75; }
.ob-step-dot.active { background: #1D9E75; color: #fff; border-color: #1D9E75; }
.ob-step-dot.pending { background: #fff; color: #ccc; border-color: #e8e6e1; }
.ob-step-label { font-size: 13px; font-weight: 500; }
.ob-step-label.active { color: #1D9E75; }
.ob-step-label.done { color: #888; }
.ob-step-label.pending { color: #ccc; }
.ob-step-line { flex: 1; height: 2px; margin: 0 8px; }
.ob-step-line.done { background: #1D9E75; }
.ob-step-line.pending { background: #e8e6e1; }

.ob-body { max-width: 740px; margin: 0 auto; padding: 2rem; }

.ob-page-header { margin-bottom: 1.75rem; }
.ob-page-header h1 { font-size: 24px; font-weight: 700; font-family: 'Fraunces', serif; margin-bottom: 6px; color: #1a1a1a; }
.ob-page-header p { font-size: 15px; color: #888; line-height: 1.6; }

.ob-card { background: #fff; border: 1px solid #e8e6e1; border-radius: 14px; padding: 1.5rem; margin-bottom: 1.25rem; }
.ob-card-title { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.ob-card-sub { font-size: 13px; color: #999; margin-bottom: 1.25rem; }

.ob-label { font-size: 13px; font-weight: 500; color: #555; margin-bottom: 6px; display: block; }
.ob-input {
  width: 100%; border: 1px solid #e8e6e1; border-radius: 9px;
  padding: 10px 13px; font-size: 14px; color: #1a1a1a; background: #fff;
  transition: border-color 0.15s; font-family: 'DM Sans', sans-serif;
}
.ob-input:focus { outline: none; border-color: #1D9E75; box-shadow: 0 0 0 3px rgba(29,158,117,0.08); }
.ob-textarea { min-height: 90px; resize: vertical; }

.ob-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ob-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.ob-field { display: flex; flex-direction: column; }

.ob-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ob-check-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #444; cursor: pointer; }
.ob-check-label input { accent-color: #1D9E75; width: 15px; height: 15px; }

.ob-service-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.ob-service-opt { display: none; }
.ob-service-btn {
  padding: 8px 16px; border: 1px solid #e8e6e1; border-radius: 8px;
  font-size: 14px; cursor: pointer; background: #fff; color: #555; transition: all 0.15s;
}
.ob-service-opt:checked + .ob-service-btn { border-color: #1D9E75; background: #E1F5EE; color: #085041; font-weight: 500; }

.ob-upload-zone {
  border: 2px dashed #e8e6e1; border-radius: 12px; padding: 2rem;
  text-align: center; cursor: pointer; transition: all 0.15s;
}
.ob-upload-zone:hover { border-color: #1D9E75; background: #f7fdf9; }
.ob-upload-zone i { font-size: 28px; color: #1D9E75; margin-bottom: 8px; display: block; }
.ob-upload-zone p { font-size: 14px; font-weight: 500; color: #1a1a1a; margin-bottom: 4px; }
.ob-upload-zone span { font-size: 13px; color: #999; }

.ob-logo-preview { display: none; align-items: center; gap: 12px; margin-top: 12px; }
.ob-logo-preview img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; border: 1px solid #e8e6e1; }
.ob-logo-remove { font-size: 13px; color: #E05555; background: none; border: none; cursor: pointer; padding: 0; margin-top: 3px; display: block; }

.ob-tag-container {
  min-height: 50px; padding: 10px; border: 1px solid #e8e6e1; border-radius: 9px;
  background: #fafaf8; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start;
}
.ob-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: #E1F5EE; color: #085041; border-radius: 20px;
  padding: 4px 10px; font-size: 13px; font-weight: 500;
}
.ob-tag button { background: none; border: none; color: #085041; cursor: pointer; font-size: 15px; line-height: 1; padding: 0; }
.ob-tag-input-row { display: flex; gap: 8px; margin-bottom: 10px; }

/* FEE TABLE */
.ob-fee-header { display: grid; grid-template-columns: 1fr 110px 130px 50px; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #f0ede8; margin-bottom: 4px; }
.ob-fee-header span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: #aaa; font-weight: 500; }
.ob-fee-row { display: grid; grid-template-columns: 1fr 110px 130px 50px; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f0ede8; }
.ob-fee-row:last-child { border-bottom: none; }
.ob-fee-name { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.ob-fee-desc { font-size: 12px; color: #aaa; margin-top: 2px; }
.ob-fee-amount { display: flex; align-items: center; gap: 5px; }
.ob-fee-amount input { width: 72px; border: 1px solid #e8e6e1; border-radius: 8px; padding: 8px 10px; font-size: 14px; text-align: right; }
.ob-fee-amount input:focus { outline: none; border-color: #1D9E75; }
.ob-fee-amount span { font-size: 13px; color: #999; }

/* TOGGLE */
.ob-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.ob-toggle input { opacity: 0; width: 0; height: 0; }
.ob-toggle-track {
  position: absolute; inset: 0; background: #e8e6e1; border-radius: 22px; cursor: pointer; transition: 0.2s;
}
.ob-toggle input:checked ~ .ob-toggle-track { background: #1D9E75; }
.ob-toggle-thumb {
  position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%;
  top: 3px; left: 3px; transition: 0.2s; pointer-events: none;
}
.ob-toggle input:checked ~ .ob-toggle-thumb { left: 21px; }

/* TIE-IN */
.ob-tiein-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.ob-tiein-opt { padding: 8px 16px; border: 1px solid #e8e6e1; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all 0.15s; background: #fff; color: #555; }
.ob-tiein-opt.selected { border-color: #1D9E75; background: #E1F5EE; color: #085041; font-weight: 500; }

/* LIVE PREVIEW */
.ob-preview { background: #0f1a14; border-radius: 13px; padding: 1.25rem; }
.ob-preview-title { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 1rem; }
.ob-preview-agent { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.ob-preview-av { width: 38px; height: 38px; border-radius: 9px; background: #1D9E75; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0; }
.ob-preview-name { font-size: 15px; font-weight: 600; color: #fff; }
.ob-preview-area { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 2px; }
.ob-preview-badge { margin-left: auto; background: #E1F5EE; color: #085041; font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 500; }
.ob-preview-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.ob-preview-row:last-child { border-bottom: none; }
.ob-preview-row span:first-child { color: rgba(255,255,255,0.4); }
.ob-preview-val { color: #fff; font-weight: 500; }
.ob-preview-val.good { color: #1D9E75; }
.ob-preview-val.warn { color: #EF9F27; }

/* CALLOUT */
.ob-callout { background: #E1F5EE; border: 1px solid #9FE1CB; border-radius: 10px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 1.25rem; }
.ob-callout i { color: #0F6E56; font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.ob-callout p { font-size: 13px; color: #085041; line-height: 1.6; }

.ob-info { font-size: 12px; color: #aaa; margin-top: 6px; }
.ob-info a { color: #1D9E75; }

/* SECTION TABS */
.ob-section-tabs { display: flex; gap: 0; border-bottom: 1px solid #e8e6e1; margin-bottom: 1.5rem; }
.ob-section-tab { padding: 10px 20px; font-size: 14px; font-weight: 500; color: #999; border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; }
.ob-section-tab.active { color: #1D9E75; border-bottom-color: #1D9E75; }

/* FOOTER ACTIONS */
.ob-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; }
.ob-btn { background: #1D9E75; color: #fff; border: none; border-radius: 9px; padding: 11px 22px; font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: 'DM Sans', sans-serif; }
.ob-btn:hover { background: #0F6E56; }
.ob-btn-ghost { background: transparent; color: #888; border: 1px solid #e8e6e1; border-radius: 9px; padding: 11px 22px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: 'DM Sans', sans-serif; }
.ob-btn-ghost:hover { border-color: #ccc; color: #555; }

/* DASHBOARD */
.ob-dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.ob-dash-greeting h2 { font-size: 22px; font-weight: 700; font-family: 'Fraunces', serif; color: #1a1a1a; }
.ob-dash-greeting p { font-size: 13px; color: #999; margin-top: 3px; }
.ob-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 1.25rem; }
.ob-stat { background: #fff; border: 1px solid #e8e6e1; border-radius: 12px; padding: 1.1rem 1.25rem; }
.ob-stat-num { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700; color: #1a1a1a; }
.ob-stat-num.green { color: #1D9E75; }
.ob-stat-lbl { font-size: 12px; color: #aaa; margin-top: 4px; }
.ob-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.ob-next-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0ede8; }
.ob-next-item:last-child { border-bottom: none; }
.ob-next-dot { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; }
.ob-next-dot.done { background: #E1F5EE; }
.ob-next-dot.todo { background: #fff; border: 1px solid #e8e6e1; }
.ob-next-title { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.ob-next-sub { font-size: 12px; color: #aaa; margin-top: 2px; }
.ob-leads-empty { text-align: center; padding: 2.5rem 1rem; }
.ob-leads-empty i { font-size: 36px; color: #ddd; margin-bottom: 10px; display: block; }
.ob-leads-empty p { font-size: 14px; color: #aaa; }

@media (max-width: 600px) {
  .ob-grid-2, .ob-grid-3 { grid-template-columns: 1fr; }
  .ob-stat-grid { grid-template-columns: 1fr 1fr; }
  .ob-dash-grid { grid-template-columns: 1fr; }
  .ob-fee-header { display: none; }
  .ob-fee-row { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .ob-steps { gap: 0; }
}
