:root {
  --font-size-multiplier: 12px;
}

.quiz-loading {
  visibility: hidden;
  opacity: 0;
  transition: none; /* No transition on initial hide */
}

/* Quiz ready state - smooth reveal */
.quiz-ready {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #f5f6f6;
}

.pmq-question-block {
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
}

.pmq-question-block img {
  width: 80%;
  height: auto;
  display: block;
  max-width: 100%;
  margin: 0 auto;
  margin-bottom: 20px;
}

.padding-global-copy {
  height: 100%;
  padding-left: 5%;
  padding-right: 5%;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px #00000026;
}

/* Container */
.pmq {
  max-width: none;
  margin: 0;
  padding: 0 24px; /* side gutters */
  padding-top: 64px; /* space below back button to logo */
  text-align: center;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: 24px; /* space above progress bar */
}


.pmq-back {
  position: fixed;
  top: 16px;
  left: 20px;
  background: #f5f6f6;
  border: 0;
  color: #4c5c74;
  font-weight: 400;
  font-size: 17px;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 1000;
  opacity: 0;
}

.pmq-back.back-visible {
  opacity: 1;
}

.pmq-back.back-hidden {
  opacity: 0;
}

.pmq-back svg {
  stroke: #4c5c74; 
}

.pmq-back-arrow {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.pmq-back-arrow svg {
  width: 24px;
  height: 24px;
  display: block;
}

.pmq-back:focus-visible {
  outline: 3px solid #68af85;
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .pmq-back { 
    top: 20px; 
    left: 24px; 
  }
}

@media (min-width: 768px) {
  .pmq-back { 
    top: 24px; 
    left: 32px; 
  }
}

/* Centered logo */
.pmq-logo {
  position: absolute;
  top: 64px; /* Matches the padding-top of .pmq */
  left: 50%; 
  transform: translateX(-50%);
  width: 220px !important;
  max-width: 220px !important;
  min-width: 200px !important;
  margin: 0;
  z-index: 1;
}

/* Hide logo on small viewport heights */
@media (max-height: 940px) {
  .pmq-logo {
    display: none !important;
  }
}

.gauge.medium-small {
  transform: scale(0.8); /* 80% of original size */
}

/* Progress bar */
.pmq-progress {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px; /* 24px from bottom on mobile for more breathing room */
  width: calc(100% - 32px); /* 16px padding per side */
  height: 12px; /* 12px high on mobile for thicker bar */
  background: #d9dee6; /* Updated: Light gray-blue unfilled track */
  border-radius: 50px; /* Fully rounded ends */
  overflow: hidden;
  margin: 0;
  z-index: 10;
}

.pmq-progress__bar {
  height: 100%;
  background: #4c5c74; /* Slate navy fill to match answer buttons */
  border-radius: inherit;
  transition: none !important; 
}

/* Content block - centers the entire question+answers unit */
.pmq-content-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 50px)); /* Move up 50px from center */
  width: 100%;
  max-width: calc(100% - 96px); /* Even more side gutters: 48px each side for extra whitespace */
}

.wide-content-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 50px)); /* Move up 50px from center */
  width: 100%;
  max-width: calc(100% - 60px); /* Even more side gutters: 48px each side for extra whitespace */
}

.XL-wide-content-block {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 50px)); /* Move up 50px from center */
  width: 100%;
  max-width: calc(100% - 20px); /* Even more side gutters: 48px each side for extra whitespace */
}

/* Question */
.pmq-question {
  text-align: center;
  color: #4c5c74; 
  font-weight: 500; /* Medium weight */
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
}

.intro-question {
  text-align: center;
  color: #4c5c74; 
  font-weight: 600; /* Medium weight */
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 30px; /* Reduced space below question to first button */
  margin-left: auto;
  margin-right: auto;
}

.pmq-header {
  text-align: center;
  color: #4c5c74; 
  font-weight: 600; /* Medium weight */
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 16px; /* Reduced space below question to first button */
  margin-left: auto;
  margin-right: auto;
}

#result1-question-block {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1s ease-in;
}

.case-strength-block {
  margin: 15px auto 10px auto;
  text-align: center;
  color: #4c5c74;
  max-width: 400px;
  width: 100%;
}

