/* Quiz Styles */

:root {
  --f: "Cabin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --paper: #0d0e10;
  --ink: #d8d8d8;
  --mute: #4f5052;
}

body.quiz-body {

  margin: 0;
  padding: 0;
  height: 100dvh; min-height: 100dvh; overflow: hidden !important;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: #0d0e10 !important;
  font-family: var(--f);
  color: #d8d8d8 !important;
}

.quiz-bg-layer {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0d0e10 !important; display: none;
  background-position: center;
  z-index: -2;
  transition: background-image 0.8s ease-in-out;
}

.quiz-bg-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #0d0e10 !important; display: none;
  
  z-index: -1;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  z-index: 10;
  overflow-y: auto;
}


.quiz-logo-mark {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.8;
  text-decoration: none;
  color: #d8d8d8 !important;
  display: block;
}
.quiz-logo-mark em {
  display: block;
  font-style: normal;
  font-size: 0.42em;
  letter-spacing: -0.035em;
  text-indent: 0.055em;
}
.quiz-logo_old {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #d8d8d8 !important;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.quiz-logo:hover {
  opacity: 1;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.progress-bar-track {
  width: 150px;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 14%;
  background: #d8d8d8 !important;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 0.85rem;
  color: #9b9a9a !important;
  font-variant-numeric: tabular-nums;
}

.quiz-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 5%;
  z-index: 10;
  overflow-y: auto;
}

.quiz-container {
  width: 100%;
  max-width: 640px;
  position: relative;
}

.quiz-step {
  display: none;
  animation: fadeIn 0.5s forwards;
}

.quiz-step.active {
  display: block;
}

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


  .quiz-logo-mark {
    font-size: 1.3rem;
  }
  .quiz-title {
  font-size: 2.25rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.quiz-input-group {
  margin-bottom: 1.5rem;
}

.quiz-input-group label {
  display: block;
  font-size: 0.85rem;
  color: #9b9a9a !important;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quiz-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d8d8d8 !important;
  padding: 1.25rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.quiz-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.quiz-option.selected {
  background: rgba(255, 255, 255, 0.15);
  border-color: #d8d8d8 !important;
}

.quiz-option-radio {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.quiz-option.selected .quiz-option-radio {
  border-color: #d8d8d8 !important;
}

.quiz-option.selected .quiz-option-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #d8d8d8 !important;
  border-radius: 50%;
}

.quiz-option-text {
  font-size: 1rem;
  line-height: 1.4;
  color: #d8d8d8 !important;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  gap: 1rem;
}

.quiz-btn {
  background: #fff;
  color: #000;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-btn:hover {
  background: #e0e0e0;
}

.quiz-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quiz-btn-prev {
  background: transparent;
  color: #d8d8d8 !important;
  border: 1px solid rgba(255,255,255,0.2);
}

.quiz-btn-prev:hover {
  background: rgba(255,255,255,0.05);
}

/* Error message */
.quiz-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

/* Feline Decoration */
.quiz-feline {
  position: fixed;
  bottom: 0;
  left: 5%; right: auto;
  width: 450px;
  max-width: 40vw;
  object-fit: contain;
  opacity: 0.7;
  z-index: 5;
  pointer-events: none;
  filter: grayscale(100%) contrast(1.2);
  mix-blend-mode: screen;
  transition: opacity 0.5s ease;
}


@media (max-width: 768px) {
  .quiz-logo-mark {
    font-size: 1.45rem;
  }
  .quiz-main {
    align-items: flex-start;
    padding: 1.5rem 1.25rem 2rem 1.25rem;
    overflow-y: auto;
  }
  .quiz-header {
    padding: 1.5rem 1.25rem;
  }
  .quiz-title {
    font-size: 1.45rem;
    margin-bottom: 1.25rem;
  }
  .quiz-input-group {
    margin-bottom: 1rem;
  }
  .quiz-input-group label {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
  }
  .quiz-input {
    padding: 0.9rem;
    font-size: 1rem;
  }
  .quiz-options {
    gap: 0.75rem;
  }
  .quiz-option {
    padding: 0.9rem 1rem;
  }
  .quiz-option-text {
    font-size: 0.95rem;
  }
  .quiz-nav {
    margin-top: 1.5rem;
  }
  .quiz-btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }
  .quiz-feline {
    width: 260px;
    height: auto;
    left: -10px;
    right: auto;
    bottom: 0;
    opacity: 0.35;
    /* remove max-height and object-fit restrictions so it draws at native ratio without clipping */
  }
  .progress-bar-track {
    width: 100px;
  }
}

/* intl-tel-input dark theme overrides */
.iti { width: 100%; display: block; }
.iti__country-list {
  background-color: #0d0e10;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d8d8d8;
  border-radius: 8px;
}
.iti__country.iti__highlight {
  background-color: rgba(255, 255, 255, 0.1);
}
.iti__country-name { color: #d8d8d8; }
.iti__dial-code { color: #9b9a9a; }
.iti__selected-dial-code { color: #d8d8d8 !important; }
.iti__flag { border-radius: 2px; }
.iti__arrow { border-top-color: #d8d8d8 !important; }
.iti__arrow--up { border-top-color: transparent !important; border-bottom-color: #d8d8d8 !important; }
.iti__selected-flag { background: transparent !important; padding: 0 12px !important; }
.iti--allow-dropdown input, .iti--allow-dropdown input[type=text], .iti--allow-dropdown input[type=tel], .iti--separate-dial-code input, .iti--separate-dial-code input[type=text], .iti--separate-dial-code input[type=tel] {
  padding-left: 90px !important;
}

/* Anti-Zoom on Mobile */
input, select, textarea, .quiz-input, .iti input, .iti--allow-dropdown input {
  font-size: 16px !important;
}
