.prozv-quiz,
.prozv-chat {
  --prozv-ink: #103b36;
  --prozv-text: #244a46;
  --prozv-muted: #57716e;
  --prozv-green: #3f7e3a;
  --prozv-green-dark: #285f30;
  --prozv-water: #d9f0f2;
  --prozv-water-deep: #07557a;
  --prozv-paper: #fbfaf4;
  --prozv-line: #cdded8;
  --prozv-alert: #963c36;
}

.prozv-quiz {
  width: min(100%, 58rem);
  margin: 1.5rem auto;
  overflow: hidden;
  color: var(--prozv-text);
  background: var(--prozv-paper);
  border: 1px solid var(--prozv-line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16, 59, 54, 0.12);
  font-family: inherit;
}

.atlas-quiz-shell .prozv-quiz {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.prozv-quiz *,
.prozv-quiz *::before,
.prozv-quiz *::after {
  box-sizing: border-box;
}

.prozv-quiz__head,
.prozv-quiz__form,
.prozv-result,
.prozv-quiz__loading {
  background: transparent;
}

.prozv-quiz__head {
  padding: clamp(1.3rem, 4vw, 2.4rem);
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--prozv-line);
}

.prozv-quiz__head h2 {
  max-width: 14ch;
  margin: 0.35rem 0 0.7rem;
  color: var(--prozv-ink);
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.prozv-quiz__head > p:not(.prozv-quiz__eyebrow):not(.prozv-quiz__step-label) {
  max-width: 44rem;
  color: var(--prozv-muted);
}

.prozv-quiz__eyebrow,
.prozv-result__eyebrow {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin: 0;
  color: var(--prozv-water-deep);
  font-size: 0.82rem;
  font-weight: 760;
}

.prozv-quiz__eyebrow::before,
.prozv-result__eyebrow::before {
  width: 2rem;
  height: 1px;
  content: "";
  background: currentColor;
}

.prozv-quiz__progress {
  height: 4px;
  margin-top: 1.4rem;
  overflow: hidden;
  background: #e6ece8;
}

.prozv-quiz__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--prozv-water-deep);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  transform: scaleX(0.25);
  transform-origin: left center;
}

