:root {

  /* COLORS */

  --brtGrn: #29f19c;
  --medGrn: #01c38d;
  --deepPrpl: #340b6b;
  --drkBlu: #191e29;
  --medBlu: #132d46;
  --litBlu: #02a1f9;
  --ltgrey: #d1d1d1;
  
  /* PURPLE GRAD COLORS */
  --primary: #29f19c;
  --secondary: #02a1f9;
  --accent: #be12a5;
  --complimentary: #ffcc00;
  --charcoal: #36454F;
  --ltgrey: #d1d1d1;
  --medGrey: ##636363;
  --darkGrey: #313131;
  --white: #ffffff;
  --black: #000000;
  --deepRed: #e00a0a;
  --warmOrange: #FD6528;
  --medGreen: #26C000;
  --litBlu: #02a1f9;


  --btnGrad: linear-gradient(
    to right,
    var(--brtGrn) 0%,
    var(--litBlu) 100%
  );

/* STANDARD FONT WEIGHT STYLES */
  --fw-xbold: 900;
  --fw-bold: 700;
  --fw-semibold: 600;
  --fw-medium: 500;
  --fw-normal: 400;

/* HEADER */

--qz-header-bkgd: transparent;
--status-pill-border:   solid 1px #29f19c;
--status-pill-border-radius:   999px;

/* MAIN */

--main-padding-top: 1rem;;

/* SHIELD ICON COLOR */

--shieldIconColor: var(--brtGrn);

/* FORM VARIABLES */

--answers-radio-label-border: solid 2px var(--brtGrn);
--answers-radio-border-color: var(--brtGrn);
--answers-radio-hvr-border-color: var(--brtGrn);
--answers-radio-txt-align: left;
--answers-radio-padding: 10px 20px;
--answers-radio-border-radius: 12px;
--cond-block-bkgd-grad: linear-gradient(180deg, #480E93, #841DBF);
--cond-block-font-color: #fff;
--cond-block-border: solid 2px #fff;

--bs-form-select-bg-img: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e);

/* FOATING FORMS STYLES */

--qz-form-conf-statement-color: #ffffff;
--qz-form-float-bkgd: #132d46d9;
--qz-form-float-border: solid 2px #ffffff;
--qz-form-float-color: #ffffff;
--progress-bkgd: hsla(0, 0%, 100%, .1);
--progress-bar-bkgd: var(--brtGrn);


/* FORM BUTTONS */

--q-form-btn-bkgd-color: transparent;
--q-form-btn-hvr-bkgd-color: #ffffff49;
--q-form-btn-color: #ffffff;
--q-form-btn-hvr-color: #ffffff;
--q-form-btn-border: solid 2px var(--brtGrn);
--q-form-btn-hvr-border: solid 2px var(--brtGrn);
--q-form-btn-border-radius: 12px;

--help-text-color: rgba(255, 255, 255, 0.7);

/* FOOTER */

--footer-bkgd: #303030;
--footer-text: #ffffff;
--footer-border: hsla(0,0%,100%,.12);


/* TEXT */

--q-question-font-size: clamp(1.2rem, .5vw + 1rem, 2rem);
--q-question-font-color: #ffffff;
--q-question-font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif;

/* OFF CANVAS */

--offcanvas-header-bkgd: #232323;
--offcanvas-header-color: rgba(255,255,255,0.5);
--offcanvas-body-bkgd:  linear-gradient(0deg, rgba(24, 111, 97, 1) 0%, rgba(19, 50, 70, 1) 82%);
--offcanvas-body-hvr-color: var(--complimentary);
}



html,
body {
    height: 100% 100vh;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
"Lucida Sans", Arial, sans-serif;
}

main {
    flex: 1 0 auto;
}
main > div.container {
    padding-top: var(--main-padding-top);
}

footer {
    flex-shrink: 0
}



/* BASIC FRAMEWORK */

.quiz-wrapper__outer {
    margin: auto;
    max-width: 720px;
}

body.grn-grad {
    background: radial-gradient(circle, rgb(21, 129, 129) 37%, rgb(10, 102, 102) 60%, rgb(9, 28, 46) 100%)
}

/* GENDER IMAGES */

