/* ====================================================
   QUIZ APP NAMESPACE PROTECTED CSS
   ==================================================== */

/* ---------- BASE & THEME ---------- */
#quizApp {
  --purple-1: #3b0a6d;
  --purple-2: #1c004d;
  --accent: #E06875;
  --muted: #FCFCFC;
  --card-dark: rgba(255, 255, 255, 0.04);
  --card-dark-2: rgba(255, 255, 255, 0.02);
  --white: #ffffff;
  --light-bg: #fbfbfd;
  --text-dark: #1f2140;
  --success: #0ea5a1;
}

#quizApp *,
#quizApp *::before,
#quizApp *::after {
  box-sizing: border-box;
}

#quizApp html,
#quizApp body,
#quizApp #app {
  height: 100%;
  margin: 0;
}

#quizApp {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
}

/* Screens */
#quizApp .screen {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
#quizApp .hidden {
  display: none !important;
}

/* ---------- SECTION 1: DARK / PURPLE ---------- */
#quizApp .screen--dark {
  background: linear-gradient(180deg, var(--purple-1), var(--purple-2));
  color: var(--white);
}

/* container centered */
#quizApp .container--centered {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1300px;
  padding: 48px;
}

/* Vertical progress left */
#quizApp .vertical-progress {
  width: 29;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 420px;
}
#quizApp .v-line {
  position: absolute;
  height: 70%;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  left: 50%;
}
#quizApp .v-step {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  margin: 14px 0;
  z-index: 1;
  transition: all 0.25s ease;
}
#quizApp .v-step.done {
  background: #751fa6a9;
}
#quizApp .v-step.current {
  background: #fff;
  border-color: var(--accent);
}

/* Card */
#quizApp .card {
  flex: 1;
  border-radius: 14px;
  padding: 36px;
}

/* Back button */
#quizApp .back-btn {
  all: unset;
  position: absolute;
  left: 50%;
  top: 20px;
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--white) !important;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: block;
  text-align: center;
  line-height: 42px;
  transition: background 0.3s ease;
}
#quizApp .back-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Question */
#quizApp .question {
  margin: 0 0 28px;
  font-weight: 700;
  line-height: 1.08;
}
#quizApp .question--large {
  font-size: 34px;
  text-align: center;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  color: white;
}

/* Options */
#quizApp .options {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
#quizApp .options--centered .option {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#quizApp .option .emoji {
font-size: 32px;
    margin-bottom: 6px;
    border: 1px solid #FF9B05;
    border-radius: 50%;
    padding: 12px;
    background-color: #ffec3f18;
    width: 70px;
    height: 70px;
    text-align: center;
}
#quizApp .option .emoji:hover {
  box-shadow: 0 10px 36px rgba(247, 201, 75, 0.25);
}
#quizApp .option .label {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
}
#quizApp .option:hover {
  transform: translateY(-6px);
}
#quizApp .option.selected .emoji {
  background: radial-gradient(50% 50% at 50% 50%, #ffec3fab 0%, #ff9b059a 100%);
}

/* ---------- SECTION 2: LIGHT / ILLUSTRATION ---------- */
#quizApp .screen--light {
  background: var(--light-bg);
  color: var(--text-dark);
}
#quizApp .container--split {
  display: flex;
  width: 100%;
  max-width: 1400px;
  gap: 0;
  align-items: stretch;
}
#quizApp .illustration {
  flex: 0 0 420px;
  background: linear-gradient(180deg, #f1d7ff, #f3e8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100vh;
}
#quizApp .illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}
#quizApp .card--white {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 36px;
  position: relative;
}
#quizApp .top-progress {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  height: 20%;
}
#quizApp .h-step {
  flex: 1;
  height: 8px;
  background: #eee;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
#quizApp .h-step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #ff7b7b);
  transition: width 0.35s ease;
}
#quizApp .h-step.done::after {
  width: 100%;
}
#quizApp .h-step.current::after {
  width: 60%;
}

/* darker back btn for light screen */
#quizApp .back-btn--dark {
  position: absolute;
  left: 28px;
  top: 28px;
  background: #f5f6fb !important;
  color: var(--text-dark) !important;
  box-shadow: none;
}

/* dark question on white card */
#quizApp .question--dark {
  font-size: 26px;
  color: var(--text-dark);
  margin-top: 6px;
}

