:root {
	--blue1: 37, 104, 234;
	--coral1: 246, 134, 146;
	--green1: 104, 188, 164;
	--brad: 5px;
}

html {
  overflow-y: scroll;
}

body {
	background: #f9f9f9;
}

.qlogo {
	margin: 2rem auto;
	max-width: 150px;
}

h1 {
	display: none;
}

h2, h3 {
	color: rgb(var(--green1));
}

h4 {
	font-size: clamp(1rem, 0.857rem + 0.381vw, 1.2rem);
	color: rgba(var(--green1), .8);
	margin-bottom: 1.3rem;
}

#quizContainer h3 {
	margin-bottom: 2.2rem;
}

#quizContainer h3.tnh-final__h3 {
	margin-bottom: 1.2rem;
}


#quizContainer {
	text-align: center;
	position: relative;
	min-height: 200px;
	max-width: 800px;
	border: 1px solid rgba(var(--blue1), 0.13);
	padding: 2rem;
	margin: 0 auto 2rem;
	background: #fff;
	border-radius: var(--brad);
	box-shadow: 0px 2px 6px rgba(40, 90, 185, 0.1);
	box-shadow: 0 4px 12px -2px rgba(0, 32, 128, .1), 0 0 0 1px rgba(60, 80, 120, 0.07);
}

#quizContainer h2, #quizContainer h3 {
	text-align: center;
	margin-bottom: 1rem;
	background: linear-gradient(90deg, rgb(var(--mintygreen)) 0%, rgb(var(--lovelyblue)) 100%);
	background-clip: text;
  color: transparent;
}

.question-title, .steptitle, .tnh-final h2, .tnh-final__timeline .tnh-final__h3:first-child {
	margin-top: 1.5rem;
}

#quizContainer p, #quizContainer td, #quizContainer li, #quizContainer blockquote {
	font-size: var(--main-font-size);
	line-height: 140%;
}

#quizContainer .step {
  opacity: 0;
  transition: opacity 0.6s ease;
  position: relative;
  width: 100%;
  pointer-events: none;
}

#quizContainer .step.show {
  opacity: 1;
  pointer-events: auto;
}

#quizContainer label {
	display: block;
	margin: 1rem auto;
	text-align: center;
	padding: 1rem 37px;
	font-size: clamp(1rem, 0.857rem + 0.381vw, 1.2rem);
}

#quizContainer label.custom-option {
  margin: 0.5em 0;
  cursor: pointer;
  border-radius: var(--brad);
  background: #f3f8f8;
  background-size: auto 20px;
  transition: all .1s ease-in-out;
}

#quizContainer label.custom-option:has(input[type="checkbox"]) {
	background-image: url(../images/icons/notick3.webp);
	background-repeat: no-repeat;
	background-position: left 20px center;
	background-size: auto 20px;
}

#quizContainer label.custom-option:not(.checkery):hover {
  color: #fff;
  background: rgb(var(--blue1)) url(../images/icons/notick2.webp) no-repeat left 20px center;
  background-size: auto 20px;
  transition: all .1s ease-in-out;
}

#quizContainer label.custom-option.checkery {
  transition: background-color .1s ease-in, color .05s ease-in;
  background: rgb(var(--coral1)) url(../images/icons/tick2.webp) no-repeat left 20px center !important;
  background-size: auto 20px !important;
  color: #fff;
}

#quizContainer .nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1em;
}

#quizContainer button, #quizContainer .createaccountb {
	margin-top: 1rem;
	padding: 1rem 1.3rem;
	margin-right: 0;
	font-weight: 550;
	letter-spacing: .5px;
}

#quizContainer button:disabled {
	opacity: .23;
	pointer-events: none;
}

#quizContainer button.next-btn {
	min-width: calc(100% - 7rem);
	max-width: 19rem;

}

#quizContainer button.back-btn {
	margin-right: .5rem;
	width: 6rem;
}

#quizContainer input[type='radio'], #quizContainer input[type='checkbox'] { 
     display: inline-block;
     accent-color: rgb(var(--blue1));
     visibility: hidden;
 }

#quizContainer #progress-bar {
		width: 100%;
    height: 10px;
    background: rgba(var(--green1), 0.25);
    border-radius: 999px;
    overflow: hidden;
    margin: 0 0 1.4rem 0;
}

#quizContainer #progress-bar-inner {
  height: 100%;
  background: rgb(var(--green1));
  width: 0;
  transition: width 420ms ease;   /* <-- this is the key */
  will-change: width;
  border-radius: 999px;
}

