:root {
  --primary-color: #8a2be2; /* Purple */
  --secondary-color: #4b0082; /* Indigo */
  --light-grey: #e0e0e0;
  --dark-grey: #666;
  --light-text: #999;
  --background-color: #f5f0ff;
  --card-shadow: 0 10px 30px rgba(75, 0, 130, 0.08);
  --transition-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --button-gradient: linear-gradient(135deg, #9c27b0, #673ab7);
  --bg-gradient: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.05),
    rgba(75, 0, 130, 0.1)
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

body {
  min-height: 100vh;
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 80vh;
  overflow: hidden; /* Prevent scrolling at container level */
}

.test-header {
  text-align: center;
  margin: 20px 0;
  color: var(--secondary-color);
  font-size: 28px;
  font-weight: 600;
}

/* Progress bar at the top */
.progress-container {
  background-color: white;
  padding: 15px 20px;
  border-radius: 15px 15px 0 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
  position: relative;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  position: relative;
}

.progress-steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--light-grey);
  transform: translateY(-50%);
  z-index: 0;
}

.progress-step {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--light-grey);
  position: relative;
  z-index: 1;
  transition: var(--transition-default);
}

.progress-step.active {
  background-color: var(--primary-color);
  transform: scale(1.5);
}

.progress-step.completed {
  background-color: var(--secondary-color);
}

.progress-bar {
  height: 6px;
  background-color: var(--light-grey);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--dark-grey);
  font-weight: 500;
}

/* Test container styling */
.test-container {
  display: none; /* Hidden initially */
  flex-direction: column;
  background-color: white;
  border-radius: 0 0 15px 15px;
  box-shadow: var(--card-shadow);
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 150px); /* Adjust for header and progress bar */
}

/* Questions container - improved for multiple visible questions */
.questions-container {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  padding: 30px 40px;
  position: relative;
  -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  will-change: scroll-position;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.questions-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

/* Individual question styling */
.question {
  padding: 40px 20px;
  margin-bottom: 40px;
  border-radius: 15px;
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
  position: relative;
  transform: translateY(10px);
  background-color: rgba(255, 255, 255, 0.8);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.question.active {
  opacity: 1;
  transform: translateY(0);
  background-color: rgba(138, 43, 226, 0.05);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.1);
}

.question.prev,
.question.next {
  opacity: 0.7;
}

/* Question content styling */
.question-text {
  text-align: center;
  margin-bottom: 40px;
  font-size: 20px;
  color: #333;
  line-height: 1.6;
  transition: transform 0.3s ease;
}

.active .question-text {
  transform: scale(1.02);
}

.icon-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 5px;
}

.icon-label svg {
  color: var(--primary-color);
}

/* Options styling */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  max-width: 400px;
  position: relative;
  padding: 0;
}

.options::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 2px;
  background: linear-gradient(to right, #9c27b0 0%, #bdbdbd 50%, #303f9f 100%);
  z-index: 0;
  transform: translateY(-50%);
}

/* Position the labels container with absolute positioning */
.option-labels {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 10px auto 0;
  padding: 0;
  height: 20px; /* Fixed height for label area */
}

/* Position each label absolutely to align with first and last radio button */
.label {
  position: absolute;
  top: 0;
  font-size: 13px;
  color: var(--dark-grey);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.6px;
}

/* Position "Agree" label at the left edge */
.label:first-child {
  left: 5px;
  text-align: left;
}

/* Position "Disagree" label at the right edge */
.label:last-child {
  right: 5px;
  text-align: right;
}

/* Fix radio button spacing */
.option {
  position: relative;
  margin: 0 6px; /* Slightly increased spacing */
  z-index: 1;
}

/* Radio button options */
.option input[type="radio"] {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  z-index: 2;
}

.radio-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--light-grey);
  border-radius: 50%;
  background-color: white;
  transition: var(--transition-default);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Different sizes for radio buttons */
.option:nth-child(1) .radio-circle,
.option:nth-child(7) .radio-circle {
  height: 48px;
  width: 48px;
}

.option:nth-child(2) .radio-circle,
.option:nth-child(6) .radio-circle {
  height: 40px;
  width: 40px;
}

.option:nth-child(3) .radio-circle,
.option:nth-child(5) .radio-circle {
  height: 32px;
  width: 32px;
}

.option:nth-child(4) .radio-circle {
  height: 26px;
  width: 26px;
}

