/* Publish a Business Report (/businessreports/submit). Builds on the Schedule a Meeting kit
   (/apply/schedule-a-meeting/membership-form-styles.css): same split photo/panel layout, chapters, type and buttons.
   Only what this form adds lives here. The Cleaner, 2026-12-01. */

:root {
  --x-yellow: #f2c230;
  --x-yellow-2: #e0a800;
  --x-yellow-3: #ffd95a;
  --x-purple: var(--x-yellow);
  --x-purple-2: var(--x-yellow-2);
  --x-rainbow: linear-gradient(90deg, #e0a800, #ffd95a, #f2c230, #b88a00, #ffd95a, #e0a800);
  --brf-card: rgba(246, 241, 231, 0.045);
  --brf-card-2: rgba(246, 241, 231, 0.08);
  --brf-line: rgba(246, 241, 231, 0.16);
  --brf-ok: #7fd6a4;
}

/* Brand, buttons and focus: the meeting form's yellow accent */
.x-brand span { color: var(--x-yellow); font-family: "Marcellus", serif; font-weight: 400; font-synthesis: none; text-transform: uppercase; letter-spacing: 0.01em; -webkit-text-stroke: 0.028em currentColor; paint-order: stroke fill; }
.brf-home { display: inline-flex; align-items: center; gap: inherit; color: inherit; text-decoration: none; }
.x-app :is(button, a, [tabindex], summary):focus-visible { outline: 2px solid var(--x-yellow); outline-offset: 3px; }
.x-app :is(input, textarea, select):focus-visible, .x-app .x-screen:focus-visible, .x-app .x-stage:focus-visible { outline: none; }
.x-ok, .is-full .x-ok { background: var(--x-yellow); color: var(--x-navy); text-shadow: none; transition: none; text-decoration: none; }
.x-ok:focus-visible, .is-full .x-ok:focus-visible, .x-ok:active, .is-full .x-ok:active { background-color: var(--x-raspberry); color: var(--x-ivory); }
@media (hover: hover) and (pointer: fine) { .x-ok:hover, .is-full .x-ok:hover { background-color: var(--x-raspberry); color: var(--x-ivory); } }
.x-ok[disabled], .x-ok[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.x-ok .brf-spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: brf-spin 0.8s linear infinite; }
@keyframes brf-spin { to { transform: rotate(360deg); } }
a.x-link { text-decoration: none; }

.brf-skip { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--x-yellow); color: var(--x-navy); font: 500 13px var(--x-sans); text-decoration: none; }
.brf-skip:focus { top: 12px; }

/* Photo captions and chapter numbers */
.x-cap { max-width: 34ch; }
.photo-slot img { object-position: 50% 50%; }
.photo-slot[data-chapter~="welcome"] img { object-position: 62% 50%; }
.photo-slot[data-chapter~="3"] img { object-position: 60% 50%; }

/* Chapter rail: where you are, one tap to any chapter */
.brf-rail { flex: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--x-pad) 6px; margin-top: -34px; min-height: 40px; align-items: center; }
.brf-rail::-webkit-scrollbar { display: none; }
.brf-rail button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border: 1px solid var(--brf-line); border-radius: 999px; background: transparent; color: rgba(246, 241, 231, 0.72); font: 400 12px/1 var(--x-sans); letter-spacing: 0.08em; cursor: pointer; white-space: nowrap; }
.brf-rail button b { font-weight: 500; color: var(--x-gold); letter-spacing: 0.12em; }
.brf-rail button[aria-current="step"] { border-color: var(--x-yellow); color: var(--x-ivory); background: rgba(242, 194, 48, 0.1); }
.brf-rail button.is-done b { color: var(--brf-ok); }
.brf-rail button:hover { color: var(--x-ivory); border-color: rgba(246, 241, 231, 0.4); }
.x-app.is-full .brf-rail { display: none; }
.x-app:not(.is-full) .x-prog { display: none; }