.prozv-quiz__step-label {
  margin: 0.55rem 0 0;
  color: var(--prozv-muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.prozv-quiz__form {
  padding: clamp(1.3rem, 4vw, 2.4rem);
}

.prozv-quiz__step {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  scroll-margin-top: 6rem;
  animation: prozv-step-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.prozv-quiz__step > legend {
  width: 100%;
  margin-bottom: 1.2rem;
  color: var(--prozv-ink);
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.018em;
}

.prozv-quiz__goal-stage-label {
  margin: 0 0 0.7rem;
  color: var(--prozv-muted);
  font-size: 0.86rem;
  font-weight: 680;
}

.prozv-quiz__goal-prompt {
  margin-top: 1.35rem;
}

.prozv-quiz__goal-categories {
  display: grid;
  border-top: 1px solid var(--prozv-line);
  border-left: 1px solid var(--prozv-line);
}

.prozv-quiz__goal-category {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.65rem;
  min-height: 4.3rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  color: var(--prozv-ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--prozv-line);
  border-bottom: 1px solid var(--prozv-line);
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.prozv-quiz__goal-category small {
  color: var(--prozv-muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.prozv-quiz__goal-category:hover {
  background: #f0f5ea;
}

.prozv-quiz__goal-category[aria-pressed="true"] {
  color: var(--prozv-water-deep);
  background: var(--prozv-water);
}

.prozv-quiz__goal-category[aria-pressed="true"] small {
  color: var(--prozv-water-deep);
}

.prozv-quiz__goal-category:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(7, 85, 122, 0.28);
  outline-offset: -3px;
}

.prozv-quiz__goals {
  display: grid;
  border-top: 1px solid var(--prozv-line);
}

.js .prozv-quiz__goals[data-category-selected="false"] {
  display: none;
}

.prozv-quiz__choice {
  display: block;
  cursor: pointer;
}

.prozv-quiz__choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prozv-quiz__choice span {
  position: relative;
  display: flex;
  min-height: 3.65rem;
  align-items: center;
  padding: 0.75rem 2.6rem 0.75rem 0.9rem;
  background: transparent;
  border-bottom: 1px solid var(--prozv-line);
  font-weight: 650;
  line-height: 1.3;
  transition: color 180ms ease, background 180ms ease;
}

.prozv-quiz__choice span::after {
  position: absolute;
  right: 0.9rem;
  width: 0.9rem;
  height: 0.9rem;
  content: "";
  border: 1px solid #77918c;
  border-radius: 50%;
}

.prozv-quiz__choice:hover span {
  background: #f0f5ea;
}

.prozv-quiz__choice input:checked + span {
  color: var(--prozv-water-deep);
  background: var(--prozv-water);
}

.prozv-quiz__choice input:checked + span::after {
  background: var(--prozv-water-deep);
  border-color: var(--prozv-water-deep);
  box-shadow: inset 0 0 0 3px var(--prozv-water);
}

.prozv-quiz__choice input:focus-visible + span {
  z-index: 1;
  outline: 3px solid rgba(7, 85, 122, 0.28);
  outline-offset: -3px;
}

.prozv-quiz__field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.05rem;
  color: var(--prozv-ink);
  font-weight: 650;
}

.prozv-quiz__field input,
.prozv-quiz__field select,
.prozv-quiz__field textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.75rem 0.85rem;
  color: var(--prozv-ink);
  background: #fff;
  border: 1px solid #aebfbb;
  border-radius: 8px;
  font: inherit;
}

.prozv-quiz__field textarea {
  resize: vertical;
}

.prozv-quiz__field input:focus,
.prozv-quiz__field select:focus,
.prozv-quiz__field textarea:focus {
  border-color: var(--prozv-water-deep);
  outline: 3px solid rgba(7, 85, 122, 0.16);
  outline-offset: 1px;
}

.prozv-quiz__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.prozv-quiz__inline-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.65rem 0;
  font-weight: 520;
}

.prozv-quiz__goal-branch {
  min-width: 0;
  margin: 0 0 1.05rem;
  padding: 0.9rem 1rem 0.35rem;
  background: #f0f5ea;
  border: 1px solid var(--prozv-line);
  border-radius: 8px;
}

.prozv-quiz__goal-branch legend {
  width: auto;
  margin: 0;
  padding: 0;
  font: inherit;
  line-height: 1.3;
  font-weight: 650;
}

.prozv-quiz__inline-choices label {
  display: inline-flex;
  min-height: 2.75rem;
  gap: 0.5rem;
  align-items: center;
}

.prozv-quiz__inline-choices input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--prozv-water-deep);
}

