html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* ##############      TEST HEADING       #######################*/


.heading-section {
    width: 100%;
    height: 40vh;                 /* controls vertical space */
    background-color: rgb(248, 247, 242);
    margin: 5rem auto 0rem auto;                /* center the 50vw block */
    
    display: flex;
    align-items: center;          /* vertical centering */
    justify-content: center;      /* horizontal centering */
}

.heading-section .impact-heading {
    font-family: 'Glacial', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    color: #1670b7;
    margin: 0;
    width: 50%;
}




/* test.css */

/* General Layout */


.test-wrapper {
  max-width: 70vw;
  margin: 40px auto;
  padding: 20px 30px;
  background: #fff;
}

.label {
   font-weight: bold; 
}

/* Form & Questions */
.test-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.question-card {
  padding: 2rem;
  font-weight: bold;
  font-family: 'Aileron', sans-serif;
  text-align: center; 
  font-size: 1.5rem;
}

.question-card label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  font-size: 3rem;
}

.question-card input[type="text"],
.question-card input[type="number"],
.question-card input[type="email"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* Options Row */
.options-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.option-card {
  flex: 1;
  min-width: 220px;
  border: 2px solid #ccc;
  border-radius: 3rem;
  padding: 3rem 3rem;
  cursor: pointer;
  background: rgb(248, 247, 242);
  transition: 0.2s ease;
  user-select: none;
}


/* Optional: responsive fallback */
@media (max-width: 768px) {
    .option-card {
      padding: 1rem 1rem;
    }

    .test-wrapper {
      padding: 0;
    }
}

.option-card:hover {
  border-color: rgb(24, 109, 175);
  background: #f0f6ff;
}

.opt-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.opt-label {
  font-weight: bold;
  color: rgb(24, 109, 175);
  font-size: 18px;
}

.opt-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  font-family: 'Aileron', sans-serif;
}

/* When radio selected */
.option-card input[type="radio"]:checked + .opt-inner,
.option-card:has(input[type="radio"]:checked) {
  border-color: rgb(24, 109, 175);
  background: #e8f0ff;
}

/* Submit Button */
.btn-start, .btn-results {
  margin: 25px auto 0;
  display: block;
  padding: 12px 25px;
  background: rgb(24, 109, 175);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;

font-family: 'Aileron', sans-serif;
font-size: 1rem;
font-weight: 600;
transition: transform 0.2s ease, background 0.3s ease;
}

.btn-restart {
      margin: 25px auto 0;
  display: block;
  padding: 12px 25px;
  background: rgb(254, 254, 254);
  color: rgb(103, 103, 103);
  border: 2px solid rgb(103, 103, 103); /* border width + style + color */
  border-radius: 10px;
  cursor: pointer;

font-family: 'Poppins', sans-serif;
font-size: 1rem;
font-weight: 600;
transition: transform 0.2s ease, background 0.3s ease;

}

.btn-start:hover {
  color: #ffffff  ;
  transform: scale(1.05);
  text-decoration: underline;
}

.btn-restart:hover {
  color: #ffffff  ;
  transform: scale(1.05);
  text-decoration: underline;
}


.hidden {
  display: none !important;
}

/* 3x3 results grid */
#results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 80px);
  gap: 0px;
  max-width: 300px;
  margin: 20px auto;
}

#result-area {
  display: flex;
  flex-direction: column;
  align-items: center;   /* vertical center */
  justify-content: center; /* horizontal center */
  height: 100%; 
}

.grid-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-family: 'Aileron', sans-serif;
  background-color: rgb(248, 247, 242);
  transition: background-color 0.3s;
  color: #fff;
}

/* Center the segments */
.accuracy-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hide native radios */
.segmented-control input[type="radio"] {
  display: none;
}

/* Segment container */
.segmented-control .segments {
  display: flex;
  overflow: hidden;
  cursor: pointer;
}

/* Each segment */
.segmented-control .segment {
  flex: 1;
  min-width: 100px;
  padding: 40px 60px;
  background-color: rgb(248, 247, 242);
  color: rgb(24, 109, 175);
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
  user-select: none;
  font-weight: bold;
}

/* Hover effect */
.segmented-control .segment:hover {
  background-color: rgba(247, 223, 196, 0.671);
}

/* Selected segment style */
.segmented-control input#acc-low:checked ~ .segments .segment[data-value="low"],
.segmented-control input#acc-good:checked ~ .segments .segment[data-value="good"],
.segmented-control input#acc-high:checked ~ .segments .segment[data-value="high"] {
  background-color: rgb(24, 109, 175);
  color: #fff;
}

/* Container */
.accuracy-row {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

/* Hide default radios */
.segmented-control input[type="radio"] {
  display: none;
}

/* Segments container */
.segments {
  display: flex;
  gap: 8px;
}

/* Each option */
.segment {
  border: 2px solid rgb(24, 109, 175);
  border-radius: 3rem;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Aileron', sans-serif;
  color: rgb(24, 109, 175);
  background-color: rgb(248, 247, 242);
  transition: background-color 0.2s, color 0.2s;
  text-align: center;
  min-width: 120px;
}


/* Active (selected) */
.segment.active {
  background-color: rgb(24, 109, 175);
  color: white;
}

.segment small {
    display: inline-block;    /* treat as a single block */
    white-space: nowrap;      /* prevent wrapping */
}



/* Buttons container */
.user-btn-group {
    display: flex;
    gap: 0.5rem;   /* gap-2 equivalent */
    margin-top: 1rem; /* mt-2 equivalent */
    justify-content: flex-start; /* adjust if needed */
}

/* Continue / Primary button */
#submit-user-btn {
    background-color: rgb(24, 109, 175);
    color: #fff;
    border: none;
    border-radius: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#submit-user-btn:hover {
    transform: scale(1.05); /* slight scale on hover */
    text-decoration: underline;
}