/* Radio button colors */
.option:nth-child(1) .radio-circle {
  border-color: #9c27b0;
}
.option:nth-child(2) .radio-circle {
  border-color: #ab47bc;
}
.option:nth-child(3) .radio-circle {
  border-color: #ba68c8;
}
.option:nth-child(4) .radio-circle {
  border-color: #bdbdbd;
}
.option:nth-child(5) .radio-circle {
  border-color: #5c6bc0;
}
.option:nth-child(6) .radio-circle {
  border-color: #3f51b5;
}
.option:nth-child(7) .radio-circle {
  border-color: #303f9f;
}

/* Selected states */
.option input:checked ~ .radio-circle {
  transform: scale(1.08);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.25);
}

.option:nth-child(1) input:checked ~ .radio-circle {
  background-color: #9c27b0;
}
.option:nth-child(2) input:checked ~ .radio-circle {
  background-color: #ab47bc;
}
.option:nth-child(3) input:checked ~ .radio-circle {
  background-color: #ba68c8;
}
.option:nth-child(4) input:checked ~ .radio-circle {
  background-color: #bdbdbd;
}
.option:nth-child(5) input:checked ~ .radio-circle {
  background-color: #5c6bc0;
}
.option:nth-child(6) input:checked ~ .radio-circle {
  background-color: #3f51b5;
}
.option:nth-child(7) input:checked ~ .radio-circle {
  background-color: #303f9f;
}

/* Question number indicator */
.question-number {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(138, 43, 226, 0.08);
  color: var(--primary-color);
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Navigation arrows - moved outside questions container */
.navigation-arrows {
  position: absolute;
  right: -20px; /* Position outside the container */
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
}

.nav-arrow {
  background-color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Make them circular */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(75, 0, 130, 0.2);
  transition: all 0.3s ease;
  color: var(--primary-color);
  outline: none;
}

.nav-arrow:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.nav-arrow:focus {
  outline: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .test-header {
    font-size: 22px;
    margin: 15px 0;
  }

  .progress-container {
    padding: 12px 15px;
  }

  .questions-container {
    padding: 20px 15px;
  }

  .question {
    padding: 30px 15px;
    min-height: 250px;
  }

  .question-text {
    font-size: 18px;
    margin-bottom: 30px;
  }

  /* Adjust radio button sizes for mobile */
  .option:nth-child(1) .radio-circle,
  .option:nth-child(7) .radio-circle {
    height: 40px;
    width: 40px;
  }

  .option:nth-child(2) .radio-circle,
  .option:nth-child(6) .radio-circle {
    height: 34px;
    width: 34px;
  }

  .option:nth-child(3) .radio-circle,
  .option:nth-child(5) .radio-circle {
    height: 28px;
    width: 28px;
  }

  .option:nth-child(4) .radio-circle {
    height: 22px;
    width: 22px;
  }

  /* Reposition navigation arrows for mobile */
  .navigation-arrows {
    right: 10px;
    top: auto;
    bottom: 20px;
    flex-direction: row;
    transform: none;
  }

  .nav-arrow {
    width: 45px;
    height: 45px;
  }

  .options {
    padding: 0 5px;
  }

  .option-labels {
    padding: 0 15px;
  }

  .options::before {
    left: 15px;
    right: 15px;
  }

  .option {
    margin: 0 5px;
  }
}

/* Additional mobile tweaks */
@media (max-width: 480px) {
  .test-container {
    height: calc(100vh - 130px);
  }

  .question-text {
    font-size: 16px;
  }

  .option:nth-child(1) .radio-circle,
  .option:nth-child(7) .radio-circle {
    height: 36px;
    width: 36px;
  }

  .label {
    font-size: 11px; /* Smaller text on mobile */
    width: 60px;
  }

  .question-number {
    font-size: 10px;
    padding: 3px 8px;
  }

  .options::before {
    height: 1px;
    left: 10px;
    right: 10px;
  }

  .options,
  .option-labels {
    max-width: 340px; /* Further reduce width on small screens */
  }

  .options {
    padding: 0;
  }

  .option-labels {
    padding: 0 10px;
  }

  .option {
    margin: 0 4px;
  }

  .label:first-child {
    left: 4px;
  }

  .label:last-child {
    right: 4px;
  }
}

/* Intro screen - viewport contained */
.intro-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0 auto;
  max-width: 1000px;
  padding: 20px;
}

/* Three-section layout to manage space efficiently */
.intro-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 30px;
  flex: 1;
  max-height: calc(100vh - 80px);
}

