/* * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: Arial, Helvetica,  Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #7c7c7c, #b21f1f, #fdbb2d);
            color: #333;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        } */

.container_quiz {
  /* width: 100%; */
  width: 800px;
  background: rgba(255, 255, 255, 1);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: fixed;
  top: calc(50% - 630px / 2);
  left: calc(50% - 800px / 2);
  z-index: 10000;
  border: 4px solid #ece9ec;
  align-items: center;
  z-index: 100004;
  background: #fff;
  box-shadow: 0px -1px 10px 1px rgb(124 123 123 / 75%);
  border-radius: 9px;
  display: none;
  height: 630px;
   /* overflow-y: auto; */
}

.close_quiz {
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  top: 15px;
  right: 15px;
  font-size: 0;
  cursor: pointer;
}

.close_quiz:before,
.close_quiz:after {
  content: "";
  width: 2px;
  height: 16px;
  background: #fff;
  left: calc(50% - 1px);
  bottom: 0;
  position: absolute;
  transform: rotate(45deg);
  z-index: 9999;
}

.close_quiz:hover:before,
.close_quiz:hover:after {
  content: "";
  width: 2px;
  height: 16px;
  background: #c5c5c5;
  left: calc(50% - 1px);
  bottom: 0;
  position: absolute;
  transform: rotate(45deg);
  z-index: 9999;
}

.close_quiz:after {
  transform: rotate(-45deg);
}

.close_quiz:hover:after {
  transform: rotate(-45deg);
}
.quiz_bg_right {
  background-image: url(../images/top_right_red2.png);
  min-height: 100%;
  background-size: cover;
  max-width: 200px;
  background-position-x: -224px;
  width: 100%;
}
.container_quiz .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.container_quiz .logo i {
  font-size: 2.5rem;
  color: #e60000;
}

.container_quiz .logo h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

.container_quiz .subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  color: #e60000;
}

/* .container_quiz .content {
  display: flex;
  min-height: 600px;
} */

.container_quiz .info-panel {
  flex: 1;
  background: #f8f9fa;
  padding: 40px 30px;
  border-right: 1px solid #eee;
}

/* .container_quiz .quiz-container {
  flex: 2;
  position: relative;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  overflow-y: auto;
} */

.container_quiz .quiz-container {
    flex: 2;
    position: relative;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    overflow-y: hidden; 
    transition: overflow-y 0s; 
}

.container_quiz .quiz-container.scroll-enabled {
    overflow-y: auto !important;
}

.container_quiz h2 {
  /* color: #2d3033; */
  color: #777;
  margin-bottom: 0;
  font-size: 1.7rem;
  position: relative;
  padding-bottom: 10px;
  text-align: left;
  margin-top: 0;
  line-height: 30px;
}

.container_quiz h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: #e60000;
  border-radius: 2px;
}

.container_quiz .features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.container_quiz .feature {
  background: white;
  padding: 20px;
  border-radius: 9px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.container_quiz .feature:hover {
  transform: translateY(-5px);
}

.container_quiz .feature i {
  font-size: 1.8rem;
  color: #7c7c7c;
  margin-bottom: 15px;
}

.container_quiz .feature h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #7c7c7c;
}

.container_quiz .step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.container_quiz .step.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px 40px;
  box-sizing: border-box;
  height: fit-content;
}
.container_quiz .step.active#step1,
.container_quiz .step.active#step2,
.container_quiz .step.active#step5,
.container_quiz .step.active#step6,
.container_quiz .step.active#step7{
  height: 100%;
  min-height: fit-content;
}
#step1,
.container_quiz .step.step-result.active,
#step6 {
  justify-content: center;
}
.container_quiz .step.active#step7 {
  justify-content: flex-start;
}

.container_quiz .welcome-text {
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 1.25rem 0 1rem 0;
  color: #444;
}
.container_quiz .welcome-text:empty {
  display: none;
}

.container_quiz .btn {
  background: #7c7c7c;
  color: #fff;
  border: none;
  padding: 15px 35px;
  font-size: 0.85rem;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: flex;
  text-align: center;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.container_quiz .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgb(148 148 148 / 60%);
}
.container_quiz .btn.active {
  background: #e60000;
}
.container_quiz .btn.active:hover {
  background: #e60000;
  transform: translateY(-3px);
  box-shadow: 0 7px 15px rgb(148 148 148 / 60%);
}

.container_quiz .btn-next,
.container_quiz .btn-next-one {
  background: #e60000;
  /* color: #7c7c7c; */
  margin-top: 30px;
  max-width: fit-content;
}

.container_quiz .btn-next:hover,
.container_quiz .btn-next-one:hover {
  background: #b60000;
  box-shadow: 0 7px 15px rgb(148 148 148 / 60%);
}

