/* ========================================
   QNR REPORT PAPER STYLES
   ======================================== */

/* ========================================
   MAIN CONTAINER & LAYOUT
   ======================================== */
.qnr-report-paper {
  margin: auto;
  max-width: 700px;
  padding: 20px;
 /* Base font for all elements */
}

.qnr-paper-container {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.2);
  border-radius: 19px;
  padding: 40px 40px 0px 40px;
  margin-bottom: 20px;
}

.qnr-paper-content-wrapper {
  position: relative;
  width: 100%;
}

.qnr-page {
  display: none;
  width: 100%;
}

.qnr-page.active {
  display: block;
  opacity: 1;
}

.qnr-page-content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.qnr-page[data-type="cover"] .qnr-page-content {
  justify-content: center;
  align-items: center;
}

.qnr-page-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========================================
   LOADING & ERROR STATES
   ======================================== */
.qnr-loading {
  text-align: center;
  padding: 60px 20px;
  color: #333333;
}

.qnr-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.qnr-error {
  text-align: center;
  padding: 60px 20px;
  color: #333333;
}

.qnr-error .qnr-error-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.qnr-error h3 {
  margin: 0 0 20px;
  color: #333333;
  font-size: 24px;
  font-weight: 700;
}

.qnr-error p {
  margin: 0 0 25px;
  color: #333333;
  font-size: 16px;
  font-weight: 500;
}

.qnr-retry-btn {
  background: #ce1111;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.qnr-retry-btn:hover {
  background: #9C0B0B;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(206, 17, 17, 0.3);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.qnr-paper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 60px;
}

.qnr-paper-header .qnr-logo-image {
  width: 70px;
  height: auto;
}

.qnr-paper-header .qnr-paper-website {
  font-size: 24px;
  font-weight: 500;
  color: #ce1111;
  text-decoration: none;
}

.qnr-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.qnr-content-title-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.qnr-content-logo {
  width: 60px;
  height: auto;
  object-fit: contain;
}

.qnr-page-title {
  font-size: 24px;
  font-weight: 700;
  color: #333333;
  margin: 0;
}

.qnr-page-badge {
  background: #ce1111;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.qnr-page-badge.qnr-badge-animated {
  opacity: 1;
  transform: translateX(0);
}

.qnr-page-badge.qnr-badge-hidden {
  display: none !important;
}

.qnr-page-divider {
  height: 3px;
  background: #ce1111;
  margin-bottom: 30px;
  border-radius: 2px;
}

/* ========================================
   COVER PAGE
   ======================================== */