/* Top section with icon, title and description */
.intro-header {
  text-align: center;
  margin-bottom: 20px;
  flex: 0 0 auto;
}

.intro-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  color: var(--primary-color);
}

.intro-screen h1 {
  color: var(--primary-color);
  font-size: clamp(24px, 5vw, 32px);
  margin-bottom: 10px;
  line-height: 1.2;
}

.intro-description {
  font-size: clamp(14px, 3vw, 16px);
  color: #555;
  margin-bottom: 0;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
}

/* Middle section with features and info */
.intro-middle {
  display: flex;
  flex: 1;
  gap: 20px;
  margin: 20px 0;
  min-height: 0; /* Important for flex child overflow */
  overflow: hidden;
}

.info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* Important for nested flex overflow */
}

.info-card {
  flex: 1;
  background: var(--bg-gradient);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
}

.info-card::-webkit-scrollbar {
  width: 6px;
}

.info-card::-webkit-scrollbar-track {
  background: transparent;
}

.info-card::-webkit-scrollbar-thumb {
  background-color: rgba(138, 43, 226, 0.2);
  border-radius: 6px;
}

.section-title {
  font-size: clamp(16px, 3vw, 18px);
  color: var(--secondary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title svg {
  width: 18px;
  height: 18px;
}

/* Features styling */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
}

.feature-icon {
  background: rgba(138, 43, 226, 0.1);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.feature-text {
  flex: 1;
}

.feature-text h4 {
  font-size: 15px;
  margin: 0 0 3px;
  color: var(--secondary-color);
}

.feature-text p {
  font-size: 13px;
  margin: 0;
  color: #666;
  line-height: 1.3;
}

/* Instructions styling */
.instructions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.instruction-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  padding: 8px 12px;
}

.instruction-icon {
  color: var(--primary-color);
  background: rgba(138, 43, 226, 0.1);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.instruction-text {
  font-size: 14px;
  line-height: 1.3;
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

/* Bottom section with button */
.intro-action {
  text-align: center;
  margin-top: 20px;
  flex: 0 0 auto;
}

.start-test-btn {
  background: var(--button-gradient);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.2);
}

.start-test-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(138, 43, 226, 0.3);
}

.start-test-btn:hover svg {
  transform: translateX(5px);
}

.start-test-btn svg {
  transition: transform 0.3s ease;
}

/* Privacy indicator below start button */
.privacy-indicator {
  font-size: 12px;
  color: #777;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Mobile styles */
@media (max-width: 768px) {
  .intro-content {
    padding: 20px;
    max-height: calc(100vh - 60px);
  }

  .intro-middle {
    flex-direction: column;
    margin: 10px 0;
    gap: 15px;
  }

  .info-column {
    min-height: 0;
  }

  .info-card {
    padding: 15px;
    max-height: 150px;
  }

  .feature-item {
    padding: 6px;
  }

  .feature-text h4 {
    font-size: 14px;
  }

  .feature-text p {
    font-size: 12px;
  }

  .instruction-item {
    padding: 6px 10px;
  }

  .instruction-text {
    font-size: 13px;
  }

  .intro-action {
    margin-top: 15px;
  }

  .start-test-btn {
    padding: 10px 25px;
    width: 100%;
    max-width: 280px;
  }
}

/* Very small screens */
@media (max-height: 600px) and (max-width: 768px) {
  .intro-content {
    padding: 15px;
  }

  .intro-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
  }

  .intro-screen h1 {
    margin-bottom: 5px;
  }

  .intro-description {
    display: none; /* Hide description on very small screens */
  }

  .section-title {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .feature-item,
  .instruction-item {
    padding: 5px;
  }

  .feature-icon,
  .instruction-icon {
    padding: 5px;
    width: 24px;
    height: 24px;
  }

  .info-card {
    max-height: 100px;
    padding: 10px;
  }
}

/* Results button container */
.results-button-container {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 80%,
    rgba(255, 255, 255, 0.8) 90%,
    rgba(255, 255, 255, 0) 100%
  );
  padding: 20px 0;
  text-align: center;
  z-index: 100;
}

/* Results button styling */
.show-results-btn {
  background: linear-gradient(135deg, #9c27b0, #673ab7);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.2);
  min-width: 260px;
}

.show-results-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(138, 43, 226, 0.3);
}

.show-results-btn:disabled {
  background: linear-gradient(135deg, #c5a1db, #a193d6);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.8;
}

.show-results-btn svg {
  transition: transform 0.3s;
}

.show-results-btn:hover:not(:disabled) svg {
  transform: translateX(5px);
}

@keyframes buttonEnable {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.show-results-btn.just-enabled {
  animation: buttonEnable 0.6s ease;
}

/* Contact form modal */
.contact-form-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.contact-form-container.visible {
  opacity: 1;
  visibility: visible;
}

.contact-form-inner {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  padding: 30px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.contact-form-container.visible .contact-form-inner {
  transform: translateY(0);
  opacity: 1;
}

.contact-form-container h2 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
  font-size: 28px;
}

.contact-form-container p {
  color: #666;
  text-align: center;
  margin-bottom: 25px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0px !important;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  color: #444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="tel"] {
  height: 50px;
  padding: 0 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
  outline: none;
}

.consent-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.consent-group input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
}

.consent-group label {
  margin: 0;
  font-size: 14px;
  font-weight: normal;
}

.error-message {
  color: #e53935;
  font-size: 12px;
  margin-top: 5px;
  min-height: 18px;
}

.form-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.form-submit-btn {
  background: linear-gradient(135deg, #9c27b0, #673ab7);
  color: white;
  border: none;
  height: 54px;
  border-radius: 30px;
  padding: 0 40px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(138, 43, 226, 0.3);
}

.form-submit-btn svg {
  transition: transform 0.3s;
}

.form-submit-btn:hover svg {
  transform: translateX(5px);
}

/* Loading indicator */
.loading-indicator {
  display: none;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.loading-indicator.visible {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(138, 43, 226, 0.2);
  border-left-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
	gap: 0px !important;
  }

  .contact-form-inner {
    padding: 20px;
  }

  .show-results-btn {
    width: 90%;
    max-width: 300px;
    padding: 12px 20px;
    font-size: 16px;
  }

  .form-submit-btn {
    width: 100%;
    padding: 0 20px;
  }

  .contact-form-container h2 {
    font-size: 22px;
  }

  .contact-form-container p {
    font-size: 14px;
  }
}
.iq-26-05-2025 {
	width: 100%;
}

@keyframes pulse-attention {
  0% {
    box-shadow: 0 0 0 0 rgba(126, 87, 194, 0.7);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(126, 87, 194, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(126, 87, 194, 0);
    transform: scale(1);
  }
}

.pulse-attention {
  animation: pulse-attention 1.5s ease;
}

/* Modal styles with elegant purple theme */
.iss-2666-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(20, 20, 40, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(6px);
  padding: 20px;
  box-sizing: border-box;
}

.iss-2666-modal-container.visible {
  opacity: 1;
  visibility: visible;
}

.iss-2666-modal-inner {
  width: 100%;
  max-width: 950px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.iss-2666-modal-container.visible .iss-2666-modal-inner {
  opacity: 1;
  transform: translateY(0);
}

.iss-2666-modal-content {
  display: flex;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  min-height: 550px;
  max-height: 90vh;
}

.iss-2666-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.iss-2666-close-btn svg {
  color: white;
  width: 18px;
  height: 18px;
}

.iss-2666-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* Side panel with purple gradient */
.iss-2666-modal-side {
  width: 38%;
  background: linear-gradient(135deg, #6157C8, #7849BC, #9761F7);
  color: white;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.iss-2666-side-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px 30px;
}

/* Decorative pattern overlay */
.iss-2666-modal-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1%, transparent 8%),
                    radial-gradient(circle at 75% 44%, rgba(255, 255, 255, 0.1) 1%, transparent 6%),
                    radial-gradient(circle at 23% 55%, rgba(255, 255, 255, 0.1) 1%, transparent 5%),
                    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.1) 1%, transparent 7%);
  background-size: 150px 150px, 130px 130px, 100px 100px, 200px 200px;
  background-position: 0 0, 20px 20px, 15px 15px, 30px 30px;
  opacity: 0.8;
}

.iss-2666-side-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 15px 0;
  letter-spacing: 0.3px;
  color: white; /* Explicitly setting to white for better contrast */
}

.iss-2666-side-subtitle {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 40px 0;
  opacity: 0.9;
  font-weight: 400;
  max-width: 90%;
}

/* Progress steps */
.iss-2666-progress-graphic {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: auto 0;
}

.iss-2666-progress-step {
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.iss-2666-progress-step.iss-2666-active {
  opacity: 1;
  transform: scale(1.05);
}

.iss-2666-progress-step.iss-2666-completed {
  opacity: 1;
}

.iss-2666-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.iss-2666-active .iss-2666-step-icon {
  background: white;
  color: #7849BC;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.iss-2666-completed .iss-2666-step-icon {
  background: #4CD964;
  color: white;
}

.iss-2666-step-icon::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
}

.iss-2666-progress-step:last-child .iss-2666-step-icon::after {
  display: none;
}

.iss-2666-step-label {
  font-weight: 500;
  font-size: 16px;
}

.iss-2666-side-footer {
  margin-top: auto;
  padding-top: 30px;
}

.iss-2666-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  font-size: 13px;
}