.container_quiz .question {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 22px;
  color: #7c7c7c;
}

.container_quiz .question-note {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 20px;
  margin-top: 10px;
  color: #a7a6a6;
}

.container_quiz .answers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  min-width: 519px;
}
.container_quiz #step2 .answers label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.container_quiz #step2 .answers label input {
  width: 17px;
  height: 17px;
  position: relative;
  top: -1.5px;
}

.container_quiz .answer {
  background: #fff;
  border: 2px solid #e9ecef;
  padding-left: 11px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.container_quiz .answer:hover {
  border-color: #7c7c7c;
  background: #f0f5ff;
}

.container_quiz .answer.selected {
  border-color: #cfcfcf;
  background: #fff;
}

.container_quiz .answer input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.container_quiz input {
  accent-color: #e60000;
}

.container_quiz .answer label {
  cursor: pointer;
  font-size: 1rem;
  flex: 1;
  padding: 11px 11px 11px 0;
}

.container_quiz .container_quiz.progress-container {
  margin: 30px 0;
}

.container_quiz .progress-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #7c7c7c;
}
.container_quiz .progress-text:last-child {
  margin-left: auto;
  background: #7c7c7c;
  color: #fff;
  padding: 5px 7px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.container_quiz .progress-bar {
  height: 10px;
  background: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
}

.container_quiz .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d64646, #e60000);
  border-radius: 6px;
  width: 0%;
  transition: width 0.5s ease;
}

.container_quiz .result-container {
  text-align: left;
  padding: 20px;
}

.container_quiz .role-title {
  font-size: 2rem;
  color: #302f2f;
  margin: 20px 0;
  font-weight: 700;
}

.container_quiz .role-description {
  font-size: 1rem;
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto 22px;
}

.container_quiz .contact-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 9px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  max-width: calc(100% - 42px);
}

.container_quiz .form-group {
  margin-bottom: 20px;
}
.telegram_check_group,
.email_check_group {
  display: none;
}
.container_quiz .form-group label,
.messengers_title {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #7c7c7c;
  font-size: 0.85rem;
}
.messengers_title_lable {
  font-size: 0.65rem;
}

.container_quiz .form-control {
  width: 100%;
  padding: 6px 15px;
  border: 2px solid #e9ecef;
  border-radius: 9px;
  font-size: 0.9rem;
  transition: border-color 0.3s;
  max-width: calc(100% - 22px);
  box-sizing: border-box;
  height: 33px;
}

.container_quiz .form-control:focus {
  border-color: #7c7c7c;
  outline: none;
}

.container_quiz .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
}

.container_quiz .consent input {
  margin-top: 5px;
}
.container_quiz .consent label {
  font-size: 12px;
}

.container_quiz .privacy-link {
  color: #7c7c7c;
  text-decoration: underline;
}

.container_quiz .thank-you {
  text-align: center;
  padding: 50px 20px;
}

.container_quiz .thank-you i {
  font-size: 5rem;
  color: #4caf50;
  margin-bottom: 30px;
}

.container_quiz .thank-you h2 {
  font-size: 2.5rem;
  color: #7c7c7c;
  margin-bottom: 20px;
}

.container_quiz .thank-you p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.8;
  text-align: left;
}
#roleTitle {
  position: relative;
}
/* #step6 {
  margin-top: 88px;
} */
.messengers {
  display: flex;
  gap: 32px;
}
.messenger:nth-child(2) {
  min-width: 46px;
}
.messenger input {
  position: relative;
}
.messenger #telegram::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: calc(50% - 12px);
  left: 20px;
  background: url(../images/icon-telegram.svg);
  background-size: contain;
}
.messenger #viber::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: calc(50% - 12px);
  left: 20px;
  background: url(../images/icon-viber.svg);
  background-size: contain;
}
.messenger #whatsapp::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: calc(50% - 12px);
  left: 20px;
  background: url(../images/icon-whatsapp.svg);
  background-size: contain;
}

.messenger #email_check::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: calc(50% - 10px);
  left: 26px;
  background: url(../images/mail_form_quiz.svg);
  background-size: contain;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container_quiz .container_quiz .integration-info {
  background: #e8f4ff;
  padding: 25px;
  border-radius: 9px;
  margin-top: 30px;
  border-left: 4px solid #7c7c7c;
}

.container_quiz .container_quiz .integration-info h3 {
  color: #7c7c7c;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.container_quiz .container_quiz .integration-info ul {
  padding-left: 20px;
}