/* Fields */
.x-screen { max-width: 640px; }
.x-screen--wide { max-width: 760px; }
.brf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; margin-bottom: 26px; }
.brf-grid .brf-span { grid-column: 1 / -1; }
.brf-field { position: relative; min-width: 0; }
.brf-field .x-input { font-size: 24px; min-height: 48px; }
.brf-field .x-area { font-size: 19px; min-height: 108px; }
.brf-field--big .x-input { font-size: 32px; }
select.x-input { padding-right: 34px; font-size: 22px; cursor: pointer; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c4a66a' stroke-width='1.2'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") no-repeat right 4px center; }
select.x-input option { background: var(--x-black); color: var(--x-ivory); font: 16px var(--x-sans); }
.brf-sub { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--x-ink-2); }
.brf-field.is-bad .x-input, .brf-field.is-bad .x-area { border-bottom-color: #ff9b85; box-shadow: 0 1px 0 0 #ff9b85; }
.brf-ferr { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: #ff9b85; }
.brf-ferr:empty { display: none; }
.brf-count { position: absolute; right: 0; top: 0; font: 400 11px var(--x-sans); letter-spacing: 0.08em; color: var(--x-ink-2); }

/* Typeahead (combobox) */
.brf-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: #12161d; border: 1px solid var(--brf-line); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7); max-height: 320px; overflow-y: auto; }
.brf-list[hidden] { display: none; }
.brf-opt { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-family: var(--x-sans); }
.brf-opt[aria-selected="true"], .brf-opt:hover { background: var(--brf-card-2); }
.brf-opt img, .brf-opt .brf-ini { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: #fff; }
.brf-opt .brf-ini { display: grid; place-items: center; background: var(--brf-card-2); color: var(--x-gold); font: 400 16px var(--x-serif); }
.brf-opt b { display: block; font-weight: 500; font-size: 15px; color: var(--x-ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brf-opt small { display: block; font-size: 12px; color: var(--x-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brf-tag { font: 500 10px var(--x-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--x-navy); background: var(--x-gold); padding: 3px 7px; border-radius: 999px; }
.brf-opt--note { display: block; color: var(--x-ink-2); font-size: 13px; cursor: default; }
.brf-opt--note:hover { background: none; }

/* Linked company / existing report notices */
.brf-note { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--brf-line); border-radius: 14px; background: var(--brf-card); font-size: 14px; line-height: 1.6; color: rgba(246, 241, 231, 0.86); }
.brf-note img { width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: contain; background: #fff; }
.brf-note b { color: var(--x-ivory); font-weight: 500; }
.brf-note a { color: var(--x-yellow); }
.brf-note--warn { border-color: rgba(242, 194, 48, 0.55); background: rgba(242, 194, 48, 0.07); }
.brf-note--err { border-color: rgba(255, 155, 133, 0.6); background: rgba(255, 155, 133, 0.07); }
.brf-note .x-link { min-height: 32px; }

/* Logo preview */
.brf-logo { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.brf-logo span { width: 64px; height: 64px; border: 1px solid var(--brf-line); border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.brf-logo img { max-width: 88%; max-height: 88%; }
.brf-logo small { color: var(--x-ink-2); font-size: 12.5px; }

/* Repeatable rows */
.brf-rows { display: grid; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.brf-row { border: 1px solid var(--brf-line); border-radius: 16px; background: var(--brf-card); transition: border-color 0.2s ease; }
.brf-row.is-open { border-color: rgba(242, 194, 48, 0.5); background: var(--brf-card-2); }
.brf-row.is-bad { border-color: rgba(255, 155, 133, 0.7); }
.brf-row__head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; }
.brf-row__sum { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 8px 0; text-align: left; background: none; border: 0; color: var(--x-ivory); cursor: pointer; font-family: var(--x-sans); }
.brf-row__n { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--x-gold); display: grid; place-items: center; font: 500 11px var(--x-sans); color: var(--x-gold); }
.brf-row__sum b { font: 400 21px/1.2 var(--x-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brf-row__sum small { font-size: 12.5px; color: var(--x-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brf-row__sum em { font-style: normal; color: var(--x-gold); }
.brf-row__tools { flex: none; display: flex; gap: 4px; }
.brf-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--x-ink-2); cursor: pointer; }
.brf-icon:hover:not([disabled]) { color: var(--x-ivory); border-color: var(--brf-line); }
.brf-icon[disabled] { opacity: 0.25; cursor: default; }
.brf-icon--rm:hover:not([disabled]) { color: #ff9b85; }
.brf-row__body { padding: 4px 18px 20px; }
.brf-row__body .brf-grid { margin-bottom: 4px; gap: 18px 24px; }
.brf-row__body .x-input { font-size: 19px; min-height: 42px; }
.brf-row__body .x-area { font-size: 17px; min-height: 84px; }
.brf-row__body select.x-input { font-size: 18px; }
.brf-add { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px dashed rgba(242, 194, 48, 0.6); border-radius: 999px; background: transparent; color: var(--x-yellow); font: 500 12px var(--x-sans); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }
.brf-add:hover:not([disabled]) { background: rgba(242, 194, 48, 0.08); }
.brf-add[disabled] { opacity: 0.4; cursor: default; }
.brf-empty { margin: 0 0 18px; padding: 22px 18px; border: 1px dashed var(--brf-line); border-radius: 16px; color: var(--x-ink-2); font-size: 15px; line-height: 1.6; text-align: center; }
.brf-sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.brf-pill { font: 500 11px var(--x-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--x-gold); }

/* M&A deal line: who bought whom */
.brf-deal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; font: 400 13px var(--x-sans); color: var(--x-ink-2); }
.brf-deal b { font: 400 17px var(--x-serif); color: var(--x-ivory); }
.brf-deal i { font-style: normal; color: var(--x-yellow); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }

/* Welcome and chapters */
.brf-ways { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 30px 0 0; padding: 0; list-style: none; font: 400 13px var(--x-sans); letter-spacing: 0.06em; color: rgba(246, 241, 231, 0.82); }
.brf-ways li::before { content: "—"; color: var(--x-gold); margin-right: 10px; }
.brf-resume { margin: 0 0 30px; }
.brf-chaplist { display: grid; gap: 6px; margin: 0 0 34px; padding: 0; list-style: none; font: 400 14px var(--x-sans); color: rgba(246, 241, 231, 0.82); }
.brf-chaplist b { color: var(--x-gold); font-weight: 500; margin-right: 10px; letter-spacing: 0.12em; }

/* Review */
.brf-meter { display: flex; align-items: center; gap: 16px; margin: 4px 0 18px; }
.brf-meter__ring { --p: 0; width: 72px; height: 72px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--x-yellow) calc(var(--p) * 1%), rgba(246, 241, 231, 0.12) 0); }
.brf-meter__ring span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--x-black); font: 400 20px var(--x-serif); color: var(--x-ivory); }
.brf-meter p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--x-ink-2); }
.brf-missing { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; }
.brf-missing li { font: 400 12px var(--x-sans); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--brf-line); color: var(--x-ink-2); }
.brf-rv { margin: 0 0 22px; border-top: 1px solid var(--x-hair-soft); }
.brf-rv__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--x-hair-soft); }
.brf-rv__row h3 { margin: 0 0 4px; font: 500 12px var(--x-sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--x-gold); }
.brf-rv__row p { margin: 0; font: 400 19px/1.4 var(--x-serif); color: var(--x-ivory); overflow-wrap: anywhere; }
.brf-rv__row p small { font: 400 13px var(--x-sans); color: var(--x-ink-2); }
.brf-rv__row .x-link { min-height: 32px; }
.brf-errs { margin: 0 0 22px; padding: 14px 18px; border: 1px solid rgba(255, 155, 133, 0.6); border-radius: 14px; background: rgba(255, 155, 133, 0.06); }
.brf-errs h3 { margin: 0 0 6px; font: 500 12px var(--x-sans); letter-spacing: 0.2em; text-transform: uppercase; color: #ff9b85; }
.brf-errs ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.brf-errs button { background: none; border: 0; padding: 0; color: var(--x-ivory); text-decoration: underline; text-decoration-color: #ff9b85; text-underline-offset: 3px; cursor: pointer; font: inherit; text-align: left; }
.brf-check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: rgba(246, 241, 231, 0.85); cursor: pointer; }
.brf-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--x-yellow); flex: none; }

