@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    background-color: #f0f2f4;
    background-image: url(./quiz-bg.jpg);
    background-size: cover;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    background-attachment: fixed;
    background-size: cover;
    background-position: bottom;
}


h2,
h3,
h4 {
    font-weight: 600;
}

section {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


section.active {
    display: flex;
    gap: 20px;
}

section.thank-you {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    min-height: 86vh;
}


.btn-primary {
    background-color: #00a7d7;
    border-color: #00a7d7;
    color: #1F3F49;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #00a7d7;
    border-color: #e5aa52;
}

.progress {
    width: 100%;
    height: 10px;
    border-radius: 10px;
    margin: 20px auto 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid #e5e5e5;
}

.progress-bar {
    background-color: #00a7d7;
    transition: width 0.3s ease;
}

.question-count {
    margin-bottom: 20px;
    font-size: 1rem;
}

.badge-custom {
    background-color: #00a7d7;
    color: #1F3F49;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 50px;
}

.question-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    border-radius: 16px;
    padding: 10px;
}


.form-check {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px 18px 60px;
    font-size: 1rem;
    font-weight: 500;
    background: #fff;
    border-radius: 40px;
    border: 2px solid #e0e0e0;
    color: #1F3F49;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    user-select: none;
}

.form-check:hover {
    background: #00a7d7;
    border-color: #00a7d7;
    color: #1F3F49;
    box-shadow: 0 5px 15px rgba(239, 188, 110, 0.3);
}

.form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-check-label {
    cursor: pointer;
    flex: 1;
    font-size: 1.05rem;
    margin: 0;
}

.form-check::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    transition: all 0.3s ease;
}

.form-check-input:checked~.form-check-label,
.form-check-input:checked+.form-check-label {
    color: #1F3F49;
    font-weight: 600;
}

.form-check-input:checked~.form-check::before,
.form-check-input:checked+.form-check::before {
    border-color: #1F3F49;
}

.form-check::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    background: #1F3F49;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.form-check-input:checked~.form-check::after,
.form-check-input:checked+.form-check::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Selected (clicked) state visual feedback */
.form-check.selected {
    background: #00a7d7;
    color: #fff;
    border-color: #00a7d7;
    box-shadow: 0 4px 15px #00a8d76e;
    transform: scale(1.02);
    position: relative;
    transition: all 0.3s ease;
}

/* Add check mark icon on selection */
.form-check.selected::after {
    content: "";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: #00a7d7;
    opacity: 1;
    transition: opacity 0.3s ease;
}


.thank-you h3 {
    font-size: 3rem;
}
.thank-you p {
    margin-bottom: 25px;
    font-size: 1.6rem;
    max-width: 800px;
}

.header-bar {
    background-color: #f0f2f4;
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dcdfe3;
}

.logo img {
    height: 38px;
}

.center-dot {
    width: 40px;
    height: 40px;
    background-color: #33a6cc;
    border-radius: 50%;
    margin: 0 auto;
}

/* Language Switch Custom Dropdown */
.lang-switch {
    position: relative;
    width: 80px;
}

.lang-select-btn {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.lang-select-btn img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.lang-select-btn span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.lang-options {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 10;
}

.lang-options.active {
    display: block;
    animation: fadeIn 0.15s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-option:hover {
    background: #f1f1f1;
}

.lang-option img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.lang-option span {
    font-size: 14px;
    color: #333;
}

.arrow {
    font-size: 10px;
    color: #555;
    margin-left: 5px;
}

.personality-section {
    text-align: left;
    padding: 4%;
}

.personality-content {
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    width: 100%;
}

.personality-section img {
    width: 100%;
    height: 100%;
    max-width: 500px;
    max-height: 500px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* Huge Text */
.personality-content .ql-size-huge,
.ql-size-huge {
    font-weight: 800;
    font-size: 3rem; /* FIXED */
    line-height: 1.2;
    margin-right: 0;
}

/* Large Text */
.personality-content .ql-size-large,
.ql-size-large {
    font-weight: 700;
    font-size: 2rem; /* FIXED */
    line-height: 1.3;
    margin-right: 0;
}

/* Small Text */
.personality-content .ql-size-small,
.ql-size-small {
    font-weight: 600;
    font-size: 1rem; /* FIXED */
    line-height: 1.3;
    margin-right: 0;
}

h1{
    font-weight: 800;
    font-size: 3rem;
}
.personality-content p br {
    display: none;
}

.underline {
    width: 70px;
    height: 4px;
    background-color: #3bc9db;
    margin: 10px 0 30px 0;
    border-radius: 4px;
}

.personality-content p {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 15px;
}

.personality-content p span {
    font-size: 1.2rem;
    margin-right: 10px;
}

.highlight {
    font-weight: 600;
    color: #000;
}

.btn-start {
    background: #000;
    color: #fff;
    padding: 12px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-start:hover {
    background: #3bc9db;
    color: #fff;
}

@media screen and (min-width: 1180px) {

    .personality-section {
        height: calc(100vh - 60px);
    }
}

@media screen and (max-width: 1180px) {

    section#qa {
        height: calc(100vh - 60px);
        justify-content: flex-start;
    }

}

.personality-content ul {

    list-style-position: outside;
    padding-left: 0;
    margin-bottom: 0;
}
  
.personality-content ul li {
 
    text-transform: capitalize;
    color: #333333;
    background: url(./head-icon.svg) no-repeat;
    padding-left: 40px;
    list-style: none;
    font-size: 16px;
    line-height: 20px;
    margin: 0 0 15px;
    padding-left: 30px;
  
}

/* loade css */
.loader {
    position: absolute;
    inset: 0;
    background: #ffffff8c;
}

.loading{
    position:absolute; 
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right:0;
    background: #155d93 /*#5197d6*/;
    border-radius: 50%;
    /*box-shadow: 0 0 2px black;*/
    animation: loading 4s infinite;
  }
  
  .loading:nth-child(1) {
       animation-delay: 0.6s;  
       width: 10px;
       height: 10px;
      left:-25px;
  }
  
  .loading:nth-child(2) {
     animation-delay: 0.8s; 
     width: 10px;
     height: 10px;
  }
  
  .loading:nth-child(3) {
      animation-delay: 1s;
      width: 10px;
      height: 10px;
      right:-25px;
  }
  
  .loading { 
   animation-iteration-count:infinite; 
   animation-timing-function: ease-in;
  }
  
  @keyframes loading {
    0%{
    transform: translateY(0px);
    }
    20%{
    transform: translateY(0px);
    }
    30%{
    transform: translateY(-8px);
    }
    40%{
    transform: translateY(5px);
    }
    50%{
    transform: translateY(-2px);
    }
    60%{
    transform: translateY(2px);
    }
    80%{
    transform: translateY(0px);
    }
    100%{
    transform: translateY(0px);
    }
  }

  @media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 80%;
    }
}  