.qnr-paper-main {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.qnr-speech-bubble {
  position: relative;
  background: #fff;
  border: 3px solid #ce1111;
  border-radius: 50px;
  padding: 30px 40px;
  margin: 10px 50px 10px 80px;
  max-width: 500px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.qnr-speech-bubble::before {
  content: '';
  position: absolute;
  background: #fff;
  border: 3px solid #ce1111;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  bottom: -15px;
  left: 35%;
}

.qnr-speech-bubble::after {
  content: '';
  position: absolute;
  background: #fff;
  border: 3px solid #ce1111;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  bottom: -30px;
  left: 32%;
}

.qnr-speech-bubble .qnr-greeting-text {
  font-size: 35px;
  font-weight: 700;
  color: #333333;
  line-height: 1.3;
  margin: 0;
}

.qnr-speech-bubble .qnr-greeting-text .qnr-greeting-name {
  color: #ce1111;
}

.qnr-speech-bubble .qnr-report-details {
  font-size: 18px;
  font-weight: 500;
  color: #333333;
  text-transform: uppercase;
}

.qnr-character-score-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  position: relative;
}

.qnr-character-score-section .qnr-character-image {
  width: 250px;
  height: auto;
  object-fit: contain;
}

/* Zoom tap entrance animation - 5 second cycle */
@keyframes zoomTapEntrance {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  10% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  90% {
    transform: scale(1.1);
    opacity: 1;
  }
  98% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.qnr-character-score-section .qnr-score-widget {
  text-align: center;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.qnr-character-score-section .qnr-score-widget .qnr-score-widget-content .qnr-score-label {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

.qnr-character-score-section .qnr-score-widget .qnr-score-widget-content .qnr-score-gauge {
  position: relative;
  width: 100px;
  height: 50px;
  margin: 0 auto 20px;
  border-radius: 15px;
}

.qnr-character-score-section .qnr-score-widget .qnr-score-widget-content .qnr-score-gauge .qnr-score-gauge-svg {
  width: 100%;
  min-height: 60px;
}

.qnr-character-score-section .qnr-score-widget .qnr-score-widget-content .qnr-score-gauge .qnr-score-gauge-bg {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 8;
  stroke-linecap: round;
}

.qnr-character-score-section .qnr-score-widget .qnr-score-widget-content .qnr-score-gauge .qnr-score-gauge-fill {
  fill: none;
  stroke: url(#gaugeGradient);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  stroke-dasharray: 0 125.66; /* Start with 0 length (invisible) - π * 40 */
}

.qnr-character-score-section .qnr-score-widget .qnr-score-widget-content .qnr-score-gauge .qnr-score-text {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 500;
  color: #000000;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s; /* Delay to appear after gauge fills */
}

/* Gauge Animation Classes */
.qnr-score-gauge.qnr-score-gauge-animated .qnr-score-gauge-fill {
  stroke-dasharray: var(--gauge-dasharray) !important;
}

.qnr-score-gauge.qnr-score-gauge-animated .qnr-score-text {
  opacity: 1 !important;
}

/* Summary gauge specific animation */
.qnr-score-gauge-container.qnr-score-gauge-animated .qnr-score-gauge-fill {
  stroke-dasharray: var(--summary-gauge-dasharray) !important;
}

.qnr-score-gauge-container.qnr-score-gauge-animated .qnr-score-text.qnr-score-text-visible {
  opacity: 1 !important;
}

.qnr-bmi-display {
  background: #f5f5f7;
  padding: 10px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 14px !important;
  font-weight: 600 !important;
}

/* ========================================
   MISSING CLASSES USED IN TEMPLATES/JS
   ======================================== */
.qnr-pain-area-tag,
.qnr-goal-tag {
  display: inline-block;
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  color: #6c757d;
  margin: 2px;
}

.qnr-pain-area-tag.active,
.qnr-goal-tag.active {
  background: #ce1111;
  border-color: #ce1111;
  color: #ffffff;
}

.qnr-nav-icon {
  width: 50px;
  height: auto;
  transition: transform 0.3s ease;
}

.qnr-current-page {
  font-weight: 700;
  color: #ce1111;
}

.qnr-total-pages {
  color: #666;
}

.qnr-pain-area-label {
  font-size: 14px;
  font-weight: 500;
  color: inherit;
}

/* ========================================
   TEXT CONTENT
   ======================================== */
.qnr-text-content p {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.qnr-static-text-section {
  width: 100%;
  text-align: justify;
  margin-bottom: 10px;
}

.qnr-static-text {
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.qnr-section-subtitle {
  font-size: 16px !important;
  font-weight: 600;
  color: #333;
  margin: 5px 0;
  text-align: justify;
}

.qnr-section-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.5;
  margin: 0;
  text-align: justify;
}

/* ========================================
   PROFILE SECTIONS
   ======================================== */
.qnr-profile-horizontal {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  margin-top: 20px;
}

.qnr-profile-image-section {
  display: flex;
  justify-content: center;
  width: 100%;
}

.qnr-profile-image {
  width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.qnr-profile-text-section {
  width: 100%;
  text-align: center;
}

.qnr-profile-static-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.qnr-profile-single-element {
  display: flex;
  flex-direction: row;
  gap: 30px;
  width: 100%;
  align-items: center;
}

.qnr-element-text-section {
  flex: 1;
  display: flex;
  align-items: center;
}

.qnr-single-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.5;
  margin: 0;
  text-align: justify;
}

/* ========================================
   BULLET POINTS
   ======================================== */
.qnr-bullet-points-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.qnr-bullet-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #ce1111;
}

.qnr-bullet-text {
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

/* ========================================
   PAIN ASSESSMENT
   ======================================== */
.qnr-pain-section-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.5;
  margin: 0;
  text-align: justify;
}

.qnr-pain-numbers-section {
  display: flex;
  flex-direction: row;
  gap: 30px;
  width: 100%;
}

.qnr-pain-number-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #ce1111;
}

.qnr-pain-number {
  font-size: 36px;
  font-weight: 700;
  color: #ce1111;
  margin-bottom: 10px;
}

.qnr-pain-number-text {
  font-size: 14px !important;
  font-weight: 400;
  color: #333333;
  line-height: 1.4;
  margin: 0;
}

.qnr-pain-section {
  width: 100%;
}

.qnr-pain-area-content {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  width: 100%;
}

.qnr-pain-area-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qnr-pain-area-item {
  font-size: 14px !important;
  font-weight: 400;
  color: #333333;
  padding: 8px 0;
}

.qnr-pain-area-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.qnr-pain-area-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 20px;
  font-size: 14px !important;
  font-weight: 500;
  color: #6c757d;
  cursor: default;
  transition: all 0.3s ease;
  min-height: 40px;
}

.qnr-pain-area-button.active {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.qnr-pain-area-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qnr-pain-area-button.active:hover {
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.qnr-prevention-content {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  margin: 10px 0;
}

.qnr-prevention-text {
  font-size: 14px !important;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
  text-align: justify;
}

.qnr-prevention-tips {
  background: white;
  padding: 20px;
  border-radius: 8px;
}

.qnr-prevention-tips h4 {
  color: #ce1111;
  font-size: 16px !important;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: 'montserrat', sans-serif;
}

.qnr-prevention-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qnr-prevention-tips li {
  padding-left: 25px;
  position: relative;
  font-size: 13px !important;
  color: #555;
  line-height: 1.2;
}

.qnr-prevention-tips li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ce1111;
  font-weight: bold;
  font-size: 16px;
}

.qnr-pain-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 300px;
}

.qnr-pain-slider-track {
  position: relative;
  width: 100%;
  height: 8px;
  background-color: #f5f5f7;
  border-radius: 4px;
  overflow: visible;
}

.qnr-pain-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #ce1111;
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.qnr-pain-slider-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-color: #333333;
  border-radius: 30%;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.qnr-pain-prevention-section {
  margin-top: 10px;
}

.qnr-pain-prevention-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.qnr-pain-intensity-content {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
  width: 100%;
}

.qnr-pain-intensity-scale {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.qnr-pain-intensity-number {
  font-size: 48px;
  font-weight: 700;
  color: #ce1111;
  margin-bottom: 10px;
}

.qnr-pain-intensity-label {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
}

.qnr-pain-intensity-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.qnr-pain-intensity-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.qnr-pain-exercises-section {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.qnr-pain-exercises-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

/* ========================================
   GOALS SECTIONS
   ======================================== */
.qnr-goals-section-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.5;
  margin: 0;
  text-align: justify;
}

.qnr-goals-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.qnr-goal-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px;
  background-color: #ffffff;
  border-left: 4px solid #ce1111;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qnr-goal-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qnr-goal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #ce1111;
  color: #ffffff;
  border-radius: 50%;
  font-size: 16px !important;
  font-weight: 700;
  flex-shrink: 0;
}

.qnr-goal-title {
  font-size: 18px !important;
  font-weight: 700;
  color: #ce1111;
  margin: 0;
  line-height: 1.3;
}

.qnr-goal-description {
  font-size: 14px !important;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
  padding-left: 40px;
}

/* ========================================
   MEDICAL SECTIONS
   ======================================== */
.qnr-medical-image-text-section,
.qnr-medical-text-image-section {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  align-items: center;
  margin-bottom: 10px;
}

.qnr-medical-image-half {
  flex: 1;
  display: flex;
  justify-content: center;
}

.qnr-medical-text-half {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.qnr-medical-section-image {
  max-width: 100% !important;
}

.qnr-medical-section-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.5;
  margin: 0;
  text-align: justify;
}

.qnr-medical-text-large .qnr-medical-section-text {
  font-size: 12px !important;
  font-weight: 400;
  color: #868484;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

.qnr-medical-importance-section {
  width: 100%;
  text-align: justify;
}

.qnr-medical-importance-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.qnr-text-has-diagnosis,
.qnr-text-no-diagnosis {
  display: none;
}

.qnr-text-has-pain,
.qnr-text-no-pain,
.qnr-text-low-pain,
.qnr-text-high-pain {
  display: none;
}

.qnr-text-active,
.qnr-text-sedentary,
.qnr-text-sports {
  display: none;
}

.qnr-text-male,
.qnr-text-female {
  display: none;
}

.qnr-text-underweight,
.qnr-text-normal,
.qnr-text-overweight {
  display: none;
}

.qnr-bullet-male,
.qnr-bullet-female,
.qnr-bullet-underweight,
.qnr-bullet-normal,
.qnr-bullet-overweight {
  display: none;
}

.qnr-text-has-medical-diagnosis,
.qnr-text-no-medical-diagnosis,
.qnr-text-has-medical-diagnosis-subtitle,
.qnr-text-no-medical-diagnosis-subtitle,
.qnr-text-has-medical-diagnosis-number,
.qnr-text-no-medical-diagnosis-number {
  display: none;
}

.qnr-text-has-posture-image,
.qnr-text-no-posture-image {
  display: none;
}

.qnr-medical-diagnostic-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.qnr-medical-diagnostic-container {
  width: 100%;
  padding: 20px 0;
}

.qnr-medical-diagnostic-title {
  font-size: 16px !important;
  font-weight: 700;
  color: #333333;
  margin-bottom: 8px;
}

.qnr-medical-diagnostic-subtitle {
  font-size: 16px !important;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.qnr-medical-diagnostic-spacer {
  height: 20px;
}

.qnr-medical-diagnostic-number {
  font-size: 72px !important;
  font-weight: 800;
  color: #333333;
  margin-bottom: 15px;
  line-height: 1;
}

.qnr-medical-diagnostic-description {
  font-size: 14px !important;
  font-weight: 400;
  color: #666666;
  line-height: 1.5;
  background: #f5f5f7;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  text-align: justify;
}

.qnr-medical-bottom-section .qnr-medical-text-large {
  max-width: 45%;
}

.qnr-medical-bottom-section .qnr-medical-image-small {
  max-width: 55%;
}

.qnr-medical-static-number {
  font-size: 28px !important;
  font-weight: 800;
  color: #333333;
  margin: 30px 0px 10px 0px;
  line-height: 1;
}

/* ========================================
   POSTURE ANALYSIS
   ======================================== */
.qnr-posture-single-image-section {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 30px;
}

.qnr-posture-main-image {
  width: 100%;
  max-width: 270px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.qnr-posture-circles-section {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  width: 100%;
}

.qnr-posture-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: justify;
  gap: 10px;
}

.qnr-posture-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, #ff0000, #ce1111); */
  background: linear-gradient(200deg, #ffffff, #ce1111);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 8px rgba(206, 17, 17, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qnr-posture-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 25px rgba(206, 17, 17, 0.4);
}

.qnr-circle-text {
  font-size: 18px !important;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.qnr-posture-circle-description {
  width: 100%;
}

.qnr-circle-description-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
}

.qnr-posture-importance-section {
  margin-bottom: 30px;
}

.qnr-posture-importance-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.qnr-posture-section-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.5;
  margin: 0;
  text-align: justify;
  margin-bottom: 20px;
}

.qnr-posture-analysis-image-section {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 30px;
}

.qnr-posture-analysis-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.qnr-posture-measurements-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
  background: #f5f5f7;
  border-radius: 10px;
  padding: 15px;
}

.qnr-measurements-top,
.qnr-measurements-bottom {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
  width: 100%;
}

.qnr-measurements-center {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 2rem;
}

.qnr-recommendations-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qnr-recommendation-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
}

.qnr-recommendation-icon {
  font-size: 1.5rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qnr-recommendation-text {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
}

.qnr-image-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qnr-measurements-image {
  border-radius: 8px;
}

.qnr-measurement-container {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  width: 50%;
}

.qnr-measurement-container > div:first-child {
  display: flex;
  gap: 10px;
}

.qnr-measurement-emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.qnr-measurement-type {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  text-transform: none;
  letter-spacing: 0.5px;
}

.qnr-measurement-degree {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 0.25rem;
}

.qnr-measurement-alignment {
  font-size: 0.9rem;
  font-weight: 500;
  color: #7f8c8d;
  margin: 0;
  line-height: 1.4;
}

/* ========================================
   POSTURE SCORE WIDGET
   ======================================== */
.qnr-posture-score-widget {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
}

.qnr-posture-score-content {
  flex: 1;
}

.qnr-posture-score-title {
  font-size: 16px !important;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.qnr-posture-score-value {
  font-size: 24px !important;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.qnr-posture-score-progress {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.qnr-posture-score-progress-bar {
  height: 100%;
  background: #ce1111;
  border-radius: 2px;
  transition: width 0.5s ease;
  width: 0%;
}

.qnr-posture-score-icon {
  width: 50px;
  height: 50px;
  background: #ce1111;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
}

.qnr-posture-score-icon-content {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

/* ========================================
   SUMMARY SECTIONS
   ======================================== */
.qnr-summary-importance-section {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.qnr-summary-importance-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.qnr-score-title-section {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.qnr-score-title-text {
  font-size: 24px !important;
  font-weight: 700;
  color: #ce1111;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.qnr-score-arch-section {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 30px;
}

.qnr-score-gauge-container {
  position: relative;
  width: 200px;
  height: 100px;
}

.qnr-score-gauge-svg {
  width: 100%;
  height: 100%;
  overflow: visible !important;
}

.qnr-score-gauge-bg {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 8;
}

.qnr-score-gauge-fill {
  fill: none;
  stroke: url(#summaryGaugeGradient);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  stroke-dasharray: 0 125.66; /* Start with 0 length (invisible) - π * 40 */
}

.qnr-score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px !important;
  font-weight: 700;
  color: #000000;
  opacity: 0 !important; /* Force hidden initially */
  transition: opacity 0.5s ease; /* Smooth fade in when triggered by JS */
}

.qnr-score-text.qnr-score-text-visible {
  opacity: 1 !important; /* Only show when explicitly made visible by JS */
}

.qnr-summary-paragraph-section {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.qnr-summary-paragraph-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #333333;
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.qnr-improvement-button-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.qnr-improvement-button {
  background: #ce1111 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 18px 35px !important;
  border-radius: 25px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  font-family: 'Montserrat', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(206, 17, 17, 0.3) !important;
}

.qnr-improvement-button:hover {
  background: #9C0B0B;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(206, 17, 17, 0.4);
}

/* ========================================
   CLOSING PAGE
   ======================================== */
.qnr-closing-content {
  text-align: center;
  padding: 60px 0px;
  display: flex;
  flex-direction: column;
}

.qnr-closing-image-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.qnr-closing-button-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: -50px;
}

.qnr-closing-button {
  background: #ce1111 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 25px 45px !important;
  border-radius: 15px !important;
  font-size: 38px !important;
  font-weight: 700 !important;
  font-family: 'Montserrat', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  cursor: pointer !important;
}

.qnr-closing-button:hover {
  background: #9C0B0B !important;
}

.close-cover-btn {
  padding-bottom: 25px !important;
}

.qnr-closing-free-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.qnr-closing-free-text {
  font-size: 35px !important;
  font-weight: 700;
  color: #333;
}

.qnr-closing-free-image {
  width: 180px;
  position: absolute;
  right: 50px;
  margin-top: -70px;
  cursor: pointer;
  /* Prepare for entrance animation */
  transform: scale(1);
  transition: transform 0.3s ease;
}

/* Entrance animation triggered by class - zoom in/out like a tap effect */
.qnr-closing-free-image.animate-entrance {
  animation: zoomTapEntrance 5s ease-out infinite;
}


.qnr-closing-title {
  font-size: 48px !important;
  font-weight: 700;
  color: #ce1111;
  margin: 0 0 30px 0;
}

.qnr-closing-text {
  font-size: 24px !important;
  font-weight: 500;
  color: #333333;
  margin: 0 0 40px 0;
}

.qnr-contact-info {
  padding: 30px;
  background: #f9f9f9;
  border-radius: 15px;
  border-left: 4px solid #ce1111;
}

.qnr-contact-info p {
  font-size: 18px !important;
  font-weight: 500;
  color: #333333;
  margin: 0 0 10px 0;
}

.qnr-contact-info p:last-child {
  margin-bottom: 0;
}

.qnr-monitoring-content {
  margin-bottom: 30px;
}

/* ========================================
   FOOTER & NAVIGATION
   ======================================== */
.qnr-page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  margin-top: auto;
  border-radius: 25px;
}

.qnr-nav-btn {
  background: none !important;
  gap: 10px;
}

.qnr-nav-btn span{ 
  font-size: 24px !important;
  font-weight: 500;
  color: #333333;
  text-transform: capitalize;
}

.qnr-next-btn img:hover {
  transform: translateX(5px) rotate(180deg) !important;
}

.qnr-prev-btn img:hover {
  transform: translateX(-5px) !important;
}

.qnr-page-indicator {
  font-size: 18px !important;
  font-weight: 500;
  color: #b7b7b7;
}

.qnr-page[data-type="cover"] .qnr-page-footer {
  display: none !important;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
.qnr-paper-content::-webkit-scrollbar {
  width: 6px;
}

.qnr-paper-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.qnr-paper-content::-webkit-scrollbar-thumb {
  background: #ce1111;
  border-radius: 3px;
}

.qnr-paper-content::-webkit-scrollbar-thumb:hover {
  background: #9C0B0B;
}

/* ========================================
   MOBILE STYLES (768px and below)
   ======================================== */
@media (max-width: 768px) {
  /* Mobile container - full width, no shadow */
  .qnr-paper-container {
    box-shadow: none;
    border-radius: 0;
    padding: 20px 15px 0px 15px;
    width: 100%;
    max-width: 100%;
  }
  .qnr-report-paper{
    padding: 0;
  }

  .qnr-speech-bubble .qnr-greeting-text{
    font-size: 28px !important;
  }

  .qnr-speech-bubble{
    margin: 0;
    gap: 20px;
  }

  .qnr-character-score-section{
    margin-top: 0;
    flex-direction: column;
  }

  .qnr-bullet-points-section {
    grid-template-columns: 1fr;
  }

  .qnr-image-text-section {
    margin-bottom: 0;
  }

  .qnr-closing-free-image{
    width: 150px;
    right: 0px;
    margin-top: -60px;
  }

  .qnr-pain-image-text-section{
    margin-bottom: 0;
  }

  .qnr-closing-button{
    padding: 25px 35px !important;
    font-size: 28px !important;
  }

  .qnr-closing-free-text{
    font-size: 28px !important;
  }

  /* Mobile content - space for fixed footer */
  .qnr-paper-content {
    padding-bottom: 100px;
  }

  /* Mobile footer - fixed at bottom */
  .qnr-page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 15px 20px;
    margin-top: 0;
    border-radius: 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
}

/* ====================================
   GIF Overlay Animation Styles
   ==================================== */

.gif-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.gif-container {
  text-align: center;
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
}

.gif-animation {
  width: 300px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.gif-text {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
  line-height: 1.4;
}

/* Mobile responsive for GIF overlay */
@media (max-width: 768px) {
  .gif-container {
    padding: 30px 20px;
    margin: 20px;
  }
  
  .gif-text {
    font-size: 16px;
  }
}

/* ========================================
   MEASUREMENTS IMAGE MODAL
   ======================================== */

.qnr-measurements-image-trigger {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  cursor: zoom-in;
  display: block;
}

.qnr-measurements-image-trigger:focus-visible {
  outline: 2px solid #d62828;
  outline-offset: 4px;
  border-radius: 12px;
}

.qnr-measurements-image-trigger .qnr-measurements-image {
  transition: transform 0.2s ease;
  border-radius: 16px;
}

.qnr-measurements-image-trigger:hover .qnr-measurements-image {
  transform: scale(1.01);
}

body.qnr-modal-open {
  overflow: hidden;
}

.qnr-image-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.qnr-image-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.qnr-image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.qnr-image-modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.qnr-image-modal-close {
      /* background: rgba(0, 0, 0, 0.7); */
    /* border: none; */
    /* color: #fff; */
    /* font-size: 28px; */
    /* width: 40px; */
    /* height: 40px; */
    /* border-radius: 50%; */
    cursor: pointer !important;
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* transition: background 0.2s 
ease; */
    border-radius: 50px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.qnr-image-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.qnr-image-modal-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.qnr-image-modal-img.is-zoomed {
  transform: scale(1.15);
  cursor: zoom-out;
}

.qnr-image-modal-hint {
  color: #f1f1f1;
  font-size: 14px;
  align-self: center;
  text-align: center;
  font-weight: 500;
}

/* ========================================
   IMAGE STANDARDS - RESPONSIVE & CONSISTENT
   ======================================== */

/* STANDARD 1: Full Width Images (singure pe rând) */
.qnr-single-image-container,
.qnr-pain-single-image-section,
.qnr-posture-single-image-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  padding: 0 20px;
}

.qnr-single-image,
.qnr-pain-main-image,
.qnr-posture-main-image {
  width: 100%;
  max-width: 600px !important;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.qnr-posture-main-image{
  width: 70% !important;
}

/* STANDARD 2: 60-40 Layout Images (imagine + text sau text + imagine) */
.qnr-text-image-section,
.qnr-image-text-section,
.qnr-pain-image-text-section,
.qnr-medical-text-image-section,
.qnr-medical-image-text-section,
.qnr-posture-image-text-section {
  display: flex;
  flex-direction: row;
  gap: 25px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}

.qnr-goals-text-image-section{
  display: flex;
  flex-direction: row;
  gap: 25px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

/* Text sections - 60% width */
.qnr-text-half,
.qnr-pain-text-half,
.qnr-goals-text-half,
.qnr-medical-text-half,
.qnr-posture-text-half {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;
}

/* Image sections - 40% width */
.qnr-image-half,
.qnr-pain-image-half,
.qnr-goals-image-half,
.qnr-medical-image-half,
.qnr-posture-image-half {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Image sizing in 60-40 layouts */
.qnr-section-image,
.qnr-pain-section-image,
.qnr-goals-section-image,
.qnr-medical-section-image,
.qnr-posture-section-image {
  width: 100%;
  max-width: 300px !important;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto;
  display: block;
}

/* STANDARD 3: Profile/Special Layout Images */
.qnr-profile-image-section,
.qnr-element-image-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.qnr-profile-image-section img{
  max-width: 500px !important;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

.qnr-element-image-section img {
  width: 100%;
  max-width: 300px !important;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

/* STANDARD 4: Small Icons & Logos */
.qnr-logo-image,
.qnr-content-logo {
  width: auto;
  height: 50px;
  max-height: 70px;
  object-fit: contain;
}

.qnr-nav-icon {
  width: 40px;
  height: auto;
  object-fit: contain;
}

/* STANDARD 5: Character/Special Images */
.qnr-character-image {
  width: 100%;
  max-width: 250px !important;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
  /* Switch 60-40 layouts to vertical stack */
  .qnr-text-image-section,
  .qnr-pain-image-text-section,
  .qnr-goals-text-image-section,
  .qnr-medical-text-image-section,
  .qnr-medical-image-text-section,
  .qnr-posture-image-text-section {
    flex-direction: column;
    gap: 15px;
  }

  .qnr-image-text-section{
    flex-direction: column-reverse;
  }
  
  /* Reset flex for mobile - full width */
  .qnr-text-half,
  .qnr-image-half,
  .qnr-pain-text-half,
  .qnr-pain-image-half,
  .qnr-goals-text-half,
  .qnr-goals-image-half,
  .qnr-medical-text-half,
  .qnr-medical-image-half,
  .qnr-posture-text-half,
  .qnr-posture-image-half {
    flex: 1 1 100%;
  }
  
  /* Images at 50% width on mobile/tablet */
  .qnr-section-image,
  .qnr-goals-section-image,
  .qnr-medical-section-image,
  .qnr-posture-section-image {
    max-width: 95%;
  }

  
  .qnr-pain-section-image{
    max-width: 50% !important;
  }
  
  /* Single images also at 50% on mobile */
  .qnr-single-image,
  .qnr-pain-main-image,
  .qnr-posture-main-image {
    max-width: 95% !important;
  }
  
  /* Profile images slightly smaller on mobile */
  .qnr-profile-image-section img,
  .qnr-element-image-section img {
    max-width: 95% !important;
  }
  
  .qnr-character-image {
    max-width: 95% !important;
  }

  .qnr-medical-bottom-section .qnr-medical-text-large{
    max-width: 100% !important;
  }

  .qnr-profile-single-element{
    flex-direction: column;
  }

  .qnr-medical-bottom-section .qnr-medical-image-small{
    max-width: 100% !important;
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  /* Further reduce padding on small screens */
  .qnr-single-image-container,
  .qnr-pain-single-image-section,
  .qnr-posture-single-image-section {
    padding: 0 10px;
  }

  .qnr-image-text-section{
    flex-direction: column-reverse;
  }
  
  /* Smaller logos on mobile */
  .qnr-logo-image,
  .qnr-content-logo {
    height: 40px;
  }
  
  /* Keep images at 50% on very small screens */
  .qnr-section-image,
  .qnr-goals-section-image,
  .qnr-medical-section-image,
  .qnr-posture-section-image,
  .qnr-single-image,
  .qnr-pain-main-image,
  .qnr-posture-main-image,
  .qnr-profile-image-section img,
  .qnr-element-image-section img,
  .qnr-character-image {
    max-width: 95% !important;
  }

  .qnr-medical-bottom-section .qnr-medical-text-large{
    max-width: 100% !important;
  }

  .qnr-profile-single-element{
    flex-direction: column;
  }

  .qnr-pain-section-image{
    max-width: 50% !important;
  }

  .qnr-medical-bottom-section .qnr-medical-image-small{
    max-width: 100% !important;
  }
}