.case-strength-block h2 {
  font-size: 24px; /* match other h2 */
  font-family: inherit; /* match other h2 */
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 16px;
  color: #4c5c74;
}

.case-strength-block h3 {
  font-size: 1.3em; 
  font-family: inherit; 
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 16px;
  color: #4c5c74;
}

.reasonAndFollowUp #result1-case-reason  {
  list-style: none; /* remove default bullets */
  margin: 0 auto; /* center the list */
  padding: 0;
  text-align: left; /* left-align the list */
  max-width: 350px; /* slightly wider for mobile */
  display: flex;
  flex-direction: column;
  gap: 12px; /* space between cards */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-out, visibility 0s linear 0s;
}

.reasonAndFollowUp #result1-case-reason li  {
  font-size: 18px; /* increased from 16px to 18px */
  color: #4c5c74;
  margin-bottom: 0; /* remove margin since we're using gap */
  font-family: inherit;
  text-align: left; /* left-align for better readability */
  font-weight: 600;
  line-height: 1.4; /* better line height for readability */
  padding: 14px 16px 14px 56px; /* increased left padding from 44px to 56px */
  position: relative; /* for positioning the checkmark */
  background: #f8f9fa; /* light background for card */
  border: 1px solid #4c5c74; /* blue border matching text color */
  border-radius: 8px; /* rounded corners */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* subtle shadow */
}

.reasonAndFollowUp #result1-case-reason li::before {
  content: "✓"; /* checkmark character */
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%); /* center vertically */
  color: #9cc443; /* green color to match gauge */
  font-size: 20px; /* slightly smaller for card format */
  font-weight: bold;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff; /* white background for checkmark */
  border-radius: 50%; /* circular background */
  border: 2px solid #9cc443; /* green border */
}

/* The container itself */
.reasonAndFollowUp {
  height: 360px;
  width: 100%;
  max-width: 320px;
  margin: 15px auto 10px auto;
  text-align: center;
  color: #4c5c74;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
}

/* Question block visibility controls */
.reasonAndFollowUp #result1-question-block {
  display: none;
  margin-top: 30px;
}

.reasonAndFollowUp #result1-question-block.visible {
  display: block;
}


/* Options - grouped with question */
.pmq-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px; /* 16px between buttons */
  margin: 0 auto;
  width: 280px;
}

.pmq-option {
  min-width: 0;
  padding: 12px 16px;
  background: #4c5c74;
  color: #f5f6f6; 
  border: 2px solid #f5f6f6;
  border-radius: 8px;
  font-weight: 500;
  font-size: 20px;  text-align: center;
  line-height: 1.3;
  min-height: 44px;
  cursor: pointer;
  display: block;
}