/* Form area */
.iss-2666-modal-body {
  flex: 1;
  background: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.iss-2666-body-header {
  margin-bottom: 25px;
}

.iss-2666-form-title {
  font-size: 24px;
  color: #333;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.iss-2666-form-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Form Elements */
.iss-2666-contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.iss-2666-form-row {
  display: flex;
  gap: 20px;
}

.iss-2666-form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.iss-2666-form-group label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.iss-2666-form-group input {
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  font-size: 15px;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  background: #f8f9ff;
}

.iss-2666-form-group input:focus {
  border-color: #7849BC;
  box-shadow: 0 0 0 3px rgba(120, 73, 188, 0.15);
  background: white;
  outline: none;
}

.iss-2666-error-message {
  color: #e53935;
  font-size: 12px;
  margin-top: 5px;
  min-height: 18px;
}

.iss-2666-form-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.iss-2666-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #6157C8, #7849BC);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 5px 15px rgba(120, 73, 188, 0.25);
  position: relative;
  overflow: hidden;
}

.iss-2666-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.iss-2666-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 25px rgba(120, 73, 188, 0.35);
}

.iss-2666-submit-btn:hover::before {
  left: 100%;
}

.iss-2666-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(120, 73, 188, 0.2);
}

.iss-2666-submit-btn svg {
  transition: transform 0.2s ease;
}

