:root {
  --forest-green: #1B4332;
  --gold: #C9A84C;
  --warm-ivory: #FAF8F3;
  --pure-card: #FFFDF9;
  --sage: #E8EDE4;
  --charcoal: #2E2E2E;
  --muted-grey: #6E6E6E;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--warm-ivory);
  color: var(--charcoal);
  font-family: "Inter", sans-serif;
}

body {
  overflow-x: hidden;
}

.blueprint-app {
  width: 100%;
  min-height: 100vh;
  background: var(--warm-ivory);
}

.screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  padding: 36px 24px 48px;
  position: relative;
}

.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-header {
  text-align: center;
}

.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
  color: var(--forest-green);
}

.brand-tagline {
  margin-top: 4px;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted-grey);
}

.welcome-content {
  max-width: 760px;
  width: 100%;
  margin-top: 72px;
  text-align: center;
}

.product-label {
  margin: 0 0 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  color: var(--forest-green);
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 56px;
  line-height: 64px;
  font-weight: 600;
  color: var(--forest-green);
}

.intro-text {
  max-width: 560px;
  margin: 48px auto 0;
  font-size: 16px;
  line-height: 28px;
  color: var(--charcoal);
}

.btn {
  border: none;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  border-radius: 16px;
  padding: 16px 28px;
  transition: all 0.25s ease;
}

.btn-primary {
  margin-top: 40px;
  background: var(--forest-green);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--forest-green);
}

.diagnosis-note {
  margin: 64px auto 0;
  max-width: 600px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted-grey);
}

.privacy-note {
  margin-top: auto;
  margin-bottom: 24px;
  max-width: 760px;
  text-align: center;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted-grey);
}

/* Mobile */
@media (max-width: 768px) {
  .screen {
    padding: 28px 20px 40px;
  }

.welcome-content {
  margin-top: 56px;
}

  .product-label {
    font-size: 26px;
    line-height: 34px;
  }

  h1 {
    font-size: 42px;
    line-height: 50px;
  }

  .intro-text {
    margin-top: 36px;
    font-size: 15px;
    line-height: 26px;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .diagnosis-note {
    margin-top: 56px;
  }
}

.details-content {
  max-width: 820px;
  width: 100%;
  margin-top: 112px;
  text-align: center;
}

h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  line-height: 48px;
  font-weight: 600;
  color: var(--forest-green);
}

.details-intro {
  max-width: 520px;
  margin: 24px auto 0;
  font-size: 16px;
  line-height: 28px;
  color: var(--charcoal);
}

.form-card {
  width: 100%;
  max-width: 720px;
  margin: 32px auto 0;
  padding: 48px 56px 40px;
  background: var(--pure-card);
  border: 1px solid var(--sage);
  border-radius: 24px;
  box-shadow: 0 14px 44px rgba(27, 67, 50, 0.04);
}

.input-stack {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-stack input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  background: var(--warm-ivory);
  border: 1px solid var(--sage);
  border-radius: 16px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 24px;
  color: var(--charcoal);
  text-align: center;
  outline: none;
}

.input-stack input::placeholder {
  color: var(--muted-grey);
}

.input-stack input:focus {
  border-color: var(--forest-green);
}

.form-card .btn {
  margin-top: 24px;
}

.form-note {
  margin: 28px auto 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted-grey);
}

/* User Details Mobile */
@media (max-width: 768px) {
  .details-content {
    margin-top: 80px;
  }

  h2 {
    font-size: 34px;
    line-height: 42px;
  }

  .details-intro {
    font-size: 15px;
    line-height: 26px;
  }

  .form-card {
    padding: 36px 24px 32px;
  }
}

.question-content {
  max-width: 900px;
  width: 100%;
  margin-top: 72px;
  text-align: center;
}

.bloom-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lotus {
  width: 132px;
  height: 132px;
  position: relative;
}

.petal {
  width: 28px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage);
  position: absolute;
  left: 52px;
  top: 42px;
  transform-origin: 14px 24px;
  opacity: 0.9;
}

.petal.active {
  background: var(--forest-green);
  opacity: 1;
}

.petal-1 {
  transform: translateY(-38px);
}

.petal-2 {
  transform: rotate(45deg) translateY(-38px);
}

.petal-3 {
  transform: rotate(90deg) translateY(-38px);
}

.petal-4 {
  transform: rotate(135deg) translateY(-38px);
}

.petal-5 {
  transform: rotate(180deg) translateY(-38px);
}

.petal-6 {
  transform: rotate(225deg) translateY(-38px);
}

.petal-7 {
  transform: rotate(270deg) translateY(-38px);
}

.petal-8 {
  transform: rotate(315deg) translateY(-38px);
}

.lotus-center {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 57px;
  top: 57px;
}

.question-count {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted-grey);
}

.question-card {
  width: 100%;
  max-width: 800px;
  margin: 56px auto 0;
  padding: 32px;
  background: var(--pure-card);
  border: 1px solid var(--sage);
  border-radius: 24px;
  box-shadow: 0 14px 44px rgba(27, 67, 50, 0.04);
  text-align: center;
}