.pmq-option[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.pmq-option-cta {
  min-width: 0;
  padding: 12px 16px;
  background: #b98f1d;
  color: #f5f6f6; 
  border: 2px solid #f5f6f6;
  border-radius: 8px;
  font-weight: 500;
  font-size: 20px;  text-align: center;
  line-height: 1.3;
  min-height: 44px;
  cursor: pointer;
  display: block;
}


.pmq-option-lite {
  min-width: 0;
  padding: 12px 16px;
  background: #f5f6f6;
  color: #4c5c74; 
  border: 2px solid #4c5c74;
  border-radius: 8px;
  font-weight: 500;
  font-size: 20px;  text-align: center;
  line-height: 1.3;
  min-height: 44px;
  cursor: pointer;
  display: block;
}

@media (hover: hover) {
  .pmq-option:hover {
    background-color: #b98f1d;
  }
}

.answer-button.selected {
  background-color: #b98f1d;   /* Rich gold fill */
  color: #f5f6f6;              /* Navy text */
}

.answer-button:focus-visible {
  outline: 2px solid #b98f1d;
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .pmq { padding-top: 32px; }
  .pmq-progress { bottom: 12px; height: 12px; }
  .pmq-logo { width: 140px; }
  .pmq-options { max-width: 400px; }
  .pmq-option {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    font-size: 20px;
  }
  .pmq-option { min-height: 48px; }
}

/* Desktop */
@media (min-width: 768px) {
  .pmq { padding-top: 32px; }
  .pmq-progress { bottom: 16px; height: 12px; }
  .pmq-logo { width: 160px; }
  .pmq-question { max-width: 480px; font-size: 22px; }
  .pmq-options { max-width: 400px; }
  .pmq-option { min-height: 52px; font-size: 22px; }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .pmq-logo { width: 180px; }
}

.gauge {
  font-family: Arial, Helvetica, sans-serif;
  background: #e7e7e7;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.09), 0 0 35px 5px rgba(255, 255, 255, 0.29);
  width: 300px;
  height: 150px;
  border-radius: 150px 150px 0 0;
  position: relative;
  overflow: hidden;
  -webkit-transform-style: flat;
  transform-style: flat;
  -webkit-transform: translateZ(0px);
  transform: translateZ(0px);
  margin: 0 auto;
  display: block;
  margin-bottom: 0;
}

.gauge.min-scaled {
  transform: scale(0.5);
}

.needle {
  width: 117px;
  height: 10.5px;
  background: #4c5c74;
  border-bottom-left-radius: 100%;
  border-bottom-right-radius: 7.5px;
  border-top-left-radius: 100%;
  border-top-right-radius: 7.5px;
  position: absolute;
  bottom: 16px;
  left: 150px;
  transform-origin: 0% 50%;
  animation: speed 5s infinite;
  box-shadow: 0 3px 3px 1.5px rgba(0, 0, 0, 0.38);
  transform: rotate(0deg) translateX(-100%); /* change to move the needle! */
  z-index: 1000;
}

.gauge-center-dot {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 30px;
  height: 30px;
  background: #4c5c74;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1200;
}

.gauge-center {
  content: '';
  color: #fff;
  width: 75%;
  height: 75%;
  background: #f5f6f6;
  border-radius: 150px 150px 0 0;
  position: absolute;
  box-shadow: 0 -19.5px 22.5px -15px rgba(0, 0, 0, 0.28);
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
}

.gauge-center .label, .gauge-center .number {display:block; width: 100%; text-align: center; border:0!important;}
.gauge-center .label {font-size:1.125em; opacity:0.6; margin:1.65em 0 0.45em 0;}
.gauge-center .number {font-size:1.8em;}
.gauge-wrapper {
  position: relative;
  width: 300px; /* or your gauge width, adjust if needed */
  margin: 0 auto;
  margin-bottom: 0;
}

.gauge-bar-mask {
  position: absolute;
  left: 0;
  right: 0;
  height: 7px;
  background: #f5f6f6;
  z-index: 200;
  top: calc(100% - 18px);
  pointer-events: none;
}

.slice-colors .st {
  position: absolute;
  bottom: 0;
  width: 90px;
  height: 0;
  border-bottom: 120px solid #000;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
}

.slice-colors .st.slice-item:nth-child(1) {
  border-bottom-color: #f1553c;
  left: -7.5px;
}

.slice-colors .st.slice-item:nth-child(2) {
  border-bottom-color: #f9bd3f;
  transform: rotate(145deg);
  transform-origin: right;
  top: 18px;
  left: -45px;
}

.slice-colors .st.slice-item:nth-child(3) {
  border-bottom-color: #f9bd3f;
  transform: rotate(225deg);
  transform-origin: right;
  top: -75px;
  left: 37.5px;
}

.slice-colors .st.slice-item:nth-child(4) {
  border-bottom-color: #9cc443;
  transform: rotate(35deg);
  transform-origin: right;
  right: -15px;
  bottom: -42px;
}

.slice-colors .st.slice-item:nth-child(5) {
  border-bottom-color: #9cc443;
  transform: rotate(28deg);
  transform-origin: right;
  right: -15px;
  bottom: -75px;
}

.footer3_component.color-scheme-5-copy {
  --_camden-peak---footer-bg: #232f3e;
  --_camden-peak---footer-legal-text: #b8b8b8;
  --_camden-peak---footer-links-color: #ffffff;
  --_ui-styles---stroke--divider-width: 1px;
  --color-scheme-1--border: #3a4553;
  --color-scheme-2--text: #ffffff;
  --_camden-peak---footer-devider-color: #3a4553;
  background-color: var(--_camden-peak---footer-bg);
  color: var(--color-scheme-2--text);
}

.padding-global-copy {
  height: 100%;
  padding-left: 5%;
  padding-right: 5%;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px #00000026;
}

.container-large {
  z-index: 9;
  width: 100%;
  max-width: 80rem;
  height: 13%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.padding-vertical {
  padding-left: 0;
  padding-right: 0;
}

.padding-xxlarge {
  padding-top: 5px;
  padding-bottom: 20px;
}

.divider-horizontal {
  height: var(--_ui-styles---stroke--divider-width);
  background-color: var(--color-scheme-1--border);
  color: var(--_camden-peak---footer-devider-color);
  width: 100%;
}

.padding-top {
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.padding-medium {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer3_bottom-wrapper {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.footer3_credit-text {
  color: var(--_camden-peak---footer-legal-text);
  font-size: 1rem;
}

.footer3_legal-list {
  grid-column-gap: 1.5rem;
  display: flex;
  justify-content: center;
}

.footer3_legal-link {
  color: var(--_camden-peak---footer-links-color);
  font-size: 1rem;
  text-decoration: underline;
}

.disclaimer {
  font-size: 1rem;
  color: var(--_camden-peak---footer-legal-text);
}

.paragraph-7 {
  color: var(--_camden-peak---footer-legal-text);
  margin-top: 20px;
}

@media (max-width: 600px) {
  .footer3_bottom-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .footer3_credit-text {
    width: 100%;
    text-align: left;
    margin-bottom: 0.5rem;
  }
  .footer3_legal-list {
    justify-content: flex-start;
    width: 100%;
  }
}

/* --- End Footer Styles --- */


.lead-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.opt-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.form-fields {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
}

.form-field {
  position: relative;
  margin-bottom: 0;
  width: 100%;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"] {
  width: 100%;
  padding: 14px;
  border: 1px solid #4c5c74;
  border-radius: 6px;
  font-size: 16px;
  background: #fff;
  box-sizing: border-box;
}

.form-field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #4c5c74;
  pointer-events: none;
  transition: 0.2s ease all;
  font-size: 16px;
  background: transparent;
}

.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field input:not(:focus):valid + label {
  top: -10px;
  left: 10px;
  transform: none;
  font-size: 14px;
  background: #fff;
  padding: 0 4px;
}

.trust-text {
  text-align: center;
  color: #4c5c74;
  font-size: 20px;
  margin: 0;
  max-width: 400px;
  width: 100%;
}

.pmq-content-block-final {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 50px));
  width: 100%;
  max-width: 280px;
}

.lead-form-block {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lead-form-block .pmq-option-cta {
  width: 100%;
  max-width: 400px;
}

.final-header-block {
  margin-bottom: 20px;
}

/* Thank you page headings */
.thank-you-main-heading {
  color: #4c5c74;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 20px;
  text-align: center;
}

.thank-you-sub-heading {
  color: #4c5c74;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 40px;
  text-align: center;
}

/* Question text styling */
.optin-question {
  color: #4c5c74;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 0;
}

/* Hide default checkbox */
.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Checkbox container - card style */
.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 10px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: white;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

.checkbox-container:hover {
  border-color: #4c5c74;
  background: #f8f9fa;
}

/* Custom checkbox visual */
.checkbox-visual {
  width: 20px;
  height: 20px;
  border: 2px solid #4c5c74;
  border-radius: 4px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* Checked state styling */
.checkbox-container input:checked + .checkbox-visual {
  background: #4c5c74;
  border-color: #4c5c74;
}

.checkbox-container input:checked + .checkbox-visual .checkmark {
  opacity: 1;
}

/* Checkmark */
.checkmark {
  color: white;
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Checkbox label text */
.checkbox-label {
  color: #4c5c74;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 3px;
}

/* Focus state for accessibility */
.checkbox-container input:focus + .checkbox-visual {
  outline: 2px solid #b98f1d;
  outline-offset: 2px;
}

.trust-text {
  color: #4c5c74;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-top: 14px;
  opacity: 0.8;
}

.thank-you-main-heading {
  max-width: 400px;
  margin: 0 auto 20px;
}

.thank-you-sub-heading {
  max-width: 400px;
  margin: 0 auto 20px;
}

.form-fields-thankyou {
  width: 85%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 0 auto;
  text-align: center; /* Force center alignment */
  margin-bottom: 30px;
}


.form-field-thankyou {
  position: relative;
  margin-bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center; /* Center the checkbox */
}

.form-field-thankyou-last {
  margin-bottom: 20px;
}

.bullet-block {
  margin: 15px auto 40px auto;
  text-align: center;
  color: #4c5c74;
  max-width: 400px;
  width: 100%;
  background-color: #e8d7ab;
  border: 3px solid #4c5c74;
  border-radius: 16px;
}

.bullet-block h2 {
  font-size: 2em; /* match other h2 */
  font-family: inherit; /* match other h2 */
  font-weight: 500;
  margin-top: 10px;
  margin-bottom: 16px;
  color: #4c5c74;
}

.bullet-block h3 {
  font-size: 1.3em; 
  font-family: inherit; 
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 16px;
  color: #4c5c74;
}

.bullet-block ul {
  list-style: decimal;
  margin: 0 auto;
  padding-left: 30px;
  text-align: left;
  margin-bottom: 20px;
  max-width: 320px; /* Constrain width */
}

.bullet-block li {
  font-size: 20px; /* increased bullet size */
  color: #4c5c74;
  margin-bottom: 20px;
  font-family: inherit;
  text-align: left;
  font-weight: 500;
}

.quiz-link {
  color: #4c5c74;
  font-size: 20px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #4c5c74; 
  text-underline-offset: 2px;
  transition: all 0.2s ease;
}

.quiz-link:hover {
  color: #b98f1d;
  text-decoration-thickness: 2px;
}

.pmq-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: #374151; /* Same color as back button */
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pmq-nav-btn:hover {
  color: #1f2937;
}

.pmq-nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .floating-nav-buttons {
    bottom: 15px;
    right: 15px;
  }
  
  .pmq-nav-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}


.intro-subheading {
  text-align: center;
  color: #4c5c74;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 32px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.intro-trust-elements {
  background: #e8d7ab;
  border: 2px solid #4c5c74;
  border-radius: 12px;
  padding: 20px 16px;
  margin: 24px auto;
  max-width: 240px;
  text-align: center;
}

.trust-stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trust-stat {
  color: #4c5c74;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.trust-stat:last-child {
  margin-bottom: 0;
}

.highlight {
  color: #b98f1d;
  font-weight: 700;
}

.intro-reassurance {
  list-style: none;
  padding: 0;
  margin: 16px auto 24px;
  text-align: center;
  color: #4c5c74;
  font-size: 14px;
  font-weight: 500;
  max-width: 350px;
  opacity: 0.9;
}

.intro-reassurance .reassurance-item {
  display: inline;
}

.intro-reassurance .reassurance-item:not(:last-child)::after {
  content: " • ";
  margin: 0 4px;
}


/* Orientation popup overlay */
.orientation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(76, 92, 116, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.orientation-popup {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 280px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.orientation-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: #b98f1d;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-icon {
  width: 32px;
  height: 32px;
  color: white;
  animation: rotatePhone 1.5s ease-in-out infinite;
}

@keyframes rotatePhone {
  0%, 100% { transform: rotate(90deg); }
  50% { transform: rotate(0deg); }
}

.orientation-title {
  color: #4c5c74;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

.orientation-message {
  color: #4c5c74;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 24px;
  opacity: 0.9;
}

.orientation-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.continue-anyway-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.continue-anyway-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* Hide overlay by default */
.orientation-overlay.hidden {
  display: none;
}

/* Fade out animation class */
.orientation-overlay.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

.quiz-blurred .pmq {
  filter: blur(4px) !important;
  opacity: 0.7 !important;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.quiz-blurred .pmq-progress {
  filter: blur(4px) !important;
  opacity: 0.7 !important;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.quiz-blurred .pmq-logo {
  filter: blur(4px) !important;
  opacity: 0.7 !important;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.orientation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(76, 92, 116, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000; /* Higher z-index than quiz content */
  animation: fadeIn 0.3s ease-out;
  filter: none !important; /* Never blur the popup itself */
}

.line-span {
  display: inline;
}

.line-span-hidden {
  visibility: hidden;
  clip-path: inset(0 100% 0 0);
}

.line-span-visible {
  visibility: visible;
}

.line-span-animating {
  will-change: clip-path;
}

.line-span-complete {
  clip-path: none;
  will-change: auto;
}