/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
  color: #333333;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

/* ET Sans */
@font-face {
  font-family: 'ET Sans';
  src: url(https://www.theepochtimes.com/_next/static/media/79c071d8899182a8-s.p.woff2) format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ET Sans';
  src: url(https://www.theepochtimes.com/_next/static/media/13fa18817aff7b92-s.p.woff2) format("woff2");
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'ET Sans';
  src: url(https://www.theepochtimes.com/_next/static/media/9a2f9490af7b02d5-s.p.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ET Sans';
  src: url(https://www.theepochtimes.com/_next/static/media/b9afe2cd1393804d-s.p.woff2) format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'ET Sans';
  src: url(https://www.theepochtimes.com/_next/static/media/f2c7aad64aaf936f-s.p.woff2) format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ET Sans';
  src: url(https://www.theepochtimes.com/_next/static/media/d9d889b1989949e5-s.p.woff2) format("woff2");
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'ET Sans';
  src: url(https://www.theepochtimes.com/_next/static/media/5b2fe94afdc3d56c-s.p.woff2) format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ET Sans';
  src: url(https://www.theepochtimes.com/_next/static/media/6788c631bb1ccef1-s.p.woff2) format("woff2");
  font-weight: 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'ET Sans';
  src: url(https://www.theepochtimes.com/_next/static/media/a34e105018662d40-s.p.woff2) format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ET Sans';
  src: url(https://www.theepochtimes.com/_next/static/media/3e0111e0e551efa2-s.p.woff2) format("woff2");
  font-weight: 900; font-style: italic; font-display: swap;
}
h3, h3 strong{
font-family:'Inter', 'ET Sans', Roboto, Arial, sans-serif;
font-weight: 700!important;
letter-spacing: -0.5px;

}
h3 + h3 {
  margin-top:0.8rem;
  margin-bottom:1.5rem;
}
.question-text p{
  margin:4px 0;
  text-align:left;
  font-size: 90%;
}

/* Main Container */
.survey-container {
  display: block;
  max-width: 650px;
  margin: 0 auto;
}
/* Progress Indicator */
.progress-indicator {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  height:3rem;
  align-items: start;
  justify-content: space-evenly;
}
/* When there IS an image - overlay styling */
.question-image + .progress-indicator {
  position: absolute;
  border-top-right-radius: 1.5rem;
  border-top-left-radius: 1.5rem;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  margin-bottom: 0;
  background: linear-gradient(180deg,color-mix(in srgb,#000 40%,transparent),color-mix(in srgb,#000 0%,transparent))
}
.progress-bar-s {
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  margin-right:1rem;
  border-radius: 2px;
  top: 50%;
  transform: translate(0,-50%);
  position: relative;
}
.progress-fill {
  height: 100%;
  background-color: #fff;
  border-radius: 6px;
  transition: width 0.3s ease;
  position:absolute;
}
.progress-text {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 4px 11px 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 500;
  width: max-content;
  white-space: nowrap;
  top: 50%;
  transform: translate(0,-50%);
  position: relative;
  backdrop-filter: blur(.5rem);
  -webkit-backdrop-filter: blur(.5rem);
}
/* For non-image questions, style differently */
.progress-indicator:not(.question-image + .progress-indicator) .progress-bar-s {
  background-color: rgba(0, 0, 0, 0.1);
  height: 3px;
}
.progress-indicator:not(.question-image + .progress-indicator) .progress-fill {
  background-color: rgba(0, 0, 0, 0.8);
}
.progress-indicator:not(.question-image + .progress-indicator) .progress-text {
  background-color: rgba(0, 0, 0, 0.25);
}
/* Question Content */
.question-content {
  max-width: 650px;
  margin: 0 auto;
  width: 100%;
  position:relative;
}
/* Question Image */
.question-image {
  position: relative;
  height: 0;
  padding-bottom: 55%;
  margin-bottom: 20px;
  text-align: center;
}
.question-image img {
  height: auto;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-top-right-radius: 1.5rem;
  border-top-left-radius: 1.5rem;
}
.question-text-content {
  padding: 0 3rem;
}
/* Question Text */
.question-text {
  margin-bottom: 20px;
}
.question-text h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
  margin: 1.8rem 0;
  font-family: 'Inter', 'ET Sans', sans-serif;
}
.question-instruction {
  font-size: 17px;
  color: #4f4f4f;
  font-weight: 300;
  margin: -0.75rem 0 20px 0;
  text-align: left;
}
/* Options Container */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 35px;
}
/* Option Cards */
.option-card {
  position: relative;
  display: block;
  cursor: pointer;
  transition: background-color 0.2s ease;
  user-select: none;
  touch-action: manipulation;
}
.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  cursor: pointer;
  opacity: 0;
  position:absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.option-inner {
  display: flex;
  align-items: center;
  padding: 12px 12px 13px 15px;
  background-color: #ffffff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}
.option-card input:checked + .option-inner {
  background-color: #000;
  border-color: rgba(0, 0, 0, 0.102);
}
@media (hover: hover) {
  .option-card:hover .option-inner {
    background-color: #dddddd;
    border: 2px solid #8f8f8f;
    padding: 11px 11px 12px 14px;
  }
}
.option-text {
  flex: 1;
  font-size: 16px;
  font-weight: 400;
  color: #2c3e50;
  line-height: 1.4;
}
.option-card input:checked + .option-inner .option-text {
  color: #fff;
}
/* Error Overlay */
.option-error-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(220, 53, 69, 0.95);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  z-index: 10;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.option-error-overlay.show {
  opacity: 1;
  transform: scale(1);
}
/* Other Input */
.other-input {
  padding: 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 20px;
  display: none;
  transition: border-color 0.2s ease;
}
.other-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
/* Button Container */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 35px 0 25px;
}
/* Next Button */
.next-button {
  background-color: #a1a1a1;
  color: white;
  border: none;
  padding: 15px 48px 17px;
  width: 17.3rem;
  font-size: 13px;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.1s;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transform:scale(1);
  opacity:1;
  touch-action: manipulation;
}
.next-button.enabled {
  background-color: #000;
}
@media (hover: hover) {
  .next-button.enabled:hover:not(.next-button.submitting) {
    background-color: #333;
    transform:scale(1.125);
  }
}
.next-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
@keyframes buttonSubmit {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 0; }
}
.next-button.submitting {
  animation: buttonSubmit 0.5s ease-out forwards;
  background-color: #000 !important;
  color: white !important;
}
/* Skip Button */
.skip-button {
  background: none;
  border: none;
  color: #222;
  font-size: 14px;
  font-weight:500;
  cursor: pointer;
  margin-top: 2rem;
  transition:transform 0.5s ease-in-out;
  transform:scale(1);
  touch-action: manipulation;
}
.skip-button:hover {
  transform:scale(1.2);
}
.logo {width:14rem;margin:3.0rem auto;}
.logo img {width:100%;height:auto}
/* Responsive Design */
@media (max-width: 520px) {
  .question-text-content {
    padding: 0 1.5rem;
  }
}
@media (max-width: 480px) {
  .option-inner {
    padding:13px 12px 14px 15px;
  }
  .option-text {
    font-size: 14.75px;
  }
  .options-container {
    gap:13px;
  }
}
/* Animation Support - Slide Transitions */
#app {
  position: relative;
}
.question-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  will-change: opacity, transform;
}
.question-slide.current {
  opacity: 1;
  transform: translateX(0);
  position: relative; /* First question should be in normal flow */
}
.question-slide.incoming {
  opacity: 0;
  transform: translateX(30px);
}
.question-slide.outgoing {
  opacity: 0;
  transform: translateX(-30px);
}
.question-slide.preloaded {
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
}
/* Error Messages */
p {
  text-align: center;
  font-size: 18px;
  color: #6c757d;
  margin: 40px 0;
}

#o-footer p{
    margin: 0px auto;
    font-size: 14px;
    letter-spacing: -0.3px;
}
#o-footer p a{
color:#3890CF;
}

.footer-logo .logo{
  margin-bottom:8px;
}

#footer {
  margin-bottom:2rem;
  padding: 2rem 0;
  text-align: center;
}