.question-number {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted-grey);
}

h3 {
  max-width: 660px;
  margin: 0 auto;
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  color: var(--forest-green);
}

.answer-row {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.answer-chip {
  min-height: 48px;
  padding: 12px 18px;
  background: var(--pure-card);
  border: 1px solid var(--sage);
  border-radius: 14px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
}

.answer-chip:hover {
  border-color: var(--forest-green);
}

.answer-chip.selected {
  background: var(--forest-green);
  border-color: var(--forest-green);
  color: #ffffff;
}

.helper-text {
  margin: 28px auto 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--muted-grey);
}

/* Question Screen Mobile */
@media (max-width: 768px) {
  .question-content {
    margin-top: 56px;
  }

  .lotus {
    width: 112px;
    height: 112px;
  }

  .petal {
    left: 42px;
    top: 34px;
  }

  .lotus-center {
    left: 47px;
    top: 47px;
  }

  .question-card {
    margin-top: 40px;
    padding: 28px 20px;
  }

  h3 {
    font-size: 26px;
    line-height: 34px;
  }

  .answer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .answer-chip {
    width: 100%;
  }
}

.animation-content {
  max-width: 760px;
  width: 100%;
  margin-top: 96px;
  text-align: center;
}

.animation-lotus {
  width: 160px;
  height: 160px;
  margin: 0 auto 64px;
  position: relative;
}

.animation-petal {
  width: 34px;
  height: 58px;
  border-radius: 50%;
  background: var(--sage);
  position: absolute;
  left: 63px;
  top: 51px;
  transform-origin: 17px 29px;
  opacity: 0.65;
  transition: all 0.5s ease;
}

.animation-petal.active {
  background: var(--forest-green);
  opacity: 1;
}

.animation-petal-1 {
  transform: translateY(-46px);
}

.animation-petal-2 {
  transform: rotate(45deg) translateY(-46px);
}

.animation-petal-3 {
  transform: rotate(90deg) translateY(-46px);
}

.animation-petal-4 {
  transform: rotate(135deg) translateY(-46px);
}

.animation-petal-5 {
  transform: rotate(180deg) translateY(-46px);
}

.animation-petal-6 {
  transform: rotate(225deg) translateY(-46px);
}

.animation-petal-7 {
  transform: rotate(270deg) translateY(-46px);
}

.animation-petal-8 {
  transform: rotate(315deg) translateY(-46px);
}

.animation-lotus-center {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 70px;
  top: 70px;
}

.animation-text {
  max-width: 520px;
  margin: 28px auto 0;
  font-size: 16px;
  line-height: 28px;
  color: var(--charcoal);
}

.animation-small-text {
  margin: 24px auto 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted-grey);
}

@media (max-width: 768px) {
  .animation-content {
    margin-top: 80px;
  }

  .animation-lotus {
    margin-bottom: 48px;
  }
}

.results-content {
  max-width: 900px;
  width: 100%;
  margin-top: 56px;
  text-align: center;
}

.result-lotus {
  width: 132px;
  height: 132px;
  margin: 0 auto 40px;
  position: relative;
}

.result-petal {
  width: 28px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest-green);
  position: absolute;
  left: 52px;
  top: 42px;
  transform-origin: 14px 24px;
}

.result-petal-1 {
  transform: translateY(-38px);
}

.result-petal-2 {
  transform: rotate(45deg) translateY(-38px);
}

.result-petal-3 {
  transform: rotate(90deg) translateY(-38px);
}

.result-petal-4 {
  transform: rotate(135deg) translateY(-38px);
}

.result-petal-5 {
  transform: rotate(180deg) translateY(-38px);
}

.result-petal-6 {
  transform: rotate(225deg) translateY(-38px);
}

.result-petal-7 {
  transform: rotate(270deg) translateY(-38px);
}

.result-petal-8 {
  transform: rotate(315deg) translateY(-38px);
}

.result-lotus-center {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 57px;
  top: 57px;
}

.results-intro {
  max-width: 580px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 28px;
  color: var(--charcoal);
}

.results-card {
  width: 100%;
  max-width: 800px;
  margin: 36px auto 0;
  padding: 32px;
  background: var(--pure-card);
  border: 1px solid var(--sage);
  border-radius: 24px;
  box-shadow: 0 14px 44px rgba(27, 67, 50, 0.04);
  text-align: left;
}

.result-section {
  width: 100%;
}

.section-label {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted-grey);
}

.result-section h3 {
  margin: 0;
  max-width: none;
  text-align: left;
}

.result-description {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 26px;
  color: var(--charcoal);
}

.result-divider {
  width: 100%;
  height: 1px;
  margin: 28px 0;
  background: #D9DDD5;
}

.drivers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.driver-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 16px;
  background: var(--warm-ivory);
  border: 1px solid var(--sage);
  border-radius: 14px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--charcoal);
}

.results-button-row {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--forest-green);
}

.btn-gold:hover {
  background: var(--forest-green);
  color: #ffffff;
}

.btn-secondary {
  background: var(--pure-card);
  color: var(--forest-green);
  border: 1px solid var(--forest-green);
}