.container_quiz .container_quiz .integration-info li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.container_quiz .container_quiz .api-code {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 15px;
  border-radius: 9px;
  font-family: monospace;
  margin-top: 15px;
  font-size: 0.9rem;
  overflow-x: auto;
}
.body_mask_accept {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 100000;
  background: rgb(255, 255, 255);
}
.answer,
.btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.error_popup,
.error {
  background: #ff0000;
  color: #fff;
  padding: 7px 11px;
  border-radius: 6px;
  margin: 10px 0;
  width: 100%;
  max-width: calc(100% - 13px);
  font-size: 15px;
}
.quiz-error {
  color: #ff0000;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
  padding: 5px;
  background-color: #ffe6e6;
  border-radius: 4px;
  border: 1px solid #ffcccc;
}

.show_container_quiz {
  display: none;
  background-color: #e60000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 1px 15px 2px rgb(110 110 110);
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 195px;
}

.show_container_quiz:hover {
  background-color: #cc0000;
  box-shadow: 0 6px 16px rgba(230, 0, 0, 0.3);
}

.show_container_quiz:active {
  background-color: #b30000;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn.loading::after {
    content: '...';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 2px;
    animation: dots 1.5s steps(4, end) infinite;
    white-space: nowrap;
}

@keyframes dots {
    0%, 20% { 
        content: '.'; 
    }
    40% { 
        content: '..'; 
    }
    60%, 100% { 
        content: '...'; 
    }
}




@media screen and (max-width: 1024px) {
  .container_quiz {
    top: 0;
    max-height: 100vh; 
  }
}

@media (max-width: 900px) {
  .container_quiz .content {
    flex-direction: column;
  }

  .container_quiz .info-panel {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .container_quiz .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container_quiz {
    width: 95vw;
    max-width: none;
    height: auto;
    height: fit-content;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    overflow-y: auto;
    position: fixed;
    max-height: 90vh;
  }
  .container_quiz .step.active {
    min-height: 100vh;
  }
  .container_quiz .quiz_bg_right {
    display: none;
  }

  .container_quiz .quiz-container {
    padding: 20px;
    width: 100%;
    height: auto;
    max-height: 90vh;
  }

  .container_quiz .step,
  .container_quiz .step.active {
    padding: 15px 0;
  }

  .container_quiz .question {
    font-size: 1.2rem;
    margin: 15px 0;
  }

  .container_quiz .answers {
    grid-template-columns: 1fr;
  }

  .container_quiz .answer {
    padding: 0 10px;
  }

  .container_quiz .answer label {
    font-size: 1rem;
  }

  .container_quiz .btn {
    width: 100%;
    max-width: none;
    padding: 12px;
    margin-top: 20px;
    font-size: 0.8rem;
  }

  .container_quiz .progress-text {
    font-size: 0.9rem;
  }

  .container_quiz .contact-form {
    padding: 15px;
    margin: 11px auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .container_quiz .form-control {
    padding: 0 12px;
  }

  .container_quiz .consent label {
    font-size: 0.85rem;
  }

  .container_quiz #step6 {
    margin-top: 30px;
  }

  .container_quiz .close_quiz {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    padding: 8px;
    z-index: 10;
  }

  .close_quiz:before,
  .close_quiz:after {
    content: "";
    width: 2px;
    height: 12px;
    background: #fff;
    left: calc(50% - 1px);
    bottom: calc(50% - 6px);
    position: absolute;
    transform: rotate(45deg);
    z-index: 9999;
  }
  .close_quiz:hover:before,
  .close_quiz:hover:after {
    content: "";
    width: 2px;
    height: 12px;
    background: #c5c5c5;
    left: calc(50% - 1px);
    bottom: calc(50% - 7px);
    position: absolute;
    transform: rotate(45deg);
    z-index: 9999;
  }
  .close_quiz:after {
    transform: rotate(-45deg);
  }

  .close_quiz:hover:after {
    transform: rotate(-45deg);
  }
  .container_quiz h2 {
    font-size: 1.4rem;
  }
  .container_quiz .thank-you h2,
  .container_quiz .role-title {
    font-size: 1.5rem;
  }
  .container_quiz .welcome-text,
  .container_quiz .role-description,
  .container_quiz .thank-you p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  .container_quiz .answers {
    min-width: calc(100vw - 60px);
  }
  .container_quiz .welcome-text {
    margin: 0.85rem 0 0.5rem 0;
  }
  .error_popup,
  .error {
    max-width: fit-content;
  }
  .container_quiz .form-control {
    max-width: 100%;
  }
  .container_quiz .answer label {
    padding: 11px;
  }
  .show_container_quiz {
    display: none;
    background-color: #e60000; 
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition:
      background-color 0.3s ease,
      box-shadow 0.3s ease;
    box-shadow: 0 1px 15px 2px rgb(110 110 110);
    position: fixed;
    z-index: 1000;
    right: 0;
    left: 0;
    bottom: 16px;
    width: fit-content;
  }
}
