/* Public "Edit for RebookMedia" page (app/views/editors.cfm) and its application form (app/views/editors/apply.cfm). */
.rbj { --rbj-ink: #111827; --rbj-muted: #4B5563; --rbj-line: #E5E7EB; --rbj-blue: #1A56DB; --rbj-blue-dark: #1E429F; --rbj-orange: #C2410C;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--rbj-ink); background: #ffffff; }
.rbj *, .rbj *::before, .rbj *::after { box-sizing: border-box; }
.rbj [hidden] { display: none !important; }
.rbj h1, .rbj h2, .rbj h3, .rbj p { margin: 0; }
.rbj a { color: var(--rbj-blue); }
.rbj a:hover { color: var(--rbj-blue-dark); }
.rbj-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.rbj-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px; font-weight: 600; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; }
.rbj a.rbj-btn-primary, .rbj button.rbj-btn-primary { background: var(--rbj-blue); color: #ffffff; }
.rbj a.rbj-btn-primary:hover, .rbj button.rbj-btn-primary:hover { background: var(--rbj-blue-dark); color: #ffffff; }
.rbj a.rbj-btn-light { background: #ffffff; color: var(--rbj-ink); border: 1px solid #D1D5DB; }
.rbj a.rbj-btn-light:hover { background: #F9FAFB; color: var(--rbj-ink); }
.rbj-tag { align-self: flex-start; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rbj-orange); background: #FFF7ED; border: 1px solid #FED7AA; padding: 6px 12px; border-radius: 999px; }
.rbj-h2 { font-size: 36px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.rbj-lead { font-size: 17px; line-height: 1.65; color: var(--rbj-muted); }

/* hero */
.rbj-hero { background: #F8FAFC; border-bottom: 1px solid var(--rbj-line); }
.rbj-hero .rbj-wrap { padding-top: 72px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.rbj-hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.rbj-hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -.025em; font-weight: 800; }
.rbj-hero-sub { font-size: 19px; line-height: 1.6; color: #374151; max-width: 560px; }
.rbj-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.rbj-note { font-size: 14px; color: var(--rbj-muted); }
.rbj-hero-art { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.rbj-card { background: #ffffff; border: 1px solid var(--rbj-line); border-radius: 16px; padding: 22px; box-shadow: 0 12px 32px rgba(15, 23, 42, .08); display: flex; flex-direction: column; gap: 16px; }
.rbj-job-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rbj-who { display: flex; align-items: center; gap: 12px; }
.rbj-avatar { width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.rbj-pill { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.rbj-facts { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.rbj-facts div { display: flex; flex-direction: column; gap: 4px; }
.rbj-facts span:first-child { color: var(--rbj-muted); }
.rbj-facts span:last-child { font-weight: 600; white-space: nowrap; }
.rbj-sets { display: flex; gap: 8px; }
.rbj-set { flex: 1; position: relative; height: 78px; border-radius: 10px; overflow: hidden; background: #CBD5E1 url(/public/assets/images/trending/realestate.jpg) no-repeat; background-size: 260%; }
.rbj-set-1 { background-position: 0% 70%; }
.rbj-set-2 { background-position: 55% 45%; }
.rbj-set-3 { background-position: 75% 80%; }
.rbj-set span { position: absolute; left: 8px; bottom: 8px; font-size: 11px; font-weight: 600; color: #1F2937; background: rgba(255, 255, 255, .9); padding: 2px 6px; border-radius: 4px; }
.rbj-card-btns { display: flex; gap: 10px; }
.rbj-card-btns span { flex: 1; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border-radius: 10px; font-weight: 600; font-size: 14px; text-align: center; }
.rbj-paid { align-self: flex-end; background: #ffffff; border: 1px solid var(--rbj-line); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 20px rgba(15, 23, 42, .06); font-size: 14px; }

/* benefits */
.rbj-benefits { border-bottom: 1px solid var(--rbj-line); }
.rbj-benefits .rbj-wrap { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.rbj-benefit { display: flex; flex-direction: column; gap: 10px; }
.rbj-benefit h3 { font-size: 18px; font-weight: 700; }
.rbj-benefit p { font-size: 15px; line-height: 1.6; color: var(--rbj-muted); }
.rbj-icon { width: 44px; height: 44px; border-radius: 12px; background: #EFF6FF; color: var(--rbj-blue); display: inline-flex; align-items: center; justify-content: center; }

/* how it works */
.rbj-how .rbj-wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.rbj-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.rbj-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.rbj-step { border: 1px solid var(--rbj-line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: #ffffff; }
.rbj-step-art { height: 190px; padding: 22px; display: flex; align-items: center; justify-content: center; }
.rbj-step-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.rbj-step-body .rbj-step-n { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rbj-step-body h3 { font-size: 19px; font-weight: 700; }
.rbj-step-body p { font-size: 15px; line-height: 1.6; color: var(--rbj-muted); }
.rbj-mini { width: 100%; max-width: 230px; background: #ffffff; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 11px; }
.rbj-mini b { font-weight: 700; }
.rbj-mini-field { height: 26px; border: 1px solid #DBEAFE; border-radius: 6px; display: flex; align-items: center; padding: 0 8px; color: #374151; }
.rbj-chip { font-size: 10px; font-weight: 600; padding: 3px 7px; border-radius: 999px; }
.rbj-mini-btn { height: 24px; border-radius: 6px; color: #ffffff; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.rbj-row { display: flex; justify-content: space-between; gap: 8px; }
.rbj-ref { background: #ffffff; border-radius: 10px; box-shadow: 0 8px 20px rgba(194, 65, 12, .12); padding: 10px 12px; display: flex; align-items: center; gap: 8px; font-size: 11px; }
.rbj-ref .rbj-avatar { width: 26px; height: 26px; font-size: 10px; }

/* earn */
.rbj-earn { background: #0F172A; color: #ffffff; }
.rbj-earn .rbj-wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.rbj-earn-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.rbj-earn h2 { font-size: 40px; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.rbj-earn p { font-size: 17px; line-height: 1.65; color: #CBD5E1; }
.rbj-earn-kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #FDBA74; }
.rbj-earn-grid { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.rbj-earn-box { background: #1E293B; border: 1px solid #334155; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.rbj-earn-box span:nth-child(1) { font-size: 13px; font-weight: 600; color: #FDBA74; }
.rbj-earn-box span:nth-child(2) { font-size: 16px; font-weight: 600; }
.rbj-earn-box span:nth-child(3) { font-size: 14px; line-height: 1.5; color: #CBD5E1; }

/* global editors */
.rbj-global { background: #FFF7ED; border-bottom: 1px solid #FED7AA; }
.rbj-global .rbj-wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; }
.rbj-global-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rbj-global-list { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rbj-global-list li { display: flex; gap: 12px; align-items: flex-start; background: #ffffff; border: 1px solid #FED7AA; border-radius: 12px; padding: 16px; font-size: 15px; line-height: 1.55; }
.rbj-global-list svg { flex-shrink: 0; margin-top: 2px; color: var(--rbj-orange); }

/* faq + closing */
.rbj-faq .rbj-wrap { max-width: 860px; padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.rbj-faq-list { border-top: 1px solid var(--rbj-line); }
.rbj-faq details { border-bottom: 1px solid var(--rbj-line); padding: 20px 0; }
.rbj-faq summary { font-size: 17px; font-weight: 600; cursor: pointer; }
.rbj-faq details p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--rbj-muted); }
.rbj-close { background: #F8FAFC; border-top: 1px solid var(--rbj-line); }
.rbj-close .rbj-wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.rbj-close h2 { font-size: 30px; letter-spacing: -.02em; font-weight: 800; }
.rbj-foot { border-top: 1px solid var(--rbj-line); }
.rbj-foot .rbj-wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--rbj-muted); }
.rbj-foot .rbj-wrap span:last-child { display: flex; flex-wrap: wrap; gap: 20px; }
.rbj-foot a { color: var(--rbj-muted); }

/* application form */
.rbj-form-page { background: #F8FAFC; }
.rbj-form-page main { max-width: 880px; margin: 0 auto; padding: 48px 24px 72px; display: flex; flex-direction: column; gap: 24px; }
.rbj-form-page h1 { font-size: 36px; letter-spacing: -.02em; font-weight: 800; }
/* Editor Referral Program terms (/editors/referral-terms) */
.rbj-terms main { max-width: 760px; }
.rbj-terms section { display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.7; color: #334155; }
.rbj-terms h2 { font-size: 20px; font-weight: 700; color: #0F172A; margin-top: 4px; }
.rbj-terms ul { margin: 0; padding-left: 22px; list-style: disc; display: flex; flex-direction: column; gap: 6px; }
.rbj-terms a { color: #2563EB; }
/* the site's signup.css sets form { width: 450px } on every public page */
.rbj form.rbj-form { width: 100%; max-width: none; display: flex; flex-direction: column; gap: 20px; }
.rbj-fs { width: 100%; margin: 0; background: #ffffff; border: 1px solid var(--rbj-line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rbj-fs legend { font-size: 18px; font-weight: 700; padding: 0 6px; }
.rbj-fs.is-global { background: #FFF7ED; border-color: #FED7AA; }
.rbj-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.rbj-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.rbj-field .rbj-opt { font-weight: 400; color: var(--rbj-muted); }
.rbj-input { width: 100%; min-height: 44px; border: 1px solid #D1D5DB; border-radius: 10px; padding: 0 12px; font: 400 15px Inter, system-ui, sans-serif; color: var(--rbj-ink); background: #F9FAFB; }
.rbj-input:focus { outline: 2px solid #93C5FD; outline-offset: 1px; border-color: var(--rbj-blue); background: #ffffff; }
.rbj-input:disabled { color: #6B7280; cursor: not-allowed; }
textarea.rbj-input { min-height: 120px; padding: 12px; line-height: 1.55; resize: vertical; }
.rbj-help { font-weight: 400; font-size: 13px; color: var(--rbj-muted); }
.rbj-err-line { font-weight: 500; font-size: 13px; color: #B91C1C; }
.rbj-field.has-err .rbj-input { border-color: #DC2626; background: #FEF2F2; }
.rbj-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rbj-chips label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #D1D5DB; background: #ffffff; font-size: 14px; font-weight: 500; cursor: pointer; }
.rbj-chips label.is-on { border: 2px solid var(--rbj-blue); background: #EFF6FF; font-weight: 600; padding: 0 13px; }
.rbj .rbj-chips input, .rbj .rbj-check input { width: 18px; height: 18px; accent-color: var(--rbj-blue); flex-shrink: 0; margin: 0; }
.rbj-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; font-weight: 400; }
.rbj-check input { width: 20px; height: 20px; margin-top: 2px; }
.rbj-pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rbj-pair { border: 1px solid var(--rbj-line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.rbj-pair-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.rbj-pair-pics { display: flex; gap: 8px; }
.rbj-pic { flex: 1; position: relative; height: 96px; border-radius: 8px; border: 2px dashed #CBD5E1; background: #F9FAFB center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--rbj-blue); cursor: pointer; overflow: hidden; }
.rbj-pic.has-pic { border-style: solid; border-color: var(--rbj-line); color: transparent; }
.rbj-pic input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rbj-pic em { position: absolute; left: 6px; bottom: 6px; font-style: normal; font-size: 11px; font-weight: 600; color: #1F2937; background: rgba(255, 255, 255, .9); padding: 2px 6px; border-radius: 4px; }
.rbj-add-pair { min-height: 120px; border: 2px dashed #CBD5E1; border-radius: 12px; background: #F9FAFB; color: var(--rbj-blue); font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.rbj-link-btn { border: 0; background: none; padding: 4px; color: #B91C1C; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }
.rbj-submit { display: flex; flex-direction: column; gap: 16px; background: #ffffff; border: 1px solid var(--rbj-line); border-radius: 16px; padding: 24px 28px; }
.rbj-submit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.rbj-alert { border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.5; background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.rbj-done { background: #ffffff; border: 1px solid var(--rbj-line); border-radius: 16px; padding: 40px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.rbj-done-icon { width: 64px; height: 64px; border-radius: 999px; background: #D1FAE5; color: #047857; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 640px) {
  .rbj-hero .rbj-wrap { padding-top: 40px; padding-bottom: 48px; gap: 36px; }
  .rbj-hero h1 { font-size: 36px; }
  .rbj-h2, .rbj-form-page h1 { font-size: 28px; }
  .rbj-earn h2 { font-size: 30px; }
  .rbj-close h2 { font-size: 24px; }
  .rbj-how .rbj-wrap, .rbj-earn .rbj-wrap, .rbj-global .rbj-wrap, .rbj-faq .rbj-wrap { padding-top: 56px; padding-bottom: 56px; }
  .rbj-fs { padding: 20px 16px; }
  .rbj-actions .rbj-btn, .rbj-close .rbj-btn { width: 100%; }
  .rbj-facts span:last-child { white-space: normal; }
}