.btn-secondary:hover {
  background: var(--forest-green);
  color: #ffffff;
}

.ethical-note {
  max-width: 760px;
  margin: 44px auto 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted-grey);
}

@media (max-width: 768px) {
  .results-content {
    margin-top: 48px;
  }

  .results-card {
    padding: 28px 20px;
  }

  .results-button-row {
    gap: 16px;
  }

  .results-button-row .btn {
    width: 100%;
    max-width: 320px;
  }
}

.save-report-note {
  max-width: 760px;
  margin: 28px auto 0;
  font-size: 13px;
  line-height: 22px;
  font-weight: 600;
  color: var(--charcoal);
}

.save-report-note + .ethical-note {
  margin-top: 16px;
}

.report-content {
  max-width: 900px;
  width: 100%;
  margin-top: 56px;
  text-align: center;
}

.report-intro {
  max-width: 620px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 28px;
  color: var(--charcoal);
}

.report-card {
  width: 100%;
  max-width: 820px;
  margin: 36px auto 0;
  padding: 32px;
  background: var(--pure-card);
  border: 1px solid var(--sage);
  border-radius: 24px;
  box-shadow: 0 14px 44px rgba(27, 67, 50, 0.04);
  text-align: center;
}

.report-card h3 {
  margin: 0;
  max-width: none;
  text-align: center;
}

.report-card-intro {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 15px;
  line-height: 26px;
  color: var(--charcoal);
}

.report-divider {
  width: 100%;
  height: 1px;
  margin: 24px 0;
  background: #D9DDD5;
}

.report-grid {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.report-item {
  min-height: 128px;
  padding: 20px;
  background: var(--warm-ivory);
  border: 1px solid var(--sage);
  border-radius: 18px;
  text-align: left;
}

.report-item h4 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
  color: var(--charcoal);
}

.report-item p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 22px;
  color: var(--muted-grey);
}

@media (max-width: 768px) {
  .report-content {
    margin-top: 48px;
  }

  .report-card {
    padding: 28px 20px;
  }

  .report-grid {
    grid-template-columns: 1fr;
  }
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Printable Report - Hidden on Screen */
.printable-report {
  display: none;
}

/* Print / PDF Styles */
@media print {
  body {
    background: #ffffff;
  }

  .blueprint-app > .screen {
    display: none !important;
  }

  .printable-report {
    display: block !important;
    background: #ffffff;
    color: #2E2E2E;
    font-family: "Inter", sans-serif;
  }

  .print-report-page {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 40px;
  }

  .print-brand {
    text-align: center;
    margin-bottom: 40px;
  }

  .print-brand h1 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
    line-height: 42px;
    font-weight: 600;
    color: #1B4332;
  }

  .print-brand p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 22px;
    color: #6E6E6E;
  }

  .print-user-block {
    margin-bottom: 32px;
    padding: 20px 24px;
    border: 1px solid #E8EDE4;
    border-radius: 16px;
    background: #FAF8F3;
  }

  .print-user-block p {
    margin: 6px 0;
    font-size: 14px;
    line-height: 22px;
  }

  .print-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #D9DDD5;
  }

  .print-label {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 18px;
    color: #6E6E6E;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .print-section h2 {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    line-height: 36px;
    font-weight: 600;
    color: #1B4332;
  }

  .print-section p {
    margin: 0;
    font-size: 14px;
    line-height: 24px;
    color: #2E2E2E;
  }

  .print-section ul {
    margin: 0;
    padding-left: 20px;
  }

  .print-section li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 22px;
  }

  .print-note {
    margin-top: 36px;
    padding: 18px 22px;
    border-radius: 16px;
    background: #FAF8F3;
    border: 1px solid #E8EDE4;
  }

  .print-note p {
    margin: 0;
    font-size: 12px;
    line-height: 20px;
    color: #6E6E6E;
  }

  @page {
    size: A4;
    margin: 18mm;
  }
}

@media print {
  .print-logo {
    width: 96px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
  }
}

.mobile-field-note {
  margin: -4px auto 0;
  max-width: 420px;
  font-size: 12px;
  line-height: 20px;
  color: var(--muted-grey);
}

/* Premium 3-Page Psychological Blueprint PDF */
.printable-report {
  display: none;
}