/* Cancel / Outline button */
#cancel-user-btn {
    border-radius: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#cancel-user-btn:hover {
    transform: scale(1.05);
    text-decoration: underline;
}

#personality-title {
  font-family: 'Glacial', cursive;
  font-size: 4rem;
  text-align: left;   /* horizontal centering */
}

.personality-list {
  font-family: 'Aileron', Times, serif;
  font-size: 1.2rem;
  line-height: 1.6;
  padding-left: 1.2rem;   /* keeps bullets aligned nicely */
  margin: 0;
  text-align: justify;
  width: 80%;
}

.personality-list li {
  margin-bottom: 0.5rem;
}


.results-layout {
    display: flex;
    width: 85%;
    align-items: flex-start;
    margin: auto;

}

.results-left {
    width: 70%;
}

.results-right {
    width: 30%;
}

/* Optional: responsive fallback */


@media (max-width: 768px) {
    .results-layout {
        flex-direction: column;
    }

    .results-left,
    .results-right {
        width: 100%;
    }

    .segmented-control .segment {
      flex: 1;
      min-width: 100px;
      padding: 16px 12px;
    }
}


.insight-section {
    width: 60%;
    align-items: center;
    margin: 3rem auto;
}

.insight-box {
    padding: 3.5rem 2rem;
    margin-bottom: -1rem;
    border-radius: 20px;
    font-family: 'Aileron', sans-serif;
    text-align: justify;
}

.insight-1 { position: relative; background: rgb(248, 247, 242); z-index: 3;}
.insight-2 { position: relative; background: rgb(214, 232, 247); z-index: 2;}
.insight-3 { position: relative; background: rgb(0, 53, 122); color: white; z-index: 1;} 


.heading-layout {
    display: flex;
    width: 90%;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
  .heading-layout {
      flex-direction: column;
  }

  .insight-box {
    padding: 2rem 1rem;
}

.insight-section {
    width: 90%;
}

}


.impact-heading {
    width: 60%;
    text-align: left;
    font-family: 'Aptos', sans-serif;
    margin: 0;
}

.impact-avatar {
    width: 34%;
    text-align: center;
    margin-top: 2rem;
}

.impact-avatar img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.letter-layout {
    display: flex;
    width: 100%;
    margin-top: 2rem;
    justify-content: center;
}

.letter-left, .letter-middle, .letter-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'Aileron', sans-serif;
}

.letter-left, .letter-right { width: 30%;}
.letter-middle { width: 20%; align-items: center; }

.letter-right {
    justify-content: space-between;
    margin-top: 3rem;
}

.letter-left {
  margin-top: 2rem;
}

.circle {
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    color: rgb(24, 109, 175);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -1.5rem;
    font-weight: bold;
    font-size: 3rem;
}

#circle-1 {
    background-image: url('../assets/circle-1.png');
    background-size: cover;       /* fills the circle */
    background-position: center;  /* centers the image */
    background-repeat: no-repeat; /* no tiling */
}

#circle-2 {
    background-image: url('../assets/circle-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#circle-3 {
    background-image: url('../assets/circle-3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#personality-title {
    font-size: 2.2rem;
    letter-spacing: 1px;
}

/* Personality title (name) */
.psi-title {
    color: rgb(120, 48, 53);          /* example: deep red */
    font-weight: 700;
}

.psi-prefix {
  font-size: 2.2rem;
  letter-spacing: 1px;  
  color: rgb(45, 45, 45);          /* example: deep red */
    font-weight: 700;
}

#personality-text ul {
    list-style: none;     /* removes bullets */
    padding-left: 0;      /* removes left indent */
    margin-top: 2.5rem;   /* adds space ABOVE the list */
}


/* Container for each letter section */
.letter-description {
    margin-bottom: 2rem;        /* space between each letter block */
    text-align: center;          /* center heading and description */
    font-family: 'Aptos', sans-serif;
    margin-left: 1rem;
    margin-right: 1rem;
}

/* First block: left-aligned */
#desc-first .letter-description,
#desc-third .letter-description {
    text-align: left;
}

/* Second block: centered */
#desc-second .letter-description {
    text-align: right;
}

/* Heading for each letter */
.letter-description h3 {
    font-size: 1.2rem;           /* adjust as needed */
    color: rgb(45, 45, 45);      /* dark gray for description */
    margin-bottom: 0;
    font-weight: 700;
    font-family: 'Aileron', sans-serif;
}

/* Paragraph / description */
.letter-description p {
    font-size: 1.2rem;
    color: rgb(45, 45, 45);      /* dark gray for description */
    line-height: 1.6;
    margin: 0;
    font-family: 'Aileron', sans-serif;
}

/* Mobile stacking: vertical order */
@media (max-width: 768px) {
    .letter-layout {
        flex-direction: column;       /* stack columns vertically */
        align-items: center;          /* center horizontally */
    }

    .letter-left, .letter-middle, .letter-right {
        width: 100%;                  /* take full width */
        margin-top: 1rem;             /* optional spacing */
        align-items: center;          /* center content inside each block */
    }

    /* Optional: reset circle margins for mobile */
    .circle {
        margin: -1.6rem 0;
    }

    /* Description text centered for all on mobile */
    .letter-description {
        text-align: center !important;
    }
    #desc-first .letter-description {
        margin-top: 2rem;
    }
}

