:root {
  --primary-purple: #8b5cf6;
  --primary-purple-hover: #7c3aed;
  --secondary-purple: #a855f7;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --text-medium: #4b5563;
  --background-white: #ffffff;
  --background-gray: #f3f4f6;
  --border-light: #e5e7eb;
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-image: url("../images/background.webp");
  background-repeat: no-repeat no-repeat;
  background-size: cover;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  margin: 0 auto;
  padding: 10px;
}

/* Landing Page Styles */
.landing-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.landing-card {
  border-radius: 20px;
  text-align: center;
  max-width: 550px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.iqtest-logo {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-purple);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 129px;
  height: 36px;
  margin: auto;
}

.hero-illustration > img {
  margin-top: 40px;
  width: 178.3333282470703px;
  height: 150px;
  opacity: 1;
  object-fit: contain;
}

.book-icon {
  font-size: 60px;
  position: relative;
  z-index: 2;
}

.pencil-icon {
  font-size: 40px;
  position: absolute;
  right: -10px;
  top: 10px;
  z-index: 3;
}

.main-heading {
  font-family: Poppins;
  font-weight: 600;
  font-size: 36px;
  line-height: 36px;
  letter-spacing: -0.04em;
  text-align: center;
  margin-top: 20px;
  color: #3819d9;
}

.description {
  font-family: Quicksand;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  margin: 30px 0px;
}

.stats-text {
  font-family: Quicksand;
  font-weight: 400;
  font-size: 18px;
  line-height: 20px;
  text-align: center;
  color: #494958;
  margin-top: 30px;
}

.stats-text p {
  margin: 3px 0;
}

.rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  max-width: 320px;
  margin: auto;
  margin-top: 40px;
  margin-bottom: 160px;
}

.rating > div {
  position: absolute;
  top: 50%;
  left: 83.5%;
  width: 100%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-family: Quicksand;
  font-weight: 600;
  font-size: 14px;
  line-height: 12px;
  text-align: start;
  color: #494958;
}
.rating img {
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 100%;
}

.cta-button {
  max-width: 300px;
  width: 100%;
  height: 66px;
  gap: 10px;
  border-radius: 10px;
  padding-top: 18px;
  padding-right: 50px;
  padding-bottom: 18px;
  padding-left: 50px;
  margin: 0 auto;
  background: #5235e8;
  color: #ffffff;
  font-family: Poppins;
  font-weight: 600;
  font-size: clamp(15px, 5vw, 17px);
  line-height: 30px;
  letter-spacing: 2px;
  text-align: center;
  vertical-align: middle;
  outline: none;
  border: none;
  cursor: pointer;
}
.cta-container {
  box-shadow: 0px 0px 10px 0px #797c8d26;
  border-radius: 5px;
  padding: 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 392px;
  margin: 0 auto;
  background: #ffffff;
}
.send-text {
  font-family: "Exo 2", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 100%;
  text-align: center;
}
.keyword-section {
  position: relative;
  margin-bottom: 10px;
}
.keyword-box {
  width: 232px;
  height: 106px;
  border: 3px solid #6e00f5;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  animation: changeBorderColor 2s infinite;
}
.service-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.service-box #one-off-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-box .p-cla {
  margin: 0;
}
.service-box .kw,
.service-box .tracking-code,
.service-box .sc {
  font-family: "Exo 2", sans-serif;
  font-size: 30px;
  font-weight: 700;
  animation: changeColor 2s infinite;
  line-height: 1;
  display: inline;
}
.service-box .to {
  font-family: "Exo 2", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 100%;
  text-align: center;
  margin: 5px 0;
  display: block;
}
.download-now {
  font-family: "Exo 2", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 100%;
  text-align: center;
}
.disclaimer {
  margin-top: auto;
  padding-bottom: 60px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.disclaimer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.disclaimer-text {
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #a1aec9;
  text-align: center;
  line-height: 1.4;
  max-width: 100%;
}
.disclaimer-text {
  font-family: "Exo 2", sans-serif;
  font-weight: 300;
  font-style: Light;
  font-size: 14px;
  line-height: 100%;
  text-align: center;
  vertical-align: middle;
}
.legal-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}
.legal-links > a {
  font-family: "Exo 2", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  text-align: center;
  vertical-align: middle;
  color: #a1aec9;
}