@media print {
  body {
    background: #ffffff;
  }

  .blueprint-app > .screen {
    display: none !important;
  }

  .printable-report {
    display: block !important;
    background: #ffffff;
    color: #2E2E2E;
    font-family: "Inter", sans-serif;
  }

  .print-report-page {
    width: 100%;
    max-width: 760px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 40px;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .page-break {
    page-break-before: always;
    break-before: page;
  }

  .print-brand {
    text-align: center;
    margin-bottom: 34px;
  }

  .print-logo {
    width: 92px;
    height: auto;
    display: block;
    margin: 0 auto 18px;
  }

  .print-brand h1 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
    color: #1B4332;
  }

  .print-brand p {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 22px;
    color: #6E6E6E;
  }

  .print-user-block {
    margin-bottom: 28px;
    padding: 18px 22px;
    border: 1px solid #E8EDE4;
    border-radius: 16px;
    background: #FAF8F3;
  }

  .print-user-block p {
    margin: 6px 0;
    font-size: 13px;
    line-height: 21px;
    color: #2E2E2E;
  }

  .print-page-heading {
    text-align: center;
    margin-bottom: 34px;
  }

  .print-page-heading h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
    color: #1B4332;
  }

  .print-page-heading p {
    max-width: 560px;
    margin: 12px auto 0;
    font-size: 13px;
    line-height: 22px;
    color: #6E6E6E;
  }

  .print-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #D9DDD5;
  }

  .print-section:first-of-type {
    margin-top: 0;
  }

  .print-label {
    margin: 0 0 10px;
    font-size: 11px;
    line-height: 18px;
    color: #6E6E6E;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
  }

  .print-section h2 {
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    line-height: 36px;
    font-weight: 600;
    color: #1B4332;
  }

  .print-section p {
    margin: 0;
    font-size: 13.5px;
    line-height: 23px;
    color: #2E2E2E;
  }

  .print-section ul {
    margin: 0;
    padding-left: 20px;
  }

  .print-section li {
    margin-bottom: 8px;
    font-size: 13.5px;
    line-height: 22px;
    color: #2E2E2E;
  }

  .print-note {
    margin-top: 28px;
    padding: 16px 20px;
    border-radius: 16px;
    background: #FAF8F3;
    border: 1px solid #E8EDE4;
  }

  .print-note p {
    margin: 0;
    font-size: 11.5px;
    line-height: 19px;
    color: #6E6E6E;
  }

  .print-review-box {
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: 18px;
    background: #FAF8F3;
    border: 1px solid #C9A84C;
  }

  .print-review-box h3 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
    color: #1B4332;
  }

  .print-review-box p {
    margin: 12px 0 0;
    font-size: 13.5px;
    line-height: 23px;
    color: #2E2E2E;
  }

  .print-review-link {
    font-weight: 600;
    color: #1B4332;
  }

  @page {
    size: A4;
    margin: 16mm;
  }
}

/* Polish: Fixed Question Card Alignment */
.question-content {
  max-width: 960px;
  width: 100%;
  margin-top: 64px;
}

.question-card {
  width: 800px;
  max-width: calc(100vw - 48px);
  min-height: 300px;
  margin: 56px auto 0;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.question-number {
  margin: 0 0 18px;
}

#questionText {
  width: 100%;
  max-width: 720px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
}

.answer-row {
  width: 100%;
  min-height: 52px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.answer-chip {
  min-width: 112px;
  white-space: nowrap;
}

.answer-chip:first-child,
.answer-chip:last-child {
  min-width: 170px;
}

/* Mobile Question Card Alignment */
@media (max-width: 768px) {
  .question-card {
    width: 100%;
    max-width: calc(100vw - 40px);
    min-height: 420px;
    padding: 28px 20px;
  }

  #questionText {
    min-height: 120px;
  }

  .answer-row {
    min-height: auto;
  }

  .answer-chip,
  .answer-chip:first-child,
  .answer-chip:last-child {
    min-width: 100%;
  }
}

/* Polish: Compact Question Screen */
#questionScreen {
  padding-top: 22px;
  padding-bottom: 28px;
}

#questionScreen .question-content {
  margin-top: 42px;
}

#questionScreen .bloom-progress {
  transform: scale(0.88);
  transform-origin: top center;
}

#questionScreen .question-card {
  width: 880px;
  max-width: calc(100vw - 48px);
  min-height: 260px;
  margin-top: 32px;
  padding: 28px 32px;
}

#questionScreen #questionText {
  min-height: 64px;
  max-width: 760px;
}

#questionScreen .answer-row {
  margin-top: 28px;
  flex-wrap: nowrap;
}

#questionScreen .answer-chip {
  min-width: auto;
  padding: 12px 18px;
}

#questionScreen .answer-chip:first-child,
#questionScreen .answer-chip:last-child {
  min-width: auto;
}

#questionScreen .helper-text {
  margin-top: 24px;
}

#questionScreen .privacy-note {
  margin-bottom: 12px;
}

/* Mobile remains stacked */
@media (max-width: 768px) {
  #questionScreen {
    padding-top: 20px;
  }

  #questionScreen .question-content {
    margin-top: 36px;
  }

  #questionScreen .bloom-progress {
    transform: scale(0.82);
  }

  #questionScreen .question-card {
    width: 100%;
    min-height: 400px;
    margin-top: 28px;
    padding: 26px 20px;
  }

  #questionScreen .answer-row {
    flex-wrap: wrap;
  }

  #questionScreen .answer-chip {
    width: 100%;
  }
}

/* Polish: Question Transition Effect */
#questionScreen .question-card {
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    filter 0.28s ease;
}

#questionScreen .question-card.question-changing {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  filter: blur(2px);
}

#questionScreen .question-count {
  transition: opacity 0.28s ease;
}

#questionScreen .question-count.question-changing {
  opacity: 0;
}

/* Polish: Results Overview Centre Alignment */
#resultsOverviewScreen .results-content {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#resultsOverviewScreen .results-card {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

