body {
    background: hsla(280,10%,10%,0.1);
    overflow-y: auto;
}

.container {
    box-shadow: none;
}


.quiz-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
}

@media screen and (min-width: 720px) {
    .quiz-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.quiz-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.quiz-card:hover {
    transform: translateY(-4px);
    background: #e8d5ed;
}



.quiz-description {
    text-align: center;
    max-width: 80%;
    margin: 1.5rem auto 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    opacity: 0.9;
    padding: 0 1rem;
}

/* Question container styles */
.question {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.question label {
    font-weight: bold;
    display: block;
    margin-bottom: 1rem;
    color: #333;
}

/* Slider question specific styles */
.slider-question .slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.slider-question input[type="range"] {
    flex-grow: 1;
    height: 8px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 4px;
    outline: none;
}

.slider-question input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #4c0060;
    border-radius: 50%;
    cursor: pointer;
}

.slider-question .extreme-A,
.slider-question .extreme-B {
    font-size: 0.9rem;
    color: #666;
    min-width: 100px;
}

/* Button question specific styles */
.button-question .button-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Individual button option */
.button-question .button-option {
    flex: 1;
    min-height: 0; /* Crucial for equal height distribution */
}

/* Radio button + label wrapper */
.button-question input[type="radio"] + label {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 60px; /* Fallback */
}

/* Responsive grid for wider screens */
@media (min-width: 768px) {
  .button-question .button-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
  }

  .button-question .button-option {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure it expands to fill row */
  }

  .button-question input[type="radio"] + label {
    height: 100%; /* Fills the parent */
    display: flex;
    align-items: center;
  }
}


/* Text alignment for multi-line content */
.button-question .option-text {
    flex: 1;
    padding: 0.25rem 0;
    word-break: break-word;
}

.button-question input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.button-question input[type="radio"] + label {
    display: block;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: unset; /* Or a fallback if you want */
    display: flex;
    align-items: center;
}


.button-question input[type="radio"]:checked + label {
    background: #4c0060;
    color: white;
    border-color: #4c0060;
    box-shadow: 0 2px 8px rgba(76, 0, 96, 0.2);
}

.button-question input[type="radio"]:hover + label {
    background: #e8d5ed;
}

/* State styles (shared between both types) */
.question:not(:has(.data-not-selected)) > label {
    color: purple;
}

.data-not-selected input {
    background: hsla(0, 50%, 0%, 0.05);
}

.data-not-selected .extreme-A,
.data-not-selected .extreme-B {
    opacity: 0.75;
}

.data-not-selected input::-webkit-slider-thumb,
.data-not-selected input::-moz-range-thumb {
    opacity: 0.15;
}

.slider-container.data-is-1 .extreme-A,
.slider-container.data-is-2 .extreme-A,
.slider-container.data-is-4 .extreme-B,
.slider-container.data-is-5 .extreme-B {
    color: blue;
}

.slider-container.data-is-1 .extreme-A,
.slider-container.data-is-5 .extreme-B {
    font-weight: bold;
}

/* Result card styles (remain the same) */
.quiz-result-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    max-width: 680px;
    margin: 6rem auto;
    padding: 3rem;
    border-left: 5px solid var(--color-primary, #4c0060);
    font-family: system-ui, 'Segoe UI', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 4px 15px rgba(0, 0, 0, 0.08);
}



.quiz-result-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  max-width: 680px;
  margin: 6rem auto;
  padding: 3rem;
  border-left: 5px solid var(--color-primary, #4c0060);
  font-family: system-ui, 'Segoe UI', sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 4px 15px rgba(0, 0, 0, 0.08);
}

.result-label {
  font-size: 1.75rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0rem;
}

.result-score {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.result-summary {
  background: #f9f9f9;
  border-left: 4px solid #ccc;
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #333;
}

.result-support {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary, #4c0060);
  margin-bottom: 2.5rem;
}

.result-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
}

.result-actions .cta-button {
  background: var(--color-primary, #4c0060);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.result-actions .cta-button:hover {
  background: #350047;
}

.result-actions .secondary-button {
  background: transparent;
  color: #444;
  text-decoration: underline;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}