.prozv-quiz__consent {
  display: flex;
  min-height: 2.75rem;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--prozv-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.prozv-quiz__consent input {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  margin-top: 0.1rem;
  accent-color: var(--prozv-water-deep);
}

.prozv-quiz__consent a {
  color: var(--prozv-water-deep);
}

.prozv-quiz__privacy-note,
.prozv-result__notice,
.prozv-result__order-state {
  padding: 0.9rem 1rem;
  color: var(--prozv-text);
  background: var(--prozv-water);
  border: 1px solid rgba(7, 85, 122, 0.16);
  border-radius: 8px;
}

.prozv-quiz__actions,
.prozv-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.prozv-button {
  appearance: none;
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  color: #fff !important;
  background: var(--prozv-water-deep);
  border: 1px solid var(--prozv-water-deep);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 730;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.prozv-button:hover {
  background: #06466a;
  border-color: #06466a;
  box-shadow: 0 8px 20px rgba(7, 85, 122, 0.2);
  transform: translateY(-1px);
}

.prozv-button:focus-visible {
  outline: 3px solid rgba(7, 85, 122, 0.28);
  outline-offset: 3px;
}

.prozv-button:disabled {
  opacity: 0.56;
  cursor: wait;
  transform: none;
}

.prozv-button--ghost {
  color: var(--prozv-water-deep) !important;
  background: transparent;
  border-color: var(--prozv-line);
}

.prozv-button--ghost:hover {
  color: var(--prozv-ink) !important;
  background: var(--prozv-water);
  border-color: var(--prozv-water-deep);
  box-shadow: none;
}

.prozv-quiz__error {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  color: #762d1b;
  background: #fff1ec;
  border: 1px solid rgba(150, 60, 54, 0.35);
  border-radius: 8px;
}

.prozv-quiz__loading {
  padding: 3rem;
  text-align: center;
}

.prozv-quiz__spinner {
  display: inline-block;
  width: 1.4rem;
  height: 1.4rem;
  margin-right: 0.6rem;
  vertical-align: middle;
  border: 3px solid var(--prozv-line);
  border-top-color: var(--prozv-water-deep);
  border-radius: 50%;
  animation: prozv-spin 700ms linear infinite;
}

.prozv-result {
  padding: clamp(1.5rem, 5vw, 3rem);
}

.prozv-result h3 {
  margin: 0.4rem 0 0.75rem;
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.prozv-result h3[data-verdict="possible"] {
  color: #2f7041;
}

.prozv-result h3[data-verdict="conditional"] {
  color: #866417;
}

.prozv-result h3[data-verdict="impossible"] {
  color: #913a31;
}

.prozv-result h4 {
  margin: 1.6rem 0 0.65rem;
}

.prozv-result li + li {
  margin-top: 0.45rem;
}

.prozv-result__route-detail {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #f0f5ea;
  border-left: 3px solid var(--prozv-water-deep);
}

.prozv-result__route-detail h4 {
  margin: 0 0 0.35rem;
}

.prozv-result__route-detail p {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.prozv-result__notice {
  background: #f6efd5;
  border-color: rgba(134, 100, 23, 0.22);
}

.prozv-result__price {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--prozv-water);
  border-radius: 10px;
}

.prozv-result__price strong {
  font-size: 1.55rem;
}

.prozv-result__analysis-level {
  margin-top: 1.25rem;
}

.prozv-result__analysis-level small {
  color: var(--prozv-muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
}

.prozv-result__analysis-level select:disabled {
  color: var(--prozv-ink);
  -webkit-text-fill-color: var(--prozv-ink);
  opacity: 1;
  background: #f0f5ea;
  cursor: not-allowed;
}

.prozv-result__price small {
  color: var(--prozv-muted);
}

.prozv-result__order-state h4 {
  margin: 0 0 0.45rem;
}

.prozv-result__order-state p {
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

.prozv-result__order-disclaimer {
  font-size: 0.9rem;
  font-weight: 650;
}

.prozv-quiz-cta {
  margin: 1.5rem 0;
}

.prozv-chat {
  width: min(100%, 58rem);
  margin: 2rem auto;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  color: var(--prozv-text);
  background: var(--prozv-paper);
  border: 1px solid var(--prozv-line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16, 59, 54, 0.12);
}

.prozv-chat__head {
  max-width: 47rem;
  margin-bottom: 1rem;
}

.prozv-chat__head h2 {
  margin: 0.25rem 0 0.7rem;
  color: var(--prozv-ink);
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.prozv-chat__head p:not(.prozv-quiz__eyebrow) {
  color: var(--prozv-muted);
}

.prozv-chat__handoff {
  max-width: 47rem;
  margin: 1rem 0 1.5rem;
}

.prozv-chat__handoff h3 {
  margin: 0 0 0.35rem;
  color: var(--prozv-ink);
  font: inherit;
  font-weight: 720;
}

.prozv-chat__handoff a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--prozv-water-deep);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-underline-offset: 0.18em;
}

.prozv-chat__handoff a:focus-visible {
  outline: 3px solid var(--prozv-water-deep);
  outline-offset: 3px;
}

.prozv-chat__handoff p {
  margin: 0.2rem 0 0;
  color: var(--prozv-muted);
  line-height: 1.45;
}

.prozv-chat__goal {
  max-width: 47rem;
  margin: 1.5rem 0;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--prozv-line);
}

.prozv-chat__goal h3,
.prozv-chat__question-title {
  margin: 0 0 0.75rem;
  color: var(--prozv-ink);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 720;
}

.prozv-chat__goal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 0.85rem;
  align-items: end;
}

.prozv-chat__goal-form label {
  color: var(--prozv-ink);
  font-weight: 650;
}

.prozv-chat__goal-form > *,
.prozv-chat__form > * {
  min-width: 0;
  max-width: 100%;
}

.prozv-chat .prozv-button {
  white-space: normal;
  overflow-wrap: anywhere;
}

.prozv-chat__goal-form select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  color: var(--prozv-ink);
  background: var(--prozv-paper);
  border: 1px solid #aebfbb;
  border-radius: 8px;
  font: inherit;
}

.prozv-chat__goal-form select:focus-visible,
.prozv-chat__form textarea:focus-visible {
  outline: 3px solid var(--prozv-water-deep);
  outline-offset: 2px;
}

.prozv-chat .prozv-button:focus-visible {
  outline-color: var(--prozv-water-deep);
}

.prozv-chat__goal-form button {
  grid-column: 1 / -1;
  min-height: 2.75rem;
  justify-self: start;
}

.prozv-chat__goal-result {
  max-width: 65ch;
  margin-top: 0.8rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.prozv-chat__status {
  min-height: 1.5em;
  margin: 0.55rem 0 0;
  color: var(--prozv-muted);
  line-height: 1.45;
}

.prozv-chat[aria-busy="true"] .prozv-button {
  cursor: wait;
}

.prozv-chat .prozv-button:disabled {
  opacity: 0.68;
}

.prozv-chat__log {
  display: grid;
  gap: 0.65rem;
  max-height: 22.5rem;
  overflow: auto;
  padding: 1rem;
  background: #f0f5ea;
  border: 1px solid var(--prozv-line);
  border-radius: 10px;
}

.prozv-chat__message {
  max-width: 78%;
  padding: 0.75rem 0.85rem;
  overflow-wrap: anywhere;
  border-radius: 10px;
  line-height: 1.45;
}

.prozv-chat__message--assistant {
  justify-self: start;
  background: var(--prozv-water);
}

.prozv-chat__message--user {
  justify-self: end;
  color: #fff;
  background: var(--prozv-ink);
}

.prozv-chat__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.9rem;
}

.prozv-chat__form textarea {
  width: 100%;
  min-height: 4.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #aebfbb;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.prozv-chat__message-label {
  grid-column: 1 / -1;
  font-weight: 650;
}

[hidden] {
  display: none !important;
}

@keyframes prozv-spin {
  to { transform: rotate(360deg); }
}

@keyframes prozv-step-in {
  from {
    opacity: 0.76;
    clip-path: inset(0 0 8% 0);
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: none;
  }
}

@media (min-width: 42.5rem) {
  .prozv-quiz__goal-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prozv-quiz__goals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

}

@media (max-width: 42.5rem) {
  .prozv-quiz__grid {
    grid-template-columns: 1fr;
  }

  .prozv-quiz__actions .prozv-button,
  .prozv-result__actions .prozv-button {
    width: 100%;
    text-align: center;
  }

  .prozv-chat__form {
    grid-template-columns: minmax(0, 1fr);
  }

  .prozv-chat__goal-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .prozv-chat {
    padding: clamp(14px, 4vw, 24px);
  }

  .prozv-chat__goal-form button {
    width: 100%;
  }

  .prozv-chat__message {
    max-width: 100%;
  }
}

@media (max-width: 30rem) {
  .prozv-quiz {
    margin-block: 0.75rem;
    border-radius: 10px;
  }

  .prozv-quiz__head,
  .prozv-quiz__form,
  .prozv-result {
    padding: 1.1rem;
  }

  .prozv-quiz__head {
    padding-bottom: 0.9rem;
  }

  .prozv-quiz__head h2 {
    font-size: clamp(1.7rem, 8vw, 2.15rem);
  }

  .prozv-quiz__step > legend {
    font-size: clamp(1.25rem, 6.6vw, 1.6rem);
  }

  .prozv-quiz__goal-category {
    grid-template-columns: 1.75rem minmax(0, 1fr);
    padding-inline: 0.75rem;
  }

  .prozv-quiz__inline-choices {
    display: grid;
    gap: 0.35rem;
  }

  .prozv-quiz__inline-choices label {
    width: 100%;
    padding-inline: 0.2rem;
  }

  .prozv-quiz__privacy-note,
  .prozv-result__notice,
  .prozv-result__order-state {
    padding: 0.8rem;
  }
}

@media (hover: none) {
  .prozv-button:hover {
    box-shadow: none;
    transform: none;
  }
}

@media (orientation: landscape) and (max-height: 34rem) {
  .prozv-chat__log {
    max-height: 12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prozv-quiz *,
  .prozv-quiz *::before,
  .prozv-quiz *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
