/* Brand form inside the dashboard (public/dash/brand-form.js). Ported from
   the WP theme's style.css "Native intake form" block with the site tokens
   mapped to the studio ones: light -> --bg, dark -> --ink, muted -> --muted,
   pink/green -> --pink, blue -> --blue. Uses the page's own variables, so it
   follows the dark theme. */

.bf-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 28px; }
.bf-intro { display: grid; grid-template-columns: 1fr 132px; gap: 20px; align-items: center; margin-bottom: 24px; }
.bf-intro h1 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 8px; }
.bf-intro p { margin: 0; color: var(--muted); font-size: 16px; }
.bf-intro img { width: 132px; height: 132px; border-radius: 12px; background: #fff; object-fit: contain; }

.vj-intake, .vj-intake *, .vj-intake *::before, .vj-intake *::after { box-sizing: border-box; }
.vj-intake { color: var(--ink); }
.vj-intake-progress { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 8%, transparent); margin-bottom: 1.75rem; overflow: hidden; }
.vj-intake-progress-fill { display: block; height: 100%; width: 0%; border-radius: 2px; background: linear-gradient(120deg, #286B5D 0%, #5479B8 100%); transition: width 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); }

.vj-step { display: none; }
.vj-step.is-active { display: block; animation: vj-step-in 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes vj-step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vj-step.is-active { animation: none; } }

.vj-step-eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 0.4rem; }
.vj-intake .vj-step-title { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 0 0 1.25rem; }
/* The studio pages already pull a heading to 8px above the text right after
   it (Text rhythm rule), so the hint needs no negative margin here. */
.vj-intake .vj-step-hint { font-size: 0.9rem; color: var(--muted); margin: 0 0 1.1rem; }
.vj-field-label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }

.vj-promo-feedback { font-size: 0.9rem; margin: 0.6rem 0 0; color: var(--muted); }
.vj-promo-feedback.is-valid { color: var(--pink); font-weight: 600; }

.vj-chip-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.5rem; }
.vj-chip { display: inline-flex; align-items: center; gap: 0.5rem; font-family: inherit; font-size: 0.92rem; font-weight: 600; line-height: 1.35; color: var(--ink); background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 10.5px; padding: 0.65rem 1.15rem; cursor: pointer; text-align: left; transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.vj-chip:hover { transform: translateY(-2px); }
.vj-chip.is-selected { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.vj-chip-grid--colors { gap: 0.75rem; }
.vj-chip--swatch { padding-left: 0.5rem; }
.vj-swatch { display: block; width: 22px; height: 22px; border-radius: 50%; flex: none; }
.vj-chip-icon { display: block; width: 34px; height: 14px; flex: none; }

.vj-color-fields { display: flex; flex-wrap: wrap; gap: 1rem; }
.vj-color-field { display: flex; flex-direction: column; gap: 0.4rem; flex: 1 1 auto; min-width: 130px; }
.vj-color-field-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.vj-color-field-row { display: flex; align-items: center; gap: 0.5rem; }
.vj-color-hex-input { width: 100%; min-width: 0; font-family: inherit; font-size: 0.92rem; color: var(--ink); background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 10px; padding: 0.65rem 0.75rem; }
.vj-color-hex-input:focus { outline: none; border-color: var(--pink); }
.vj-color-hex-input.is-invalid { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.vj-color-native-input { width: 40px; height: 40px; flex: none; padding: 0; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 10px; cursor: pointer; background: none; }

.vj-text-input, .vj-textarea { display: block; width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 12px; padding: 0.95rem 1.1rem; margin-bottom: 0.85rem; }
.vj-textarea { min-height: 6.5rem; resize: vertical; }
.vj-text-input:focus, .vj-textarea:focus { outline: none; border-color: var(--pink); }

.vj-intake-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.75rem; gap: 1rem; }
.vj-btn { font-family: inherit; font-weight: 600; font-size: 16px; border-radius: 999px; padding: 0.85rem 1.75rem; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease; }
.vj-btn--primary { background: var(--btn); color: #fff; border: none; margin-left: auto; }
.vj-btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--btn) 82%, #1C2023); transform: translateY(-2px); }
.vj-btn--primary:disabled { opacity: 0.4; cursor: not-allowed; }
.vj-btn--outline { background: transparent; color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.vj-btn--outline:hover { border-color: var(--ink); }

.vj-upload-status { font-size: 0.85rem; color: var(--muted); margin: 0.6rem 0 0; }
.vj-other-input { margin-top: 0.6rem; }
.vj-other-extra { margin-top: 0.6rem; }
.vj-other-extra-row { display: flex; align-items: center; gap: 0.5rem; }
.vj-other-extra-row .vj-text-input { flex: 1; margin-top: 0; }
.vj-other-extra-remove { flex: none; width: 32px; height: 32px; margin-bottom: 0.85rem; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); background: var(--bg); color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.vj-other-extra-add { display: inline-flex; align-items: center; font-family: inherit; font-size: 0.88rem; font-weight: 600; color: var(--pink); background: none; border: none; padding: 0; cursor: pointer; }

.vj-reveal { margin-top: 0.85rem; }
.vj-intake .vj-reveal .vj-step-title { font-size: 18px; margin-bottom: 1rem; }

.vj-file-upload { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.vj-file-input-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.vj-file-btn { display: inline-flex; align-items: center; font-family: inherit; font-weight: 600; font-size: 0.9rem; color: var(--ink); background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 999px; padding: 0.65rem 1.15rem; cursor: pointer; }
.vj-file-btn:hover { border-color: var(--ink); }
.vj-file-name { font-size: 0.85rem; color: var(--muted); }
.vj-file-input-native:focus-visible + .vj-file-btn { outline: 2px solid var(--pink); outline-offset: 2px; }

[data-step="submitting"] { text-align: center; padding: 24px 0; }
.vj-status-icon { width: 72px; height: 72px; margin: 0 auto; }
.vj-spinner { width: 72px; height: 72px; animation: vj-spin 0.9s linear infinite; }
.vj-spinner-track { stroke: color-mix(in srgb, var(--ink) 10%, transparent); }
.vj-spinner-arc { stroke-linecap: round; stroke-dasharray: 90 150; }
@keyframes vj-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vj-spinner { animation: none; } }

/* Done screen (after the brand form): thank-you, explainer video slot, what to do meanwhile. */
.bf-done-check { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--pink) 12%, transparent); color: var(--pink); margin-bottom: 16px; }
.bf-done-check svg { width: 28px; height: 28px; }
.bf-done h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 10px; }
.bf-done > p { color: var(--muted); margin: 0 0 20px; font-size: 16px; }
.bf-video { width: 100%; border-radius: 14px; background: #000; display: block; margin: 0 0 24px; aspect-ratio: 16 / 9; }
.bf-next { margin: 28px 0 6px; font-size: 20px; }
.bf-next-sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.bf-next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bf-next-grid a { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.bf-next-grid a:hover { border-color: var(--pink); }
.bf-next-grid img { width: 56px; height: 56px; border-radius: 10px; background: #fff; object-fit: contain; flex: none; }

@media (max-width: 640px) {
  .bf-card { padding: 20px 16px; }
  .bf-intro { grid-template-columns: 1fr; }
  .bf-intro img { display: none; }
  .bf-intro h1, .bf-done h1 { font-size: 24px; }
  .vj-intake .vj-step-title { font-size: 20px; }
  .vj-file-upload { flex-direction: column; align-items: stretch; }
  .bf-next-grid { grid-template-columns: minmax(0, 1fr); }
}