#resultsOverviewScreen .results-button-row {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

#resultsOverviewScreen .results-button-row .btn {
  min-width: 220px;
}

#resultsOverviewScreen .btn-secondary {
  min-width: 300px;
}

/* Mobile Polish: Welcome Screen Above-the-Fold Fit */
@media (max-width: 768px) {
  #welcomeScreen {
    padding-top: 28px;
    padding-bottom: 28px;
    min-height: 100svh;
  }

  #welcomeScreen .brand-name {
    font-size: 30px;
    line-height: 36px;
  }

  #welcomeScreen .brand-tagline {
    font-size: 16px;
    line-height: 22px;
  }

  #welcomeScreen .welcome-content {
    margin-top: 64px;
  }

  #welcomeScreen .product-label {
    font-size: 34px;
    line-height: 42px;
    margin-bottom: 28px;
  }

  #welcomeScreen h1 {
    font-size: 58px;
    line-height: 66px;
  }

  #welcomeScreen .intro-text {
    margin-top: 44px;
    font-size: 22px;
    line-height: 36px;
  }

  #welcomeScreen .btn-primary {
    margin-top: 44px;
  }

  #welcomeScreen .diagnosis-note {
    margin-top: 36px;
    font-size: 13px;
    line-height: 21px;
  }

  #welcomeScreen .privacy-note {
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 20px;
  }
}

/* Extra compact for smaller phones */
@media (max-width: 430px) {
  #welcomeScreen .welcome-content {
    margin-top: 48px;
  }

  #welcomeScreen .product-label {
    font-size: 30px;
    line-height: 38px;
  }

  #welcomeScreen h1 {
    font-size: 50px;
    line-height: 58px;
  }

  #welcomeScreen .intro-text {
    margin-top: 36px;
    font-size: 20px;
    line-height: 32px;
  }

  #welcomeScreen .btn-primary {
    margin-top: 36px;
  }

  #welcomeScreen .diagnosis-note {
    margin-top: 30px;
  }
}

/* Final Mobile Welcome Screen Compact Override */
@media (max-width: 900px) {
  #welcomeScreen {
    padding: 22px 22px 24px !important;
    min-height: 100svh !important;
  }

  #welcomeScreen .brand-name {
    font-size: 26px !important;
    line-height: 30px !important;
  }

  #welcomeScreen .brand-tagline {
    font-size: 14px !important;
    line-height: 20px !important;
  }

  #welcomeScreen .welcome-content {
    margin-top: 44px !important;
    max-width: 100% !important;
  }

  #welcomeScreen .product-label {
    font-size: 28px !important;
    line-height: 34px !important;
    margin-bottom: 24px !important;
  }

  #welcomeScreen h1 {
    font-size: 44px !important;
    line-height: 50px !important;
  }

  #welcomeScreen .intro-text {
    margin-top: 30px !important;
    font-size: 17px !important;
    line-height: 28px !important;
  }

  #welcomeScreen .btn-primary {
    margin-top: 32px !important;
    padding: 14px 24px !important;
    min-height: 54px !important;
  }

  #welcomeScreen .diagnosis-note {
    margin-top: 28px !important;
    font-size: 12px !important;
    line-height: 19px !important;
  }

  #welcomeScreen .privacy-note {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
    font-size: 11px !important;
    line-height: 18px !important;
  }
}

@media (max-width: 430px) {
  #welcomeScreen .welcome-content {
    margin-top: 36px !important;
  }

  #welcomeScreen .product-label {
    font-size: 25px !important;
    line-height: 31px !important;
  }

  #welcomeScreen h1 {
    font-size: 39px !important;
    line-height: 45px !important;
  }

  #welcomeScreen .intro-text {
    margin-top: 26px !important;
    font-size: 16px !important;
    line-height: 26px !important;
  }

  #welcomeScreen .btn-primary {
    margin-top: 28px !important;
  }

  #welcomeScreen .diagnosis-note {
    margin-top: 24px !important;
  }
}

/* Final Mobile Compact Override: User Details Screen */
@media (max-width: 900px) {
  #userDetailsScreen {
    padding: 22px 18px 24px !important;
    min-height: 100svh !important;
  }

  #userDetailsScreen .details-content {
    margin-top: 42px !important;
    max-width: 100% !important;
  }

  #userDetailsScreen h2 {
    font-size: 38px !important;
    line-height: 44px !important;
    max-width: 720px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #userDetailsScreen .details-intro {
    margin-top: 22px !important;
    font-size: 20px !important;
    line-height: 32px !important;
    max-width: 680px !important;
  }

  #userDetailsScreen .form-card {
    margin-top: 34px !important;
    padding: 34px 24px 30px !important;
    border-radius: 24px !important;
  }

  #userDetailsScreen .input-stack {
    gap: 14px !important;
  }

  #userDetailsScreen .input-stack input {
    height: 58px !important;
    font-size: 18px !important;
    line-height: 26px !important;
    border-radius: 18px !important;
  }

  #userDetailsScreen .mobile-field-note {
    margin-top: 6px !important;
    font-size: 14px !important;
    line-height: 22px !important;
  }

  #userDetailsScreen .form-card .btn {
    margin-top: 24px !important;
    min-height: 56px !important;
    padding: 14px 24px !important;
    font-size: 18px !important;
  }

  #userDetailsScreen .form-note {
    margin-top: 20px !important;
    font-size: 12px !important;
    line-height: 20px !important;
  }

  #userDetailsScreen .privacy-note {
    margin-top: 18px !important;
    margin-bottom: 0 !important;
    font-size: 11px !important;
    line-height: 18px !important;
  }
}

