/* Mobile canvas with decorative jobs behind a floating step form. */
:root { --canvas-width: 480px; --popup-width: 400px; }
html { background: #777579; }
body { display: block; background: #777579; }
.app-shell { position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; max-width: var(--canvas-width); height: 100vh; height: 100dvh; margin-inline: auto; overflow: hidden; background: #fff; box-shadow: 0 0 40px #17121924; }
.prototype-notice { position: relative; z-index: 3; }
.site-header { position: relative; z-index: 3; width: 100%; max-width: none; min-height: 46px; padding: 7px 16px; }
.brand-name { font-size: 18px; }
.brand-logo { display: block; width: 55%; max-width: 214px; height: auto; object-fit: contain; }
.brand-tagline { margin: 0; flex: 1; color: #d94d75; font-size: clamp(11px, 3.1vw, 14px); font-weight: 700; line-height: 1.5; white-space: nowrap; }
.header-offer { position: relative; z-index: 3; display: block; flex-shrink: 0; width: 100%; height: auto; }
main.popup-stage { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; width: 100%; max-width: none; min-height: 0; margin: 0; padding: 16px; overflow: hidden; }
.job-backdrop { position: absolute; inset: 0; z-index: 0; background: #fff; overflow: hidden; pointer-events: none; user-select: none; }
.jobs-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
#background-fallback { padding: 14px 14px 30px; }
.job-backdrop .hero { display: none !important; }
.job-backdrop .hero h1 { font-size: 26px; }
.job-backdrop .hero-kicker { display: block; font-size: 11px; }
.job-backdrop .service-description { margin-top: 4px; }
.background-jobs-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 5px 0 10px; font-size: 15px; }
.background-jobs-heading small { font-size: 10px; color: #766c73; }
.background-jobs { display: grid; gap: 13px; }
.job-card-artwork { display: block; width: 100%; height: auto; object-fit: contain; }
.background-job { background: #fff; padding: 0 10px 12px; border: 1px solid #e7c7cf; border-radius: 4px; }
.background-job-tag { margin: 0 -10px 10px; padding: 7px 10px; background: #f6d4dc; color: #a33f55; font-size: 14px; font-weight: 700; }
.background-job-body { display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 12px; }
.background-job .job-picture { min-height: 103px; }
.background-job b { display: block; margin-bottom: 9px; font-size: 14px; }
.background-job span { display: block; border: 1px solid #d9c5cb; padding: 5px 7px; margin: 5px 0; font-size: 11px; color: #797078; }
.stage-scrim { position: absolute; inset: 0; z-index: 1; background: #27202663; pointer-events: none; }
.form-card { position: relative; z-index: 2; width: 100%; max-width: var(--popup-width); flex: 0 1 auto; flex-basis: auto; min-height: 0; max-height: 100%; padding: 22px; border: 0; border-radius: 10px; background: #fffafa; box-shadow: 0 8px 30px #1b101533; }
#lead-form { flex: 0 1 auto; min-height: 0; }
.step { flex: 0 1 auto; }
.step[data-step="0"] h3 { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.step h3 { margin: 14px 0 16px; font-size: 20px; }
#progress-label { color: #9f4b5b; font-size: 11px; }
progress { height: 4px; margin-bottom: 8px; }
.selection-hint { margin: -6px 0 10px; color: #766c73; font-size: 12px; }
.choices { gap: 9px; }
.choices label { min-height: 56px; padding: 10px; font-size: 14px; }
.choices .qualification-choice { position: relative; flex-direction: column; justify-content: center; gap: 5px; min-height: 108px; padding: 8px; }
.qualification-choice > input { position: absolute; left: 8px; top: 8px; }
.qualification-choice > img { display: block; width: 70px; height: 70px; object-fit: contain; }
.qualification-choice > span { text-align: center; line-height: 1.4; font-size: 13px; }
.choices .qualification-choice:last-child { flex-direction: row; min-height: 60px; gap: 16px; }
.qualification-choice:last-child > input { position: static; }
.qualification-choice:last-child > img { width: 44px; height: 44px; }
fieldset { margin: 10px 0 16px; }
.form-actions { margin-top: 18px; padding-top: 4px; background: transparent; align-items: center; }
.form-actions .primary { min-height: 48px; }
.back-link { font-size: 12px; color: #797178; }
footer { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 2px 5px max(3px, env(safe-area-inset-bottom)); background: #fff; }
footer .text-button { font-size: 10px; }
dialog { width: min(calc(100vw - 24px), 400px); max-height: calc(100dvh - 24px); border-radius: 10px; }
.background-upload { margin-top: 8px; }
.background-upload input { padding: 6px; min-height: 40px; font-size: 11px; }
.dev-panel h2 { margin-bottom: 8px; }
.dev-panel .field { margin-bottom: 10px; }
.dev-panel > .button { margin-bottom: 7px; }
@media (max-height: 740px) {
  main.popup-stage { padding: 12px; }
  .form-card { padding: 16px 18px; }
  .step h3 { font-size: 19px; margin: 10px 0 12px; }
  .choices label { min-height: 48px; padding: 8px; font-size: 13px; }
  .choices .qualification-choice { min-height: 94px; padding: 7px; }
  .qualification-choice > img { width: 56px; height: 56px; }
  .choices .qualification-choice:last-child { min-height: 52px; }
  .qualification-choice:last-child > img { width: 38px; height: 38px; }
  .form-actions { margin-top: 12px; }
  .selection-hint { margin-bottom: 8px; }
  .step[data-step="5"] .review-buttons { margin: 8px 0; }
  .step[data-step="5"] .review-buttons .button { min-height: 36px; padding: 5px 7px; font-size: 12px; }
  .step[data-step="5"] .consent-label { font-size: 12px; margin: 10px 0 4px; }
}
@media (max-height: 590px) {
  .site-header { min-height: 38px; padding: 3px 12px; }
  .brand-name { font-size: 16px; }
  main.popup-stage { padding: 9px 12px; }
  .form-card { padding: 10px 15px; }
  .step h3 { font-size: 18px; margin: 4px 0 7px; }
  .errors { margin: 3px 0; padding: 3px 7px; }
  .choices { gap: 6px; }
  .choices label { min-height: 44px; padding: 6px 7px; font-size: 12px; }
  .choices .qualification-choice { min-height: 82px; padding: 5px; gap: 3px; }
  .qualification-choice > img { width: 46px; height: 46px; }
  .qualification-choice > span { font-size: 12px; }
  .choices .qualification-choice:last-child { min-height: 46px; }
  .qualification-choice:last-child > img { width: 32px; height: 32px; }
  .step[data-step="0"] fieldset { margin-top: 4px; margin-bottom: 6px; }
  body[data-has-errors="true"] .qualification-choice > img { width: 30px; height: 30px; }
  body[data-has-errors="true"] .choices .qualification-choice { min-height: 62px; }
  body[data-has-errors="true"] .choices .qualification-choice:last-child { min-height: 44px; }
  .form-actions { margin-top: 6px; }
  .form-actions .primary { min-height: 44px; }
  .field { margin-bottom: 7px; }
  .field input { min-height: 44px; }
  .dev-panel { padding: 13px 16px; }
  .dev-panel .field { margin-bottom: 7px; }
  .dev-panel .field select { min-height: 40px; }
  .dev-panel > .small { margin-bottom: 6px; }
  .dev-panel > .button { min-height: 40px; margin-bottom: 6px; }
}