.gender-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 auto;
    margin-top: 2em;
}
.gender-card img {
    width: 100%;
    max-width: 250px;
    height: auto;
}
.gender-card:hover img {
    filter: opacity(50%);
}
.btn-check:checked+.gender-card, .gender-card.active {
    background: rgba(0, 0, 0, 0);
    border-color: rgba(0, 0, 0, 0);
    color: #000;
    transform: translateY(-1px);
}
 .gender-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    text-align: center;
    transition: background-color .18s ease, border-color .18s ease, transform .12s ease;
    font-weight: 700;
    color: #841dbf;
} 
.gender-label {color: #fff; display: inline-block; margin-top: 1em;}

.btn-check:checked+.btn {
background-color: var(--q-form-btn-hvr-bkgd-color);
color: #fff;
font-weight: bold;
border: solid 2px var(--brtGrn);
}


/* GREEN TIMER */


.percentage-counter-container {
    position: relative;
    width: 200px; /* Fixed width for the container */
    height: 200px; /* Fixed height for the container */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Equivalent to Tailwind: rounded-full shadow-lg */
    border-radius: 50%; /* Make the container itself circular */
    background-color: transparent; /* White background for the container */
}

.progress-circle {
    /* Rotate the SVG to make the progress start from the top (12 o'clock) */
    transform: rotate(-90deg);
    /* Ensure the SVG scales responsively within its container */
    width: 100%;
    height: 100%;
}

.progress-circle-bg {
    fill: none; /* No fill inside the circle */
    stroke: #e0e0e0; /* Light grey background color for the circle track */
    stroke-width: 21; /* Thickness of the circle track */
}

.progress-circle-fill {
    fill: none; /* No fill inside the circle */
    stroke: rgb(41, 241, 156); /* A vibrant blue for the filling color */
    stroke-width: 15; /* Thickness of the filling progress */
    stroke-linecap: round; /* Rounded ends for the progress bar */
    /* stroke-dasharray and stroke-dashoffset will be set by JavaScript */
    /* No CSS transition, as JS handles smooth animation */
}

.percentage-text {
    /* Position the text absolutely within the container */
    position: absolute;
    font-size: 2.5em; /* Large font size for visibility */
    font-weight: bold;
    color: rgb(41, 241, 156); /* Dark grey color for the text */
    /* Center the text perfectly */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Adjust for absolute positioning */
    /* Ensure text is above SVG */
    z-index: 10;
}
.s5-animation-wrap        {display: flex; justify-content: center; align-items: center;}

.continue-wrap {
    /* Initially hidden with visibility and opacity for smooth transition */
    visibility: hidden; /* Hide without removing from document flow */
    opacity: 0; /* Start invisible for fade-in effect */
    margin-top: 20px; /* Space above the button */
    /* Add transition for both opacity and visibility */
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.continue-wrap.show {
    visibility: visible; /* Make it visible */
    opacity: 1; /* Make visible */
}

.continue-wrap p {
    /* Initially hidden */
    color: rgb(41, 241, 156);
    font-size: 1.3rem;
    font-weight: bold;
}


.statement {
    grid-area: 1 / 1;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.statement {
    font-size: 2rem;
}
.statement-wrapper__question, .multiAnswer-wrapper__question, .question-wrapper {
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.statement-wrapper__question {
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}


  /* This ensures the statements stack on top of each other */
  .statement-container {
    position: relative;
    height: 80px; /* Adjust based on your text size */
  }

  .statement {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease-in-out;
    /* font-size: 2rem; */
  }

  /* JavaScript adds this class to make it appear */
  .statement.show-statement {
    opacity: 1;
  }
  
  /* Helper to hide the whole thing at the end */
  .fade-out-all {
    opacity: 0 !important;
    transition: opacity 0.5s;
  }


/* Ring container */
.progress-ring-wrap {
  position: relative;
  width: 220px;
  height: 220px;
}
.progress-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* start at 12 o’clock */
}
.ring-track {
  fill: none;
  stroke: #eee;
  stroke-width: 18;
}
.ring-value {
  fill: none;
  stroke: var(--brtGrn);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 603;   /* set by JS too; 2πr where r=96 */
  stroke-dashoffset: 603;
  filter: drop-shadow(0 0 6px rgba(44, 69, 56, 0.25));
}
.ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: var(--white);
}

/* Checklist */
.build-checklist {
  max-width: 450px;
margin-top: 1rem;
  margin: 1rem auto;
}
.build-checklist .step {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .75rem 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
  color: var(--ink);
  width: auto;
  font-size: 1.2rem;
  color: #fff;
  border-radius: 20px;
}
.build-checklist .step.revealed {
  opacity: 1;
  transform: translateY(0);
}
.build-checklist .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.build-checklist .pill {
  display: inline-block;
  padding: .1rem .7rem;
  border-radius: 20px;
  background: transparent;
  font-size: 1.5rem;
}

.quiz-form .btn.negative, .quiz-form .btn.affirmative {max-width: 200px;}

.quiz-form .btn {
  justify-content: center; /* REMOVE IF USING ICONS */
}

/* CONTINUE BUTTON */
.continue-btn .btn.btn-primary {
    background: var(--btnGrad);
    border: none;
    color: #000;
}

.continue-btn .btn.btn-primary:hover {
  
}

/* PAGE BACKGROUNDS */


body.paper-fireplace {
    background: url('img/bg/fireplace-bkgd.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-attachment: fixed;
}
body.paper-path {
    background: url('img/bg/paper-path-bkgd.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-attachment: fixed;
}
body.lanterns {
    background: url('img/bg/lanterns-bkgd.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-attachment: fixed;
}

/* TRANSPARENT INPUT ELEMENTS */

.quiz-form-float .answers-wrap__input input[type="text"] {
    background-color: transparent;
    border: solid 2px var(--brtGrn);
    border-radius: 20px;
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
    padding: 0.5rem;
    font-weight: 600;
    color: #fff !important;
}

.quiz-dob-select {

    background-color: transparent !important;

}
.quiz-dob-select select {
    appearance: none;
    width: 100%;
    font-size: 1.15rem;
    padding: 0.5rem;
    background-color: transparent !important;
    border: 2px solid #29f19c;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
}
select.form-select, select.form-select:focus, select.form-select:active {
    color: white !important;
}

.form-select {
    --bs-form-select-bg-img: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e);
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
input#first_name::placeholder {
  color: white;
}

.quiz-question {
    margin-bottom: 2em;
    font-size:  var(--q-question-font-size);
}

.main-text-color {
  color: #fff;
}

.secondary-text-color {
  color: #fff;
}