@media (max-width: 430px) {
  #userDetailsScreen .details-content {
    margin-top: 34px !important;
  }

  #userDetailsScreen h2 {
    font-size: 32px !important;
    line-height: 38px !important;
  }

  #userDetailsScreen .details-intro {
    margin-top: 18px !important;
    font-size: 17px !important;
    line-height: 28px !important;
  }

  #userDetailsScreen .form-card {
    margin-top: 28px !important;
    padding: 28px 20px 26px !important;
  }

  #userDetailsScreen .input-stack input {
    height: 54px !important;
    font-size: 16px !important;
  }

  #userDetailsScreen .mobile-field-note {
    font-size: 12px !important;
    line-height: 20px !important;
  }

  #userDetailsScreen .form-card .btn {
    font-size: 16px !important;
  }
}

/* Safety Polish: Smaller Mobile Screens */
@media (max-width: 390px) {
  #userDetailsScreen .brand-name {
    font-size: 24px !important;
    line-height: 30px !important;
  }

  #userDetailsScreen .brand-tagline {
    font-size: 13px !important;
    line-height: 18px !important;
  }

  #userDetailsScreen .details-content {
    margin-top: 26px !important;
  }

  #userDetailsScreen h2 {
    font-size: 28px !important;
    line-height: 34px !important;
  }

  #userDetailsScreen .details-intro {
    font-size: 15px !important;
    line-height: 25px !important;
  }

  #userDetailsScreen .form-card {
    margin-top: 22px !important;
    padding: 24px 16px 22px !important;
  }

  #userDetailsScreen .input-stack input {
    height: 50px !important;
    font-size: 15px !important;
  }

  #userDetailsScreen .mobile-field-note {
    font-size: 11px !important;
    line-height: 18px !important;
  }

  #userDetailsScreen .form-card .btn {
    min-height: 52px !important;
    font-size: 15px !important;
  }
}

/* Final Mobile Compact Override: Question Screen */
@media (max-width: 900px) {
  #questionScreen {
    padding: 20px 16px 24px !important;
    min-height: 100svh !important;
  }

  #questionScreen .brand-name {
    font-size: 26px !important;
    line-height: 30px !important;
  }

  #questionScreen .brand-tagline {
    font-size: 14px !important;
    line-height: 20px !important;
  }

  #questionScreen .question-content {
    margin-top: 34px !important;
    max-width: 100% !important;
  }

  #questionScreen .bloom-progress {
    transform: scale(0.72) !important;
    transform-origin: top center !important;
    margin-bottom: -28px !important;
  }

  #questionScreen .question-count {
    margin-top: 10px !important;
    font-size: 14px !important;
    line-height: 20px !important;
  }

  #questionScreen .question-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    margin-top: 28px !important;
    padding: 28px 18px 24px !important;
    border-radius: 22px !important;
  }

  #questionScreen .question-number {
    display: none !important;
  }

  #questionScreen #questionText {
    min-height: auto !important;
    font-size: 34px !important;
    line-height: 42px !important;
    max-width: 100% !important;
    margin-bottom: 28px !important;
  }

  #questionScreen .answer-row {
    margin-top: 0 !important;
    gap: 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #questionScreen .answer-chip {
    width: 100% !important;
    min-height: 52px !important;
    padding: 10px 16px !important;
    font-size: 17px !important;
    line-height: 24px !important;
    border-radius: 16px !important;
  }

  #questionScreen .helper-text {
    margin-top: 18px !important;
    font-size: 13px !important;
    line-height: 20px !important;
  }

  #questionScreen .privacy-note {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    font-size: 11px !important;
    line-height: 18px !important;
  }
}

@media (max-width: 430px) {
  #questionScreen .question-content {
    margin-top: 26px !important;
  }

  #questionScreen .bloom-progress {
    transform: scale(0.66) !important;
    margin-bottom: -36px !important;
  }

  #questionScreen .question-card {
    margin-top: 20px !important;
    padding: 24px 16px 22px !important;
  }

  #questionScreen #questionText {
    font-size: 30px !important;
    line-height: 38px !important;
    margin-bottom: 24px !important;
  }

  #questionScreen .answer-chip {
    min-height: 48px !important;
    font-size: 16px !important;
  }
}