#quizContainer img {
	margin: 1rem 0 2rem;
	max-width: 100%;
	height: auto;
	border-radius: var(--brad);
}

#quizContainer p img {
	margin: 1rem 0;
	max-width: 100%;
	height: auto;
	border-radius: var(--brad);
}



#quizContainer .hidden {
  visibility: hidden;
}

#quizContainer .chooseall {
	color: #ddd;
}

#quizContainer .multi-note {
	display: block;
	font-size: 1.45rem;
	color: #999;
	margin-top: 0.5rem;
	letter-spacing: .75px;
}

#quizContainer textarea, #quizContainer .account-form .form-row input[type="text"], #quizContainer .account-form .form-row input[type="email"], #quizContainer .account-form .form-row input[type="password"] {
	width: 100%;
	padding: 1rem 1.3rem;
	color: #333;
	background-color: #fafafa;
	border: 1px solid #e1e1e1;
	border-radius: var(--brad);
	box-shadow: inset  -5px -5px 5px rgba(0, 0, 0, 0.03);
}

#quizContainer textarea:focus, #quizContainer .account-form .form-row input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgb(var(--green1));
}

#quizContainer .account-form label {
	padding: 0 0 .3rem;
	margin: 0;
	font-weight: bold;
}

#quizContainer .account-form .form-row {
	margin-bottom: 1rem;
}

#quizContainer .account-form .form-row input {
	text-align: center;
}

#quizContainer .account-form .form-row input::placeholder {
	color: #aaa;
}
#quizContainer .account-form .form-row label.custom-option {
	padding: 1rem;
	margin-top: 2rem;
}

#quizContainer .stars1 img {
	height: 1.7rem;
	width: auto;
	margin: 0 auto 1rem;
}

#quizContainer .datebrouter {
	background: transparent url(../images/q/datebgline.webp) repeat-x center left;
	background-size: 37px auto;
}

#quizContainer .datebr {
	font-size: clamp(1.5rem, 1.143rem + 0.952vw, 2rem);
	font-weight: bold;
	color: #2f724b;
	background-color: #fff;
	width: fit-content;
	margin: 1.8rem auto 1.9rem;
	padding: 2.5rem 1.5rem 1rem;
	border-radius: var(--brad);
	border: 7px solid rgba(var(--green1), .07);
	box-shadow: 0 0 10px 5px rgba(var(--green1), .3);
	line-height: 1.15;
	background-position:	top 10px left 10px,
												top 10px left calc(25% + 3px),
												top 10px left calc(50%),
												top 10px right calc(25% + 3px),
												top 10px right 10px;
	background-image: url(../images/q/calendar-hole.webp), url(../images/q/calendar-hole.webp), url(../images/q/calendar-hole.webp), url(../images/q/calendar-hole.webp), url(../images/q/calendar-hole.webp);
	background-size: 14px;
	background-repeat: no-repeat;
	transform: translateX(-110px);
  animation: datebr-slide-in 2.7s ease-out forwards;
}

@keyframes datebr-slide-in {
  to {
    transform: translateX(0);
  }
}

html.th-preload #quizContainer { visibility: hidden; }
.step.no-anim { transition: none !important; animation: none !important; }

#quizContainer .smallertext, #quizContainer .multi-note {
	font-size: 1rem;
	margin-top: 0;
	padding-top: 0;
}

#quizContainer .textinput-wrap {
	margin-top: 1rem;
}

#quizContainer .textinput-wrap input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  border-radius: var(--brad);
  border: 2px solid rgba(var(--green1), .25);
  outline: none;
}

#quizContainer .textinput-wrap input:focus {
  border-color: rgba(var(--green1), .55);
}

#quizContainer .textinput-hint {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

.tnh-dots {
	font-size: 1.5rem;
}
.tnh-dots span {
	display:inline-block;
	margin: 0 .41rem;
	color: rgb(var(--mintygreen));
	animation: tnhDot 1s infinite;
}

.tnh-dots span:nth-child(2){
	animation-delay: .15s;
}

.tnh-dots span:nth-child(3){
	animation-delay: .3s;
}

@keyframes tnhDot { 0%,20%{opacity:.2} 50%{opacity:1} 100%{opacity:.2} }

.tnh-processing__msg {
  display: inline-block;
  opacity: 1;
  transition: opacity 450ms ease;
  will-change: opacity;
  margin-top: .7rem;
}