/* Duplicate check */
.brf-dup { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--brf-line); border-radius: 14px; }
.brf-dup legend { padding: 0 6px; font: 500 12px var(--x-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--x-gold); }
.brf-dup label { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 15px; line-height: 1.5; cursor: pointer; }
.brf-dup input { margin-top: 4px; accent-color: var(--x-yellow); }
.brf-dup small { color: var(--x-ink-2); }
.brf-dup a { color: var(--x-yellow); }

/* Toast (undo, saved) */
.brf-toast { position: fixed; left: 50%; bottom: 28px; z-index: 40; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: 999px; background: var(--x-ivory); color: var(--x-navy); font: 400 14px var(--x-sans); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6); transition: opacity 0.2s ease, transform 0.2s ease; }
.brf-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.brf-toast button { background: none; border: 0; padding: 4px 0; color: var(--x-raspberry); font: 500 12px var(--x-sans); letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; }

/* Bottom bar: room for the support cluster */
.x-bottom { padding-right: 96px; }
.x-foot b { color: var(--brf-ok); font-weight: 400; }
#ma-support-cluster .ma-cl-tuck, #ma-support-cluster.ma-cl--tucked .ma-cl-tuck { left: -44px; width: 44px; }

@media (max-width: 820px) {
  .brf-rail { margin-top: -44px; padding-top: 0; }
  .x-app:not(.is-full) .x-photo { height: 22vh; }
  .x-app:not(.is-full) .x-panel { top: 22vh; }
  .x-app:not(.is-full) .x-cap { display: none; }
  .x-app:not(.is-full) .x-brand { top: 10px; }
  .x-app:not(.is-full) .x-brand > span { display: none; }
  .x-app:not(.is-full) .x-brand__logo { width: 40px; height: 40px; }
  /* Full-bleed screens on a phone: the text sits over the middle of the photo, so darken all of it */
  .x-app.is-full .x-veil { background: linear-gradient(to bottom, rgba(14, 27, 44, 0.55) 0%, rgba(14, 27, 44, 0.72) 40%, rgba(14, 27, 44, 0.82) 100%); }
  .x-app.is-full .x-eyebrow { letter-spacing: 0.22em; }
}
@media (max-width: 640px) {
  .brf-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .brf-field .x-input { font-size: 21px; }
  .brf-field--big .x-input { font-size: 26px; }
  .brf-row__head { padding-left: 12px; }
  .brf-row__sum b { font-size: 18px; }
  .brf-row__body { padding: 4px 14px 18px; }
  .brf-icon { width: 32px; height: 32px; }
  .x-stage { padding-bottom: 96px; }
  .x-bottom { padding-right: 84px; }
  .x-foot { font-size: 11.5px; }
  .x-actions { gap: 12px 22px; }
  .x-ok { padding: 0 24px; }
  .brf-toast { bottom: 90px; max-width: calc(100vw - 32px); border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .x-screen.is-in { animation: none; }
  .brf-toast { transition: none; }
}

/* Welcome over a bright photo: keep the copy on the darkened side */
@media (min-width: 821px) {
  .x-app.is-full .x-veil { background: linear-gradient(90deg, rgba(14, 27, 44, 0.86) 0%, rgba(14, 27, 44, 0.62) 36%, rgba(14, 27, 44, 0.12) 62%, rgba(14, 27, 44, 0) 75%); }
  .x-app.is-full .x-lead, .brf-ways { max-width: 480px; }
}