/* Final Mobile Question Screen Compression */
@media (max-width: 900px) {
  #questionScreen {
    padding: 16px 14px 20px !important;
  }

  #questionScreen .brand-name {
    font-size: 24px !important;
    line-height: 28px !important;
  }

  #questionScreen .brand-tagline {
    font-size: 13px !important;
    line-height: 18px !important;
  }

  #questionScreen .question-content {
    margin-top: 20px !important;
  }

  #questionScreen .bloom-progress {
    transform: scale(0.58) !important;
    transform-origin: top center !important;
    margin-bottom: -58px !important;
  }

  #questionScreen .question-count {
    font-size: 13px !important;
    line-height: 18px !important;
    margin-top: 8px !important;
  }

  #questionScreen .question-card {
    margin-top: 12px !important;
    padding: 22px 14px 18px !important;
    border-radius: 20px !important;
  }

  #questionScreen #questionText {
    font-size: 25px !important;
    line-height: 32px !important;
    margin-bottom: 20px !important;
  }

  #questionScreen .answer-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  #questionScreen .answer-chip {
    width: 100% !important;
    min-height: 46px !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    line-height: 19px !important;
    border-radius: 14px !important;
    white-space: normal !important;
  }

  #questionScreen .answer-chip:nth-child(5) {
    grid-column: 1 / -1 !important;
  }

  #questionScreen .helper-text {
    margin-top: 14px !important;
    font-size: 12px !important;
    line-height: 18px !important;
  }

  #questionScreen .privacy-note {
    margin-top: 6px !important;
    font-size: 10.5px !important;
    line-height: 16px !important;
  }
}

@media (max-width: 430px) {
  #questionScreen #questionText {
    font-size: 23px !important;
    line-height: 30px !important;
  }

  #questionScreen .answer-chip {
    min-height: 44px !important;
    font-size: 13.5px !important;
  }
}

/* Large Mobile Polish: Give Question Screen More Breathing Space */
@media (max-width: 900px) and (min-height: 780px) {
  #questionScreen .question-content {
    margin-top: 26px !important;
  }

  #questionScreen .bloom-progress {
    transform: scale(0.64) !important;
    margin-bottom: -46px !important;
  }

  #questionScreen .question-card {
    margin-top: 18px !important;
    padding: 28px 18px 26px !important;
    border-radius: 24px !important;
  }

  #questionScreen #questionText {
    font-size: 28px !important;
    line-height: 36px !important;
    margin-bottom: 26px !important;
  }

  #questionScreen .answer-row {
    gap: 12px !important;
  }

  #questionScreen .answer-chip {
    min-height: 52px !important;
    font-size: 15.5px !important;
    line-height: 22px !important;
    border-radius: 16px !important;
  }

  #questionScreen .helper-text {
    margin-top: 22px !important;
    font-size: 13.5px !important;
    line-height: 21px !important;
  }

  #questionScreen .privacy-note {
    margin-top: 8px !important;
    font-size: 11.5px !important;
    line-height: 18px !important;
  }
}

/* Mobile Polish: Results Overview Screen */
@media (max-width: 900px) {
  #resultsOverviewScreen {
    padding: 20px 16px 28px !important;
  }

  #resultsOverviewScreen .brand-name {
    font-size: 24px !important;
    line-height: 30px !important;
  }

  #resultsOverviewScreen .brand-tagline {
    font-size: 13px !important;
    line-height: 18px !important;
  }

  #resultsOverviewScreen .results-content {
    margin-top: 34px !important;
    max-width: 100% !important;
  }

  #resultsOverviewScreen .result-lotus {
    width: 110px !important;
    height: 110px !important;
    margin-bottom: 30px !important;
    transform: scale(0.92);
  }

  #resultsOverviewScreen h2 {
    font-size: 34px !important;
    line-height: 42px !important;
  }

  #resultsOverviewScreen .results-intro {
    margin-top: 14px !important;
    font-size: 15px !important;
    line-height: 25px !important;
  }

  #resultsOverviewScreen .results-card {
    margin-top: 30px !important;
    padding: 26px 20px !important;
    border-radius: 22px !important;
  }

  #resultsOverviewScreen .section-label {
    margin-bottom: 14px !important;
    font-size: 12px !important;
  }

  #resultsOverviewScreen .result-description {
    margin-top: 16px !important;
    font-size: 14px !important;
    line-height: 24px !important;
  }

  #resultsOverviewScreen .result-divider {
    margin: 24px 0 !important;
  }

  #resultsOverviewScreen .drivers-row {
    gap: 10px !important;
  }

  #resultsOverviewScreen .driver-chip {
    min-height: 38px !important;
    padding: 9px 14px !important;
    font-size: 13px !important;
  }

  #resultsOverviewScreen .results-button-row {
    margin-top: 32px !important;
    gap: 18px !important;
  }

  #resultsOverviewScreen .results-button-row .btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #resultsOverviewScreen .save-report-note {
    margin-top: 28px !important;
    font-size: 12px !important;
    line-height: 20px !important;
  }
}