.cta-button:active,
.next-button:active {
  background: var(--primary-purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Question Page Styles */
.question-page {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.question-page.active {
  display: flex;
}

.question-header {
  text-align: center;
  margin-bottom: 30px;
}

.question-number {
  font-family: Poppins;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 36px;
  line-height: 36px;
  text-align: center;
  color: #3819d9;
  margin: 30px 0px;
}

.question-card {
  border-radius: 15px;
  max-width: 500px;
  width: 100%;
}

.question-text {
  font-family: Quicksand;
  font-weight: 700;
  font-style: Bold;
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  color: #494958;
  display: flex;
  justify-content: center;
  align-items: center;
}

.question-image {
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin: 10px 0;
}

.instruction-text {
  font-family: Quicksand;
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  color: #494958;
  margin-top: 10px;
  margin-bottom: 5px;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  justify-content: center;
  margin: auto;
}

.option-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 15px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 60px;
  background-color: #fcfcfc;
}

.option-wrapper input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.option-wrapper input[type="radio"]:checked {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
}

.option-wrapper input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 3px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 1px 0;
}

.option-label {
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
  flex: 1;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.option-image {
  width: 154px;
  height: 34px;
  object-fit: contain;
  border-radius: 4px;
}

.next-button {
  max-width: 300px;
  width: 100%;
  height: 58px;
  opacity: 1;
  border-radius: 10px;
  padding-top: 14px;
  padding-right: 50px;
  padding-bottom: 14px;
  padding-left: 50px;
  background-color: #5235e8;
  font-family: Poppins;
  font-weight: 600;
  font-size: clamp(12px, 4vw, 15px); /* Min 12px, preferred 4vw, max 15px */
  white-space: nowrap;
  line-height: 30px;
  letter-spacing: 2px;
  text-align: center;
  vertical-align: middle;
  font-weight: bold;
  color: #ffffff;
  outline: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  margin: auto;
  margin-top: 14px;
}

.next-button.enabled {
  opacity: 1;
  pointer-events: all;
}

/* Visual Question Styles */
.visual-patterns {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  width: 80px;
  height: 80px;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 8px;
}

.grid-cell {
  width: 100%;
  height: 100%;
  border-radius: 2px;
}

.purple-pattern .grid-cell {
  background-color: #e5e7eb;
}

.purple-pattern .grid-cell.filled {
  background-color: #8b5cf6;
}

.blue-pattern .grid-cell {
  background-color: #e5e7eb;
}

.blue-pattern .grid-cell.filled {
  background-color: #3b82f6;
}

.pink-pattern .grid-cell {
  background-color: #e5e7eb;
}

.pink-pattern .grid-cell.filled {
  background-color: #ec4899;
}

.visual-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.visual-option {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.visual-option:hover {
  border-color: var(--primary-purple);
  background-color: #f8f7ff;
}

.visual-option.selected {
  border-color: var(--primary-purple);
  background-color: #f8f7ff;
}

.option-pattern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: 60px;
  height: 60px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px;
}

.option-pattern .grid-cell {
  width: 100%;
  height: 100%;
  border-radius: 1px;
}

/* Almost Ready Page Styles */
.almost-ready-page {
  min-height: 100vh;
  display: none;
  flex-direction: column;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px 0;
  align-items: center;
  text-align: center;
}

.almost-ready-page.active {
  display: flex;
}

.almost-ready-card {
  border-radius: 15px;
  padding: 40px 30px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-medium);
  max-width: 400px;
  width: 100%;
}

.almost-ready-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-purple);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.almost-ready-description {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 20px;
}

.keyword-input-container {
  margin-bottom: 15px;
}

.keyword-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 1rem;
  border: 2px solid var(--primary-purple);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: var(--primary-purple);
  background: #f8f7ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.keyword-input:focus {
  outline: none;
  border-color: var(--primary-purple-hover);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.keyword-input::placeholder {
  color: var(--primary-purple);
  opacity: 0.7;
}

.almost-ready-footer {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* Results Page Styles */
.results-page {
  min-height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.results-page.active {
  display: flex;
}

.results-card {
  border-radius: 15px;
  padding: 40px 30px;
  margin-bottom: 25px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.access-text {
  font-size: 1rem;
  color: var(--text-dark);
  margin-top: 20px;
  font-weight: 400;
}

.restart-button {
  background: var(--primary-purple);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.restart-button:hover {
  background: var(--primary-purple-hover);
  transform: translateY(-1px);
}
.mobile {
  display: none;
}
.pulseAnimation {
  -webkit-animation: heartbeat 1.5s ease-in-out infinite;
  -moz-animation: heartbeat 1.5s ease-in-out infinite;
  -o-animation: heartbeat 1.5s ease-in-out infinite;
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 10px;
    width: 100%;
  }
  .main-heading {
    font-size: 24px;
    margin-top: 10px;
  }
  .question-header {
    margin-bottom: 10px;
  }
  .hero-illustration > img {
    margin-top: 10px;
    width: 166.44px;
  }
  .description {
    margin: 10px 0px;
  }
  .question-number {
    margin: 10px 0px;
    font-size: 34px;
  }
  .question-image {
    max-width: 80%;
  }
  .question-card {
    padding: 0px 10px;
  }
  .input_button {
    max-width: 300px;
    width: 100%;
    height: 66px;
    border-radius: 10px;
    padding-top: 18px;
    padding-right: 50px;
    padding-bottom: 18px;
    padding-left: 50px;
    gap: 10px;
    opacity: 1;
    background-color: #5235e8;
    font-family: Poppins;
    font-weight: 600;
    font-size: clamp(12px, 4vw, 15px); /* Min 12px, preferred 4vw, max 15px */
    line-height: 30px;
    letter-spacing: 2px;
    text-align: center;
    vertical-align: middle;
    color: #ffffff;
    border: none;
    margin-top: 30px;
  }

  .visual-patterns {
    gap: 10px;
  }

  .pattern-grid {
    width: 70px;
    height: 70px;
  }

  .visual-options {
    grid-template-columns: 1fr;
  }

  .almost-ready-card {
    padding: 30px 20px;
  }

  .results-card {
    padding: 30px 20px;
  }

  .results-score {
    font-size: 2.5rem;
  }
}
@media (max-width: 480px) {
  .rating > div {
    font-size: 12px;
  }
  .rating img {
    max-width: 300px;
  }
}
@media (max-width: 480px) {
  .mobile {
    display: block;
  }
  .desktop {
    display: none;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-card,
.question-card,
.almost-ready-card,
.results-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes changeBorderColor {
  0% {
    border-color: #6e00f5;
  }
  50% {
    border-color: #009dff;
  }
  100% {
    border-color: #6e00f5;
  }
}
@keyframes changeColor {
  0% {
    color: #6e00f5;
  }
  50% {
    color: #009dff;
  }
  100% {
    color: #6e00f5;
  }
}

@keyframes heartbeat {
  0% {
    transform: scale(1.1);
    opacity: 1;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}