.iss-2666-submit-btn:hover svg {
  transform: translateX(3px);
}

/* Loading indicator */
.iss-2666-loading-indicator {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  text-align: center;
}

.iss-2666-loading-indicator.visible {
  display: flex;
}

.iss-2666-spinner {
  width: 45px;
  height: 45px;
  border: 3px solid rgba(120, 73, 188, 0.15);
  border-radius: 50%;
  border-top-color: #7849BC;
  animation: iss-2666-spin 1s linear infinite;
  margin-bottom: 15px;
}

.iss-2666-loading-indicator p {
  color: #7849BC;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

@keyframes iss-2666-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive design */
@media (max-width: 900px) {
  .iss-2666-modal-content {
    flex-direction: column;
    max-height: 85vh;
  }
  
  .iss-2666-modal-side {
    width: 100%;
    padding: 30px;
  }
  
  .iss-2666-side-content {
    padding: 0;
  }
  
  .iss-2666-progress-graphic {
    flex-direction: row;
    justify-content: space-around;
    margin: 25px 0;
    gap: 10px;
  }
  
  .iss-2666-step-icon::after {
    top: 50%;
    left: 100%;
    width: 30px;
    height: 2px;
    transform: translateY(-50%);
  }
  
  .iss-2666-side-footer {
    display: none;
  }
  
  .iss-2666-modal-body {
    padding: 30px;
    max-height: 70vh;
  }
  
  .iss-2666-side-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .iss-2666-side-subtitle {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .iss-2666-form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .iss-2666-modal-body {
    padding: 25px 20px;
  }
  
  .iss-2666-progress-graphic {
    display: none;
  }
  
  .iss-2666-progress-step {
    width: 100%;
  }
  
  .iss-2666-step-icon::after {
    top: 100%;
    left: 50%;
    width: 2px;
    height: 20px;
    transform: translateX(-50%);
  }
  
  .iss-2666-modal-side {
    padding: 25px 20px;
  }
}

/* Fix for intl-tel-input compatibility */
.iss-2666-form-group .iti {
  width: 100%;
}

.iss-2666-form-group .iti__flag-container {
  z-index: 10;
}

/* Advanced Personalized Loader Styles */
.iss-2666-advanced-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 10px;
  text-align: center;
  height: 100%;
}

.iss-2666-loader-header {
  margin-bottom: 30px;
}

.iss-2666-loader-header h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #6157C8, #9761F7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.iss-2666-user-name {
  position: relative;
  display: inline-block;
}

