:root {
  --bg: #f3f6f1;
  --surface: #ffffff;
  --surface-soft: #f8faf7;
  --text: #182218;
  --muted: #5f6b61;
  --border: #d9e0d7;
  --green: #147d24;
  --green-dark: #0c5d18;
  --green-soft: #edf8ef;
  --red: #b42318;
  --shadow: 0 8px 30px rgba(20, 45, 23, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0 !important;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg) !important;
  background-image: none !important;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

a {
  color: #154fc5 !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 2px;
}

a:hover, a:focus-visible {
  color: var(--green-dark) !important;
}

img {
  max-width: 100%;
  height: auto;
}

.site-layout {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: min(1120px, calc(100% - 32px)) !important;
  height: auto !important;
  margin: 22px auto 36px !important;
  z-index: auto !important;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
}

.site-header {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: auto !important;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 4px 14px;
  border-bottom: 1px solid var(--border);
}

.site-brand {
  flex: 1 1 430px;
  min-width: 260px;
}

.site-brand img {
  display: block;
  width: min(100%, 455px);
  height: auto;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.site-footer {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  font: 14px/1.45 Arial, Helvetica, sans-serif;
}

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

.related-site {
  margin: 0;
  color: var(--muted);
}

.test-form-wrap {
  text-align: center;
}

.privacy-heading {
  margin: 0 0 1rem;
  text-align: center;
}

.nav-button, .start-button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid #0b6818;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(#24a438, #137b25);
  box-shadow: inset 0 1px rgba(255,255,255,.25), 0 2px 6px rgba(0,0,0,.12);
  font: 700 16px/1.1 Arial, Helvetica, sans-serif;
  text-decoration: none !important;
  cursor: pointer;
}

.nav-button:hover, .nav-button:focus-visible, .start-button:hover, .start-button:focus-visible,
input[type="submit"]:hover, input[type="submit"]:focus-visible {
  color: #fff !important;
  background: linear-gradient(#1d8e30, #0c681c);
  outline: 3px solid rgba(20,125,36,.18);
  outline-offset: 2px;
}

.sidebar {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  z-index: auto !important;
  align-self: start;
  grid-column: 1;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 14px;
  box-shadow: var(--shadow);
  text-align: center;
}

.sidebar p {
  margin: .55rem 0;
}

.sidebar input[disabled] {
  width: 2.3em;
  min-width: 2.3em;
  padding: 0;
  border: 0 !important;
  background: transparent;
  color: var(--green-dark);
  font: 700 1.2rem/1.2 Arial, Helvetica, sans-serif;
  text-align: right;
  opacity: 1;
  -webkit-text-fill-color: var(--green-dark);
}

.main-content {
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  min-height: 390px;
  z-index: auto !important;
  grid-column: 2;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(18px, 3vw, 32px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.main-content > :first-child {
  margin-top: 0;
}

.main-content > :last-child {
  margin-bottom: 0;
}

.FreeIQTestQuestions {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem) !important;
  line-height: 1.35;
}

.FreeIQTestImportant {
  color: var(--red) !important;
}

.StarttheFreeIQTest {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem) !important;
  text-align: center;
  color: var(--text) !important;
}

.CurrentPosition {
  color: var(--green-dark) !important;
  font-weight: 700;
}

.FreeIQTestProcessing {
  color: var(--green-dark) !important;
  font-size: clamp(1.55rem, 4vw, 2.2rem) !important;
  font-weight: 700;
}

h1, h2, h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  margin: 1.6rem 0 .75rem;
}

h3 {
  font-size: clamp(1rem, 2.3vw, 1.18rem);
}

#title {
  text-align: center !important;
  margin: 0 0 1.35rem !important;
}

.home-page .main-content ul.instructions {
  padding-left: 1.25rem;
  margin-bottom: 1.3rem;
}

.home-page .main-content ul.instructions li {
  margin: .7rem 0;
}

.home-facts {
  display: grid;
  gap: 10px;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
}

.home-fact {
  padding: 10px 11px;
  border-radius: 10px;
  background: var(--green-soft);
}

.home-fact strong {
  display: block;
  color: var(--green-dark);
}

.test-disclaimer, .content-note {
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--green-soft);
  color: #34423a;
  font: 14px/1.5 Arial, Helvetica, sans-serif;
}

.iq-resources {
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.iq-resources h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.iq-resource-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.test-page .main-content form {
  max-width: 760px;
  margin: 0 auto;
}

.test-page .main-content form > p {
  margin: 1rem 0;
}

.test-page input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 5px 5px 5px 8px;
  vertical-align: middle;
  accent-color: var(--green);
}

.test-page input[type="submit"] {
  border-width: 1px;
  min-width: 130px;
  margin: 18px auto 2px;
}

.test-page form > input[type="submit"] {
  display: flex;
}

.test-page .main-content img {
  vertical-align: middle;
}

.test-page textarea {
  display: block;
  width: 100% !important;
  max-width: 640px;
  min-height: 82px;
  margin: 10px auto;
  padding: 10px;
  resize: vertical;
}