/* Mobile Polish: Compact Report Preview Cards */
@media (max-width: 900px) {
  #reportPreviewScreen .report-card {
    padding: 24px 18px !important;
    border-radius: 22px !important;
  }

  #reportPreviewScreen .report-card h3 {
    font-size: 30px !important;
    line-height: 36px !important;
  }

  #reportPreviewScreen .report-card-intro {
    margin-top: 12px !important;
    font-size: 14px !important;
    line-height: 24px !important;
  }

  #reportPreviewScreen .report-divider {
    margin: 20px 0 !important;
  }

  #reportPreviewScreen .report-grid {
    gap: 12px !important;
  }

  #reportPreviewScreen .report-item {
    min-height: auto !important;
    padding: 16px 18px !important;
    border-radius: 16px !important;
  }

  #reportPreviewScreen .report-item h4 {
    font-size: 13px !important;
    line-height: 20px !important;
  }

  #reportPreviewScreen .report-item p {
    margin-top: 8px !important;
    font-size: 12.5px !important;
    line-height: 20px !important;
  }
}

/* PDF Fix: Remove Blank Pages Between Report Pages */
@media print {
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    background: #ffffff !important;
    overflow: visible !important;
  }

  .blueprint-app > .screen {
    display: none !important;
  }

  .printable-report {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .print-report-page {
    width: 100% !important;
    max-width: 170mm !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    page-break-inside: auto !important;
    break-inside: auto !important;
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .print-report-page:first-child {
    page-break-before: auto !important;
    break-before: auto !important;
  }

  .print-report-page.page-break {
    page-break-before: always !important;
    break-before: page !important;
  }

  @page {
    size: A4;
    margin: 16mm;
  }
}

/* Direct PDF Download Mode - Android Safe */
body.generating-pdf .printable-report {
  display: block !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 210mm !important;
  background: #ffffff !important;
  color: #2E2E2E !important;
  font-family: "Inter", sans-serif !important;
  z-index: 999999 !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

body.generating-pdf .print-report-page {
  width: 210mm !important;
  max-width: 210mm !important;
  min-height: 297mm !important;
  height: 297mm !important;
  margin: 0 !important;
  padding: 18mm 18mm !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  page-break-after: always !important;
  break-after: page !important;
}

body.generating-pdf .print-report-page:last-child {
  page-break-after: auto !important;
  break-after: auto !important;
}

body.generating-pdf .print-logo {
  width: 82px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto 16px !important;
}

body.generating-pdf .print-brand {
  text-align: center !important;
  margin-bottom: 30px !important;
}

body.generating-pdf .print-brand h1,
body.generating-pdf .print-page-heading h2,
body.generating-pdf .print-section h2,
body.generating-pdf .print-review-box h3 {
  font-family: "Cormorant Garamond", serif !important;
  color: #1B4332 !important;
}

body.generating-pdf .print-section,
body.generating-pdf .print-user-block,
body.generating-pdf .print-note,
body.generating-pdf .print-review-box {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

body.generating-pdf .print-report-page {
  width: 210mm !important;
  max-width: 210mm !important;
  min-height: 297mm !important;
  height: 297mm !important;
  margin: 0 !important;
  padding: 18mm 18mm !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  page-break-after: always !important;
  break-after: page !important;
}

body.generating-pdf .print-report-page:last-child {
  page-break-after: auto !important;
  break-after: auto !important;
}

body.generating-pdf .print-logo {
  width: 82px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto 16px !important;
}

body.generating-pdf .print-brand {
  text-align: center !important;
  margin-bottom: 30px !important;
}

body.generating-pdf .print-brand h1,
body.generating-pdf .print-page-heading h2,
body.generating-pdf .print-section h2,
body.generating-pdf .print-review-box h3 {
  font-family: "Cormorant Garamond", serif !important;
  color: #1B4332 !important;
}

body.generating-pdf .print-section,
body.generating-pdf .print-user-block,
body.generating-pdf .print-note,
body.generating-pdf .print-review-box {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

#finalDownloadReportBtn:disabled,
#finalDownloadReportBtn.report-downloaded {
  cursor: not-allowed;
  opacity: 0.82;
  box-shadow: none;
  transform: none;
}

/* Question counter mobile polish */
#questionCounter,
.question-counter,
.question-count,
.question-progress-text {
  font-size: 14px;
  line-height: 1.5;
  color: #6E6E6E;
  margin-top: 14px;
  margin-bottom: 26px;
  letter-spacing: 0.01em;
}

/* Add gentle breathing space below the lotus */
#lotusProgress,
.lotus-progress,
.lotus-container,
.bloom-lotus {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  #questionCounter,
  .question-counter,
  .question-count,
  .question-progress-text {
    font-size: 15px;
    margin-top: 16px;
    margin-bottom: 30px;
  }
}

/* Bring question counter closer to the question card on mobile */
@media (max-width: 768px) {
  #questionScreen .question-counter,
  #questionScreen .question-count,
  #questionScreen .question-progress-text,
  #questionScreen #questionCounter,
  #questionScreen #questionProgress,
  #questionScreen #questionNumber {
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin-top: 10px !important;
    margin-bottom: 8px !important;
  }

  #questionScreen .question-card,
  #questionScreen .question-box,
  #questionScreen .question-panel,
  #questionScreen .assessment-card,
  #questionScreen .card {
    margin-top: 16px !important;
  }

  #questionScreen .lotus-progress,
  #questionScreen .lotus-container,
  #questionScreen .bloom-lotus,
  #questionScreen .lotus {
    margin-bottom: 6px !important;
  }
}