.iss-2666-user-name::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6157C8, #9761F7);
}

.iss-2666-loader-header p {
  color: #666;
  margin: 0;
  font-size: 16px;
}

/* Brain visualization */
.iss-2666-loader-brain {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 20px 0 40px;
}

.iss-2666-brain-container {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 50%;
  background: rgba(120, 73, 188, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(120, 73, 188, 0.2);
  animation: iss-2666-breathe 3s infinite ease-in-out;
}

@keyframes iss-2666-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(120, 73, 188, 0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(120, 73, 188, 0.25);
  }
}

.iss-2666-brain-scan {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  border: 2px dashed rgba(120, 73, 188, 0.3);
  animation: iss-2666-rotate 8s infinite linear;
}

.iss-2666-brain-pulse {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 97, 247, 0.1) 0%, rgba(120, 73, 188, 0.05) 50%, transparent 70%);
  animation: iss-2666-pulse 2s infinite ease-in-out;
}

.iss-2666-personality-label {
  font-size: 24px;
  font-weight: 700;
  color: #6157C8;
  text-shadow: 0 0 15px rgba(120, 73, 188, 0.5);
  animation: iss-2666-fade-in 1s ease-out forwards;
  letter-spacing: 1px;
}

.iss-2666-brain-scan-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #6157C8, transparent);
  transform-origin: top center;
  animation: iss-2666-scan 2s infinite ease-in-out;
}

@keyframes iss-2666-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes iss-2666-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes iss-2666-scan {
  0%, 100% {
    transform: translateX(-50%) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateX(-50%) rotate(180deg);
    opacity: 0.3;
  }
}

@keyframes iss-2666-fade-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Progress bar */
.iss-2666-loader-progress {
  width: 100%;
  max-width: 300px;
  margin-bottom: 30px;
}

.iss-2666-progress-bar {
  height: 6px;
  background: rgba(120, 73, 188, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.iss-2666-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6157C8, #9761F7);
  border-radius: 10px;
  position: relative;
  transition: width 0.3s ease-out;
}

.iss-2666-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  animation: iss-2666-shimmer 1s infinite;
}

@keyframes iss-2666-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.iss-2666-progress-status {
  font-size: 14px;
  color: #6157C8;
  text-align: center;
  transition: all 0.3s ease;
}

.iss-2666-message-change {
  animation: iss-2666-message-update 0.3s ease;
}

@keyframes iss-2666-message-update {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stats section */
.iss-2666-loader-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
}

.iss-2666-stat-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  padding: 15px;
  border-radius: 10px;
  background: #f8f9ff;
  box-shadow: inset 0 0 0 1px rgba(120, 73, 188, 0.1);
}

.iss-2666-stat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.iss-2666-stat-icon svg {
  color: white;
}

.iss-2666-analyzing {
  background: #6157C8;
  animation: iss-2666-pulse-icon 1s infinite ease-in-out;
  animation-delay: 0s;
}

.iss-2666-calculating {
  background: #9761F7;
  animation: iss-2666-pulse-icon 1s infinite ease-in-out;
  animation-delay: 0.33s;
}

.iss-2666-finalizing {
  background: #7849BC;
  animation: iss-2666-pulse-icon 1s infinite ease-in-out;
  animation-delay: 0.66s;
}

@keyframes iss-2666-pulse-icon {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.iss-2666-stat-content {
  flex: 1;
}

.iss-2666-stat-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.iss-2666-stat-value {
  font-weight: 600;
  color: #333;
  font-size: 14px;
  min-height: 20px;
  transition: all 0.3s ease;
}

.iss-2666-value-loaded {
  color: #6157C8;
  animation: iss-2666-value-appear 0.6s ease-out;
}

@keyframes iss-2666-value-appear {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  20% {
    opacity: 0.8;
    color: #9761F7;
    transform: translateY(-3px);
  }
  100% {
    opacity: 1;
    color: #6157C8;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .iss-2666-loader-stats {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .iss-2666-stat-item {
    padding: 12px;
  }
  
  .iss-2666-loader-brain {
    width: 150px;
    height: 150px;
    margin: 15px 0 30px;
  }
  
  .iss-2666-personality-label {
    font-size: 20px;
  }
  
  .iss-2666-loader-header h2 {
    font-size: 24px;
  }
}

.iss-2666-user-name {
  position: relative;
  display: inline-block;
  color: inherit;
  font-weight: 700;
}

.iss-2666-user-name::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6157C8, #9761F7);
}