/* options spaced with emoji + small label */
#quizApp .options--spaced {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 22px;
}
#quizApp .options--spaced .option {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#quizApp .options--spaced .label {
  font-size: 12px;
  color: #7a6f88;
  margin-top: 8px;
}
#quizApp .options--spaced .option.selected {
  box-shadow: 0 10px 30px rgba(247, 201, 75, 0.12);
}
#quizApp .options--spaced .option.selected .emoji {
  background: radial-gradient(50% 50% at 50% 50%, #ffec3fab 0%, #ff9b059a 100%);
}

/* ---------- FORM ---------- */
#quizApp .container--form {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}
#quizApp .form-illustration {
  display: flex;
  width: 30%;
  align-items: center;
}
#quizApp .form-illustration img {
  width: auto;
  height: 100vh;
}
#quizApp .form-card {
  flex: 1;
  background: #fff;
  color: #1c004d;
  border-radius: 20px;
  padding: 50px 60px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  position: relative;
}
#quizApp .form-card h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}
#quizApp .form-card p {
  color: #666;
  margin-bottom: 30px;
  font-size: 15px;
}
#quizApp .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 30px;
  margin-bottom: 35px;
}
#quizApp .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#quizApp .form-field label {
  font-size: 14px;
  color: #444;
  font-weight: 600;
}
#quizApp .form-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f9f9fb;
  color: #333;
  font-size: 15px;
  transition: border-color 0.3s ease;
}
#quizApp .form-field select:focus {
  outline: none;
  border-color: #f03d7a;
}
#quizApp .submit-btn {
  width: auto;
  padding: 12px 34px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  background: linear-gradient(90deg, #a92bf2, #f03d7a);
  box-shadow: 0 8px 20px rgba(240, 61, 122, 0.2);
  transition: all 0.3s ease;
}
#quizApp .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(240, 61, 122, 0.3);
}

.screen--video {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#quizVideo {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}
.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  pointer-events: auto;
}
.vc-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #fff;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  margin-right: 8px;
}
.vc-next {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  opacity: 0.95;
}
.center-timer {
  color: #fff;
  opacity: 0.95;
  font-size: 13px;
}



/* ---------- IMAGE RADIO (Gender Select) ---------- */
#quizApp .image-radio-group {
  display: flex;
  gap: 30px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 30px;
}

#quizApp .image-radio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  border-radius: 50%;
  transition: all 0.3s ease;
}

#quizApp  .image-radio input {
  display: none;
}

#quizApp  .image-radio img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

#quizApp .image-radio span {
  margin-top: 8px;
  font-size: 15px;
  color: #333;
}

/* Hover and checked states */
#quizApp  .image-radio:hover img {
  transform: scale(1.05);
}

#quizApp  .image-radio input:checked + img {
  border: 2px solid #f03d7a;
  box-shadow: 0 0 0 4px rgba(240, 61, 122, 0.15);
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  #quizApp .container--form {
    flex-direction: column;
    text-align: left;
  }
  #quizApp .form-illustration {
    display: none;
  }
  #quizApp .form-card {
    padding: 40px 30px;
  }
  #quizApp .form-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  #quizApp .container--centered,
  #quizApp .container--split {
    flex-direction: column;
    padding: 0;
    height: 100vh;
  }
  
  #quizApp .vertical-progress{
          width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 15%;
    gap: 20px;
  }
  
  #quizApp .v-line {
    position: absolute;
    height: 2px;
    width: 70%;
    background: rgba(255, 255, 255, 0.08);
    left: 15%;
}
  
  #quizApp .illustration {
    display: none;
  }
  
  #quizApp .question--large {
    font-size: 18px;
    margin-top: 20px;
    color: white;
  }
  
  #quizApp .back-btn {
    left: 50%;
    top: 64px;
    transform: translateX(-50%);
    margin-top: 10px;
  }
  
   #quizApp .video-controls {
    flex-direction: column;
    gap: 12px;
    bottom: 12px;
    padding: 0 18px;
    width: 100%;
  }

  #quizApp #quizVideo {
    height: auto;
  }

  #quizApp .vc-btn{
    height: 36px;
    width: 36px;
    padding: 8px; 

  }

#quizApp  .top-progress {
    margin-bottom: 12px;
    height: 10%;
    align-items: center;
  }

#quizApp  .options--spaced .option {
    border: none;
    width: 70px;
  }
  
  #quizApp .question--dark {
      margin-top: 40px;
  }
}
