/* Request flow: the homepage's warm paper, dark type and low blue marker. */
.q-request-page {
  color-scheme: light;
  --q-paper: var(--paper);
  --q-ink: var(--ink);
  --q-muted: var(--muted);
  --q-line: var(--line);
  --q-accent: var(--accent-text);
  background: var(--paper);
  color: var(--ink);
}

.q-request-page :focus-visible { outline-color: var(--accent-text); }
.q-request-page .q-header { min-height: 104px; padding-inline: var(--gutter); }
.q-request-page .q-header img { filter: brightness(0) saturate(100%); opacity: .88; }
.q-request-page .q-intro h1 { font-size: clamp(34px, 4.1vw, 60px); letter-spacing: -.03em; }
.q-request-page .text-marker {
  color: inherit;
  background: linear-gradient(var(--marker), var(--marker)) no-repeat 0 88% / 100% .62em;
  padding: 0 .055em;
  margin: 0 -.055em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.q-request-page input:not([type=radio]):not([type=checkbox]),
.q-request-page textarea,
.q-request-page select {
  background: #fff;
  color: var(--ink);
  border-color: #849ba5;
}
.q-request-page :is(input, textarea)::placeholder { color: #647983; opacity: 1; }
.q-request-page :is(input, textarea, select):hover { border-color: var(--accent-text); }
.q-request-page [aria-invalid=true] { border-color: #ab3329 !important; }
.q-request-page .q-field-error { color: #a33129; }
.q-request-page .q-error { background: #fceeea; color: #922b24; border-color: #c16a60; }

.q-request-page .q-choice-body { background: #fff; border-color: #849ba5; }
.q-request-page .q-choice:hover .q-choice-body { background: var(--surface); border-color: var(--accent-text); }
.q-request-page .q-choice input:checked + .q-choice-body {
  background: #e5f3f9;
  border-color: var(--accent-text);
  box-shadow: inset 0 0 0 1px var(--accent-text);
}
.q-request-page .q-check input { accent-color: var(--accent-text); }
.q-request-page .q-chapters .is-current { color: var(--accent-text); }

.q-request-page .q-price-summary { background: #fff; border-color: var(--line); }
.q-request-page .q-price-summary .q-free-draft {
  margin: 18px 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-wrap: pretty;
}

.q-request-page .jonas-ai-avatar {
  position: relative;
  display: block;
  flex: none;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--marker);
}
.q-request-page .jonas-ai-avatar img {
  position: absolute;
  width: 235%;
  max-width: none;
  height: auto;
  left: 64%;
  top: -3%;
  transform: translateX(-50%);
}
.q-request-page .q-notice { background: #e5f1f5; color: var(--ink); border-color: #a9c8d4; }
.q-request-page .q-success { background: var(--surface); border-color: var(--line); }
.q-request-page .q-success h2 { margin-top: 0; }

.q-request-page .q-primary {
  --button-rest-bg: var(--accent);
  --button-rest-fg: var(--ink);
  color: var(--ink);
}
.q-request-page .q-primary:has(> .nextapp-arrow)::before {
  background: var(--button-rest-bg);
  transition: none;
}
.q-request-page .q-primary:is(:hover, :focus-visible) { --button-rest-bg: #7cddfb; }
.q-request-page .q-primary > .nextapp-arrow { background: var(--ink); color: var(--white); }
.q-request-page .q-primary,
.q-request-page .q-primary > .nextapp-arrow { transition: none; }
.q-request-page .q-primary:not(:disabled):is(:hover, :focus-visible) > .nextapp-arrow {
  background: var(--accent-text);
  color: var(--white);
  transform: none;
}
.q-request-page :is(.q-exit, .q-back, .q-edit) { color: var(--ink); }
.q-request-page :is(.q-exit, .q-back, .q-edit):hover { background: #e3edf0; }
.q-request-page .q-footer { background: var(--surface); max-width: none; }

/* One focused column, with the introduction stepping back after the start. */
.q-request-page .q-shell { max-width: 880px; padding: 40px 40px 64px; }
.q-request-page .q-intro { display: block; margin-bottom: 36px; }
.q-request-page .q-intro h1 { font-size: clamp(32px, 3.3vw, 44px); margin-bottom: 16px; }
.q-request-page .q-intro > p:last-child { max-width: 60ch; margin-top: 0; font-size: 16px; }
.q-request-page .q-layout { display: block; scroll-margin-top: 24px; }
.q-request-page.q-in-progress .q-intro { margin-bottom: 24px; }
.q-request-page.q-in-progress .q-intro h1 { font-size: 21px; }
.q-request-page.q-in-progress .q-intro h1 br,
.q-request-page.q-in-progress .q-intro > p { display: none; }
.q-request-page .q-chapters { gap: 12px; font-size: 13px; }
.q-request-page .q-chapters > span { padding-bottom: 6px; }
.q-request-page .q-chapters .is-current { border-bottom: 2px solid currentColor; }
.q-request-page .q-chapters .is-done { color: var(--ink); }
.q-request-page .q-step-meta { margin-bottom: 28px; }
.q-request-page .q-question { max-width: 30ch; }
.q-request-page .q-help { font-size: 16px; line-height: 1.65; max-width: 64ch; }
.q-request-page .q-field > label,
.q-request-page .q-field > legend { font-size: 16px; }
.q-request-page .q-field-help { font-size: 13px; }
.q-request-page .q-field > :is(label, legend):has(+ .q-field-help:not(:empty)) { margin-bottom: 4px; }
.q-request-page .q-field > .q-field-help:has(+ :is(input, textarea, select, .q-options)) { margin: 0 0 10px; }
.q-request-page .q-field-help:empty,
.q-request-page .q-field-error:empty { display: none; }
.q-request-page .q-choice-body strong { font-size: 15px; }
.q-request-page .q-choice-body small { font-size: 13px; }
.q-request-page .q-choice:hover .q-choice-body { transform: none; }
.q-request-page .q-choice:has(input:disabled) { cursor: default; }
.q-request-page .q-choice input:disabled + .q-choice-body { opacity: .6; background: #fff; }
.q-request-page .q-chips .q-choice-body strong { font-size: 14px; }
.q-request-page .q-refinements { border-block: 1px solid var(--line); margin-top: 28px; }
.q-request-page .q-refinements summary { cursor: pointer; min-height: 44px; font-size: 16px; }
.q-request-page .q-refinements summary > span { font-size: 13px; color: var(--muted); }
.q-request-page .q-navigation { flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-block: 18px; background: var(--paper); }
.q-request-page #next { margin-left: auto; min-height: 50px; max-width: 100%; }
.q-request-page #back[hidden],
.q-request-page #questionnaire-layout[hidden] { display: none; }
.q-request-page .q-save-note { max-width: 65ch; margin-top: 4px; }
.q-request-page .q-primary:hover { transform: none; }
.q-request-page #step-content { animation: none; }
.q-request-page .q-question:focus { outline: none; }

.q-request-page .q-field { scroll-margin-block: 24px; }

.q-request-page .q-content-proposal { margin: 10px 0 34px; padding: 22px 0 24px; border-block: 1px solid var(--line); }
.q-request-page .q-proposal-heading h3 { font-size: clamp(20px, 3vw, 25px); font-weight: 550; letter-spacing: -.025em; line-height: 1.25; margin: 0 0 9px; }
.q-request-page .q-proposal-heading p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 0 15px; }
.q-request-page .q-suggest-button { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 16px; border: 1px solid var(--accent-text); border-radius: 999px; background: #e8f4f8; color: var(--ink); font: 550 13px var(--font); cursor: pointer; }
.q-request-page .q-suggest-button:hover { background: #d9eff7; }
.q-request-page .q-suggest-button:disabled { cursor: wait; opacity: .7; }
.q-request-page .q-suggest-button span { font-size: 17px; line-height: 1; }
.q-request-page .q-suggest-button--quiet { min-height: 32px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--accent-text); font-size: 12px; }
.q-request-page .q-suggest-button--quiet:hover { background: none; text-decoration: underline; }
.q-request-page .q-ai-privacy { max-width: 60ch; color: var(--muted); font-size: 11px; line-height: 1.55; margin: 9px 0 0; }
.q-request-page .q-ai-privacy a { text-decoration: underline; }
.q-request-page .q-suggestion-status { display: flex; align-items: center; gap: 10px; color: var(--accent-text); font-size: 13px; min-height: 22px; margin: 13px 0 0; }
.q-request-page .q-suggestion-status:empty { display: none; }
.q-request-page .q-ai-pulse { position: relative; display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--accent-text); animation: q-ai-breathe 1.6s ease-in-out infinite; }
.q-request-page .q-ai-pulse::after { content: ''; position: absolute; inset: -5px; border: 1px solid var(--accent-text); border-radius: 50%; animation: q-ai-ring 1.6s ease-out infinite; }
@keyframes q-ai-breathe { 50% { opacity: .45; transform: scale(.78); } }
@keyframes q-ai-ring { to { transform: scale(1.55); opacity: 0; } }
.q-request-page .q-section-legend { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.q-request-page .q-content-proposal .q-field { margin-bottom: 0; }
.q-request-page .q-section-options { display: grid; grid-template-columns: 1fr; gap: 8px; }
.q-request-page .q-section-choice .q-choice-body { min-height: 58px; padding: 12px 16px; }
.q-request-page .q-section-choice .q-choice-body strong { padding-right: 18px; }
.q-request-page .q-section-choice .q-choice-body small { line-height: 1.45; }
.q-request-page .q-custom-section { margin-top: 20px; }
.q-request-page .q-custom-section > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 550; }
.q-request-page .q-custom-section > div { display: flex; align-items: center; gap: 10px; }
.q-request-page .q-custom-section input { flex: 1; min-width: 0; }
.q-request-page .q-custom-section .q-back { flex: none; }
.q-request-page .q-custom-section .q-field-error { margin: 5px 0 0; }

.q-request-page.q-submitted .q-intro, .q-request-page.q-submitted .q-callout { display: none; }
.q-request-page .q-success-title { font-size: clamp(28px, 4vw, 43px); font-weight: 550; line-height: 1.2; margin: 0 0 20px; }
.q-request-page .q-success > p { overflow-wrap: anywhere; }
.q-request-page .q-chat-teaser { margin: 24px 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); animation: q-chat-appear .35s ease-out both; }
.q-request-page .q-chat-teaser[hidden] { display: none; }
.q-request-page .q-chat-teaser > strong { font-size: 12px; color: var(--accent-text); }
.q-request-page .q-chat-teaser .q-teaser-question { margin: 8px 0 16px; color: var(--ink); line-height: 1.6; }
.q-request-page .q-chat-teaser label { display: block; font-size: 13px; margin-bottom: 8px; }
.q-request-page .q-chat-teaser textarea { width: 100%; min-height: 72px; margin-bottom: 12px; resize: vertical; }
.q-request-page .q-chat-teaser .q-field-help { margin-top: 12px; font-size: 11px; line-height: 1.5; }
@keyframes q-chat-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 520px) {
  .q-request-page .q-custom-section > div { flex-wrap: wrap; }
  .q-request-page .q-section-choice .q-choice-body { min-height: 56px; }
  .q-request-page .q-header { min-height: 84px; }
  .q-request-page .q-shell { padding: 28px 22px 48px; }
  .q-request-page .q-intro h1 { font-size: 33px; }
  .q-request-page .q-intro > p:last-child { font-size: 15px; }
  .q-request-page .q-chapters { gap: 6px; font-size: 11px; }
  .q-request-page .q-step-meta { font-size: 12px; }
  .q-request-page .q-chips .q-choice-body strong { font-size: 13px; }
  .q-request-page .q-navigation .q-primary { flex: 1 1 190px; }
  .q-request-page .q-navigation #back { padding-inline: 14px; }
  .q-request-page .q-success { padding: 20px; }
  .q-request-page .q-chat-teaser { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .q-request-page .q-ai-pulse, .q-request-page .q-ai-pulse::after { animation: none; }
  .q-request-page .q-primary:has(> .nextapp-arrow)::before { transition: none; }
  .q-request-page .q-progress > span,
  .q-request-page .q-choice-body { transition: none; }
}