.tnh-processing__msg.is-fading {
  opacity: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}




.th-results-card {
  width: 100%;
  border-radius: var(--brad, 12px);
  overflow: hidden;
  margin-bottom: 2rem;

  border: 7px solid rgba(var(--green1), .07);
  box-shadow: 0 0 10px 5px rgba(var(--green1), .3);

  position: relative; /* slideshow needs this */
}

/* Normal visible layout (fallback if JS doesn't run) */
.th-results-card .th-row {
  display: grid;
  grid-template-columns: 30% 1fr;
  border-bottom: 1px solid rgba(230, 233, 232, 1);
}

.th-results-card .th-row .th-cell:first-child {
	font-weight: bold;
}

.th-results-card .th-row:last-child { border-bottom: 0; }

.th-results-card .th-cell {
  padding: 12px 14px 24px;
  display: flex;
  flex-direction: column;
  line-height: 130%;
}

.th-results-card .th-key {
  background-color: rgba(var(--green1), .07);
  border-right: 1px solid rgba(230, 233, 232, 1);
}

/* Vertical justify helpers */
.th-va-top { justify-content: flex-start; }
.th-va-middle { justify-content: center; }
.th-va-bottom { justify-content: flex-end; }

/* Prep: avoid flash while measuring */
.th-results-card.th-prep { visibility: hidden; }

/* Slideshow only after JS initialises */
.th-results-card.th-ready {
  min-height: var(--th-card-h, auto);
}

.th-results-card.th-ready .th-row {
  position: absolute;
  inset: 0;
  border-bottom: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

.th-results-card.th-ready .th-row.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Space for dots (only matters in slideshow mode) */
.th-results-card {
  --th-dots-h: 3px; /* tweak if you want more/less space */
}

.th-results-card.th-ready {
  padding-bottom: var(--th-dots-h);
}

/* Keep the slide area above the dots */
.th-results-card.th-ready .th-row {
  inset: 0 0 var(--th-dots-h) 0;
}

.th-va-r {
	box-shadow: inset  1px 3px 13px rgba(var(--green1), .37);

}

/* Dots */
#quizContainer .th-results-card .th-dots {
  position: absolute;
  left: 5px;
  right: 0;
  bottom: 5px;
  display: flex;
  justify-content: left;
  gap: 8px;
  z-index: 5;
  pointer-events: auto;
  
}

#quizContainer .th-results-card .th-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(var(--green1), .25);
  padding: 5px !importan;
}

#quizContainer .th-results-card .th-dot.is-active {
  background: rgba(var(--green1), .85) !important;
}

.th-results-card .th-dot:focus-visible {
  outline: 2px solid rgba(var(--green1), .25);
  outline-offset: 3px;
}




#quizContainer .tnh-final__bullets {
	list-style: none;
}

.tnh-final__form-msg {
	margin: 1rem 0;
}

#tnh-email {
	margin-right: 1rem;
	border: 1px solid #ccc;
	border-radius: var(--brad);
}

.tnh-final ul {
	list-style: none;
}

.tnh-final li {
	display: inline-block;
	background: #fff;
	border: 5px solid rgba(var(--green1), .07);
	box-shadow: 0 0 10px 5px rgba(var(--green1), .3);
	border-radius: var(--brad);
	margin: .8rem;
	white-space: nowrap;
	padding: .5rem;
}

.bacard {
	background-color: rgba(var(--blue1), .07);
	border-radius: var(--brad);
	background: linear-gradient(90deg, rgba(var(--mintygreen), .5) 0%, rgba(var(--lovelyblue), .5) 100%);
	margin: 1rem auto 2rem;
	padding: 1.5rem;
}

.bacard h2 {
	margin: 1rem 0;
	color: rgba(0, 0, 0, .9) !important;
}

.bapara {
	padding-top: 41px;
	background: transparent no-repeat top center;
	background-size: 30px;
	color: rgba(0, 0, 0, .9);
	font-weight: bold;
	margin-bottom: 1rem;
}

.babefore {
	background-image: url(../images/q/cross.webp);
}

.baafter {
	background-image: url(../images/q/tick.webp);
}

@media (prefers-reduced-motion: reduce) {
  .tnh-processing__msg {
    transition: none;
  }
}



@media screen and (max-width: 800px) {
	.th-results-card .th-row {
		display: block;
	}
	.th-results-card .th-key {
		border-right: 0;
		background-color: transparent;
	}
	.th-va-r {
		box-shadow: none;
		background: transparent;
}