.content-page .sidebar {
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.content-page .sidebar p {
  margin: .7rem 0;
}

.article-content {
  max-width: 790px;
  margin: 0 auto;
}

.article-content p {
  margin: 0 0 1rem;
}

.article-content .portrait {
  float: right;
  width: 120px;
  height: auto;
  margin: 0 0 14px 20px;
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(0,0,0,.12);
}

.article-content .hero-visual {
  display: block;
  width: min(100%, 680px);
  margin: 12px auto 20px;
}

.article-content ul {
  padding-left: 1.25rem;
}

.article-content li {
  margin: .45rem 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.article-content th, .article-content td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: var(--green-soft);
}

.article-content .sources {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font: 13px/1.5 Arial, Helvetica, sans-serif;
}

@media (max-width: 820px) {
  .site-layout {
    width: min(100% - 20px, 760px) !important;
    margin-top: 10px !important;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-header {
    grid-column: 1;
    justify-content: center;
    text-align: center;
  }

  .site-brand {
    flex-basis: 100%;
  }

  .site-brand img {
    margin: 0 auto;
    width: min(100%, 390px);
  }

  .sidebar, .main-content, .site-footer {
    grid-column: 1;
  }

  .sidebar {
    order: 2;
  }

  .main-content {
    order: 3;
    padding: 18px 16px;
    min-height: 0;
  }

  .site-footer {
    order: 4;
  }

  .test-page .sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
  }

  .test-page .sidebar p {
    margin: .25rem 0;
  }

  .content-page .sidebar {
    display: flex;
    gap: 7px 13px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .content-page .sidebar p {
    margin: .2rem 0;
  }

  .article-content .portrait {
    width: 96px;
  }
}

@media (max-width: 520px) {
  .site-layout {
    width: calc(100% - 12px) !important;
  }

  .site-header {
    padding-top: 6px;
    gap: 7px;
  }

  .nav-button {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 14px;
  }

  .main-content {
    border-radius: 10px;
    padding: 16px 13px;
  }

  .sidebar {
    border-radius: 10px;
  }

  .test-page .main-content form {
    text-align: left;
  }

  .test-page input[type="radio"] {
    width: 22px;
    height: 22px;
    margin-left: 4px;
  }

  .article-content .portrait {
    float: none;
    display: block;
    width: 115px;
    margin: 0 auto 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.test-status {
  display: grid;
  gap: 18px;
  font-family: Arial, Helvetica, sans-serif;
}

.status-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.status-time > div {
  white-space: nowrap;
}

.status-progress strong {
  display: block;
  margin-bottom: 7px;
  color: var(--green-dark);
  font-size: 1.35rem;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebe2;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

@media (max-width: 820px) {
  .test-status {
    width: min(100%, 540px);
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .status-progress {
    min-width: 180px;
  }
}

@media (max-width: 460px) {
  .test-status {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (min-width: 821px) {
  .content-page .site-layout {
    grid-template-columns: 155px minmax(0, 790px) 155px;
    justify-content: center;
    gap: 18px;
  }

  .content-page .sidebar {
    grid-column: 1;
  }

  .content-page .main-content {
    grid-column: 2;
  }

  .content-page .site-footer,
  .content-page   .content-page .article-content {
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
  }
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
  margin: .8rem 0 1.4rem;
}

.answer-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 52px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font: 600 16px/1.3 Arial, Helvetica, sans-serif;
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.answer-option:hover {
  border-color: #9bc4a2;
  background: var(--green-soft);
}

.answer-option:focus-within {
  outline: 3px solid rgba(20,125,36,.16);
  outline-offset: 2px;
}

.answer-option:has(input[type="radio"]:checked) {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.answer-option input[type="radio"] {
  flex: 0 0 auto;
  width: 21px !important;
  height: 21px !important;
  margin: 0 !important;
}

.answer-option .answer-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.answer-option .answer-content img {
  display: block;
  width: auto;
  max-width: 110px;
  max-height: 112px;
}

.answer-grid.symbol-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.answer-grid.symbol-options .answer-option {
  justify-content: flex-start;
  font-family: "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: .03em;
}

.question-sequence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: .55rem 0 .9rem;
}

.question-sequence img {
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  .content-page .site-layout {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .content-page .sidebar,
  .content-page .main-content,
  .content-page .site-footer {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .answer-option {
    min-height: 58px;
    padding: 9px 7px;
    font-size: 15px;
  }

  .answer-option .answer-content img {
    max-width: 92px;
    max-height: 100px;
  }

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

.privacy {
  font-size: 14px;
  text-align: center;
}

.start-action {
  margin: 24px 0;
  text-align: center;
}

.result-content {
  text-align: center;
}

.progress-0 {
  width: 0%;
}

.progress-10 {
  width: 10%;
}

.progress-20 {
  width: 20%;
}

.progress-30 {
  width: 30%;
}

.progress-40 {
  width: 40%;
}

.progress-50 {
  width: 50%;
}

.progress-55 {
  width: 55%;
}

.progress-60 {
  width: 60%;
}

.progress-70 {
  width: 70%;
}

.progress-80 {
  width: 80%;
}

.progress-90 {
  width: 90%;
}

.progress-95 {
  width: 95%;
}

/* Mobile safe area for Google's consent-revocation control.
   The Google CMP control is fixed to the bottom of the viewport and cannot be
   safely restyled from the site. Extra space lets the final test action scroll
   fully above it instead of being covered. */
@media (max-width: 820px) {
  .test-page {
    scroll-padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }

  .test-page .test-form-wrap {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }

  .test-page input[type="submit"] {
    position: relative;
    z-index: 2;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .test-page {
    scroll-padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px));
  }

  .test-page .test-form-wrap {
    padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px));
  }
}
