/* Request form polish — loaded last. Works in both themes: the form card
   stays light in dark mode, so card-level rules are theme-neutral and only
   the stepper rail (which sits on the page background) is scoped to light. */
:root {
  --accent-text: #c13a0f;
  --accent-line: #ffb79c;
  --focus-ring: 0 0 0 3px rgba(255, 90, 38, .3);
}

/* Layout: never let grid children push past the viewport */
.wizard-top { grid-template-columns: 235px minmax(0, 1fr); }
.form-card { min-width: 0; }

/* Keyboard focus */
.btn:focus-visible,
.option:focus-visible,
.style-option:focus-visible,
.help-link:focus-visible,
.theme-toggle:focus-visible,
.deliverable:has(input:focus-visible),
.brand-toggle:has(input:focus-visible) {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Disabled primary reads as unavailable, not faded orange */
.form-actions .btn-primary[disabled] {
  opacity: 1;
  background: rgba(3, 4, 8, .07);
  color: rgba(3, 4, 8, .4);
  box-shadow: none;
  transform: none;
}

/* Project type cards: one icon set in a consistent tile */
.option { display: grid; align-content: start; }
.option:hover { border-color: var(--accent-line); }
.option-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(3, 4, 8, .05);
  color: #030408;
  transition: background .2s, color .2s;
}
.option.selected .option-icon { background: var(--blue); color: #030408; }
.option small { max-width: 260px; }
.compact-options .option { min-height: 0; }

/* Deliverables: two columns, real production sizes */
.deliverable-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.deliverable { grid-template-columns: 20px minmax(0, 1fr); gap: 12px; }
.deliverable:hover { border-color: var(--accent-line); }
.deliverable-check { width: 20px; height: 20px; border-radius: 6px; }
.deliverable small { font-variant-numeric: tabular-nums; }
.style-option:hover { border-color: var(--accent-line); }

/* Review */
.summary-icon { color: #030408; }

/* Section headings were h3 under the h1; now h2 with the same look */
.inline-heading h2 { margin: 8px 0 0; font-size: 24px; letter-spacing: -1px; line-height: 1.15; }
.summary-section h2 { display: flex; justify-content: space-between; font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 11px; }
.summary-section h2 span { color: var(--accent-text); }
.summary-project h2 { display: block; margin: 0 0 6px; }

/* WCAG AA contrast for small accent text on the light card */
.form-card .eyebrow,
.style-copy em { color: var(--accent-text); }
.form-card .serif { color: #f24e1a; }
.board-top small, .organized-note small { color: #e3eef6; }
:root[data-theme="light"] .app-shell .stepper .eyebrow,
:root[data-theme="light"] .app-shell .stepper .queue-label { color: var(--accent-text); }
.brand-toggle em { color: #4f6500; }
:root[data-theme="light"] .stepper .step { color: var(--muted); }
:root[data-theme="light"] .stepper .step.active,
:root[data-theme="light"] .stepper .step.done { color: var(--ink); }

/* Mobile */
@media (max-width: 1280px) {
  .wizard-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .deliverable-list { grid-template-columns: minmax(0, 1fr); }
  .option {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 14px 44px 14px 14px;
  }
  .option.selected { padding: 13px 43px 13px 13px; }
  .option-icon { grid-row: span 2; margin: 0; }
  .option-check { top: 50%; right: 14px; transform: translateY(-50%); }
}

@media (max-width: 600px) {
  .form-card { padding: 26px 18px 20px; }
  .form-card h1 { font-size: 38px; letter-spacing: -2px; }
  .form-actions { gap: 12px; }
  .form-actions .btn-primary { flex: 1; justify-content: center; }
}

/* Request capacity on the dashboard, beside "Start a request" — visible on every screen size
   (the form's copy of the card is hidden on small screens). */
.quick-card .queue-card-dashboard { display: block; position: relative; z-index: 1; margin: 20px 0 22px; background: #fffaf0; border-color: rgba(3, 4, 8, .12); box-shadow: 0 10px 24px rgba(3, 4, 8, .08); }
.quick-card .queue-card-dashboard.is-full { background: #fff1e8; border-color: rgba(3, 4, 8, .2); }
.quick-card .queue-card-dashboard .queue-label { color: #a9410e; }
.quick-card .queue-card-dashboard .capacity-dots i { background: rgba(3, 4, 8, .12); }
.quick-card .queue-card-dashboard .capacity-dots i.filled { background: var(--studio-black, #030408); }
.quick-card .queue-card-dashboard strong { color: var(--studio-black, #030408); }
.quick-card .queue-card-dashboard p { font-size: 12px; color: rgba(3, 4, 8, .72); }
/* Phones: new-request panel (with capacity) comes before the request list. */
@media (max-width: 760px) { .dashboard-grid > .quick-card { order: -1; } }

/* Plan limits + request link */
.option.is-locked { opacity: .55; cursor: not-allowed; }
.option.is-locked small { color: #a9410e; }
.queue-card .queue-video { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(3, 4, 8, .1); }
.queue-card .queue-video strong { font-size: inherit; }
.requester-row { margin-bottom: 4px; }
/* Spam trap: off-screen for people, still filled in by bots. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quick-card a.btn { text-decoration: none; }

/* Church onboarding form (/welcome/<token>) */
.ob-hint { margin: -2px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ob-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ob-choices .option { min-height: 0; padding: 16px 18px; }
.ob-words { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-word { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 14px; cursor: pointer; transition: .2s border, .2s background; }
.ob-word:hover:not(:disabled) { border-color: rgba(255, 90, 38, .55); }
.ob-word.selected { border-color: var(--studio-orange, #ff5a26); background: #fff6f1; color: #030408; }
.ob-word:disabled { opacity: .45; cursor: not-allowed; }
.ob-count { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.ob-styles .option { min-height: 0; }
.ob-team-row { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 8px; margin-bottom: 8px; }
.ob-remove { width: 40px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: inherit; font-size: 20px; cursor: pointer; }
.ob-add { margin-top: 4px; }
.onboard-done .success-card div span { white-space: nowrap; }
@media (max-width: 720px) {
  .ob-choices { grid-template-columns: 1fr; }
  .ob-team-row { grid-template-columns: 1fr 1fr 40px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .ob-team-row input[type="email"] { grid-column: 1 / -1; grid-row: 2; }
}
.ob-styles { margin-top: 4px; }
.onboard-done .success-actions .btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.onboard-done .ob-invite-note { margin-top: 26px; font-size: 14px; }
.ob-team-row input[type="email"]:not(:focus):not(:placeholder-shown):invalid, .field input[type="email"][data-ob-field]:not(:focus):not(:placeholder-shown):invalid { border-color: #d0421b; }

/* Accessible orange for small text on white and cream cards (brand orange is under 4.5:1 there). */
.required, .success-card-label { color: #c93c10; }
.profile-detail-row button, .payment-method button { color: #c93c10; }
/* Dark mode: page headings sit straight on black, so labels and intro text switch to light-on-dark colors. */
:root[data-theme="dark"] .account-hero .eyebrow { color: var(--studio-orange); }
:root[data-theme="dark"] .account-hero p { color: #b9b7af; }
:root[data-theme="light"] .eyebrow-separator { color: #8a8983; }
.panel-head h2.panel-title { font-size: 25px; letter-spacing: -1px; margin: 8px 0 0; }

/* Onboarding: brand file uploads */
.ob-upload { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border: 1px dashed var(--line); border-radius: 14px; cursor: pointer; transition: .2s border-color, .2s background; }
.ob-upload:hover, .ob-upload:focus-within { border-color: currentColor; }
.ob-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ob-upload small { margin-left: auto; color: var(--muted); font-size: 13px; }
.ob-files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.ob-files li { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 12px; min-height: 44px; }
.ob-files li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-files li small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.ob-files li .ob-remove { height: 32px; width: 32px; flex: none; }
.ob-files li.is-busy { opacity: .6; }
