/* Quiz Styles */
.quiz-container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
    min-height: 80vh;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .quiz-wrapper {
    background: var(--White);
    border: 2px solid var(--Black);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
  }
  
  .quiz-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent
    );
    transition: left 0.6s ease;
  }
  
  .quiz-wrapper:hover::before {
    left: 100%;
  }
  
  .quiz-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  }
  
  /* Quiz Header */
  .quiz-header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideInDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
  }
  
  .quiz-title {
    color: var(--Black);
    font-family: "DM Sans", sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.2;
    position: relative;
    display: inline-block;
  }
  
  .quiz-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--Black);
    transform: translateX(-50%);
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .quiz-title:hover::after {
    width: 100%;
  }
  
  .quiz-description {
    color: var(--Black);
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
    animation: fadeIn 1s ease 0.4s both;
  }
  
  /* Quiz Progress */
  .quiz-progress {
    margin-bottom: 40px;
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
  }
  
  .progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--Black) 0%, #374151 100%);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 0%;
    position: relative;
    overflow: hidden;
  }
  
  .progress-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent
    );
    animation: shimmer 2s infinite;
  }
  
  .progress-text {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--Black);
    opacity: 0.7;
    animation: fadeIn 0.8s ease 0.6s both;
  }
  
  /* Quiz Content */
  .quiz-content {
    margin-bottom: 40px;
    min-height: 300px;
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
  }
  
  .question-container {
    animation: questionSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
  }
  
  .question-title {
    font-family: "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--Black);
    margin: 0 0 24px 0;
    line-height: 1.3;
    position: relative;
    padding-left: 20px;
  }
  
  .question-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 24px;
    background: var(--Black);
    transform: translateY(-50%);
    border-radius: 2px;
    animation: slideInLeft 0.6s ease 0.2s both;
  }
  
  .answers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .answer-item {
    position: relative;
    animation: answerSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation-fill-mode: both;
  }
  
  .answer-item:nth-child(1) {
    animation-delay: 0.1s;
  }
  .answer-item:nth-child(2) {
    animation-delay: 0.2s;
  }
  .answer-item:nth-child(3) {
    animation-delay: 0.3s;
  }
  .answer-item:nth-child(4) {
    animation-delay: 0.4s;
  }
  .answer-item:nth-child(5) {
    animation-delay: 0.5s;
  }
  .answer-item:nth-child(6) {
    animation-delay: 0.6s;
  }
  
  .answer-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: var(--White);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--Black);
    text-align: left;
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  
  .answer-option::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(0, 0, 0, 0.05),
      transparent
    );
    transition: left 0.6s ease;
  }
  
  .answer-option:hover::before {
    left: 100%;
  }
  
  .answer-option:hover {
    border-color: var(--Black);
    background: rgba(0, 0, 0, 0.02);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  
  .answer-option.selected {
    border-color: var(--Black);
    background: linear-gradient(135deg, var(--Black) 0%, #374151 100%);
    color: var(--White);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    animation: selectedPulse 0.6s ease;
  }
  
  .answer-option input[type="radio"] {
    display: none;
  }
  
  /* Quiz Navigation */
  .quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    animation: slideInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
  }
  
  .quiz-btn {
    padding: 14px 28px;
    border: 2px solid var(--Black);
    border-radius: 10px;
    background: var(--White);
    color: var(--Black);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  
  .quiz-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: left 0.6s ease;
  }
  
  .quiz-btn:hover::before {
    left: 100%;
  }
  
  .quiz-btn:hover:not(:disabled) {
    background: var(--Black);
    color: var(--White);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  
  .quiz-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(1.02);
  }
  
  .quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }
  
  .quiz-btn-submit {
    background: linear-gradient(135deg, var(--Black) 0%, #374151 100%);
    color: var(--White);
    border-color: var(--Black);
    animation: submitPulse 2s infinite;
  }
  
  .quiz-btn-submit:hover {
    background: linear-gradient(135deg, #374151 0%, var(--Black) 100%);
    color: var(--White);
    transform: translateY(-3px) scale(1.05);
    animation: none;
  }
  
  /* Quiz Results */
  .quiz-results {
    animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .results-title {
    font-family: "DM Sans", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--Black);
    text-align: center;
    margin: 0 0 32px 0;
  }
  
  .results-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding: 32px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    border: 2px solid #e5e7eb;
  }
  
  .score-display {
    text-align: center;
  }
  
  .score-number {
    display: block;
    font-family: "DM Sans", sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--Black);
    line-height: 1;
  }
  
  .score-label {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--Black);
    opacity: 0.7;
  }
  
  .percentage-display {
    text-align: center;
  }
  
  .percentage {
    font-family: "DM Sans", sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: var(--Black);
  }
  
  /* Results Breakdown */
  .results-breakdown {
    margin-bottom: 40px;
  }
  
  .question-result {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    background: var(--White);
  }
  
  .question-result.correct {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
  }
  
  .question-result.incorrect {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
  }
  
  .question-result-title {
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--Black);
    margin: 0 0 12px 0;
  }
  
  .question-result-answer {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    color: var(--Black);
    opacity: 0.8;
    margin: 0;
  }
  
  .question-result-status {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
  }
  
  .question-result-status.correct {
    color: #10b981;
  }
  
  .question-result-status.incorrect {
    color: #ef4444;
  }
  
  /* Email Form */
  .email-results {
    margin-bottom: 40px;
    padding: 32px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    border: 2px solid #e5e7eb;
  }
  
  .email-results h3 {
    font-family: "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--Black);
    margin: 0 0 24px 0;
    text-align: center;
  }
  
  .email-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .form-group label {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--Black);
  }
  
  .form-group input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
  }
  
  .form-group input:focus {
    outline: none;
    border-color: var(--Black);
  }
  
  .quiz-btn-email {
    background: var(--Black);
    color: var(--White);
    margin-top: 8px;
  }
  
  .quiz-btn-restart {
    background: var(--Black);
    color: var(--White);
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes slideInDown {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes questionSlideIn {
    from {
      opacity: 0;
      transform: scale(0.95) translateY(20px);
    }
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
  
  @keyframes answerSlideIn {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes selectedPulse {
    0% {
      transform: translateY(-3px) scale(1.02);
    }
    50% {
      transform: translateY(-3px) scale(1.05);
    }
    100% {
      transform: translateY(-3px) scale(1.02);
    }
  }
  
  @keyframes submitPulse {
    0%,
    100% {
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
    50% {
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(0, 0, 0, 0.2);
    }
  }
  
  @keyframes shimmer {
    0% {
      left: -100%;
    }
    100% {
      left: 100%;
    }
  }
  
  /* Loading Animation */
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /* Success Animation */
  @keyframes successBounce {
    0%,
    20%,
    53%,
    80%,
    100% {
      transform: translate3d(0, 0, 0);
    }
    40%,
    43% {
      transform: translate3d(0, -8px, 0);
    }
    70% {
      transform: translate3d(0, -4px, 0);
    }
    90% {
      transform: translate3d(0, -2px, 0);
    }
  }
  
  /* Error Shake Animation */
  @keyframes errorShake {
    0%,
    100% {
      transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
      transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
      transform: translateX(5px);
    }
  }
  
  /* Success Confirmation */
  .success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .success-overlay.show {
    opacity: 1;
  }
  
  .success-modal {
    background: var(--White);
    border: 2px solid var(--Black);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  }
  
  .success-overlay.show .success-modal {
    transform: scale(1) translateY(0);
  }
  
  .success-icon {
    margin-bottom: 24px;
    animation: successBounce 0.8s ease;
  }
  
  .success-modal h3 {
    font-family: "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--Black);
    margin: 0 0 16px 0;
    animation: slideInUp 0.6s ease 0.2s both;
  }
  
  .success-modal p {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    color: var(--Black);
    opacity: 0.8;
    margin: 0 0 32px 0;
    line-height: 1.5;
    animation: slideInUp 0.6s ease 0.3s both;
  }
  
  .success-close-btn {
    background: var(--Black);
    color: var(--White);
    border: 2px solid var(--Black);
    border-radius: 10px;
    padding: 12px 24px;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease 0.4s both;
  }
  
  .success-close-btn:hover {
    background: var(--White);
    color: var(--Black);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }
  
  /* Success Message */
  .quiz-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    z-index: 10001;
    animation: slideInRight 0.4s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }
  
  .quiz-message-success {
    background: #10b981;
    color: white;
    border: 2px solid #059669;
  }
  
  .quiz-message-error {
    background: #ef4444;
    color: white;
    border: 2px solid #dc2626;
  }
  
  .quiz-message-info {
    background: #3b82f6;
    color: white;
    border: 2px solid #2563eb;
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(100%);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .quiz-container {
      width: 95%;
      padding: 20px 0;
    }
  
    .quiz-wrapper {
      padding: 24px;
      margin: 0 10px;
    }
  
    .quiz-title {
      font-size: 28px;
    }
  
    .quiz-description {
      font-size: 16px;
    }
  
    .question-title {
      font-size: 20px;
      padding-left: 16px;
    }
  
    .question-title::before {
      width: 3px;
      height: 20px;
    }
  
    .answer-option {
      padding: 14px 16px;
      font-size: 15px;
    }
  
    .answer-option:hover {
      transform: translateY(-2px) scale(1.01);
    }
  
    .answer-option.selected {
      transform: translateY(-2px) scale(1.01);
    }
  
    .results-summary {
      flex-direction: column;
      gap: 24px;
      padding: 24px;
    }
  
    .score-number {
      font-size: 36px;
    }
  
    .percentage {
      font-size: 28px;
    }
  
    .quiz-navigation {
      flex-direction: column;
      gap: 12px;
    }
  
    .quiz-btn {
      width: 100%;
      padding: 12px 20px;
    }
  
    .quiz-btn:hover:not(:disabled) {
      transform: translateY(-2px) scale(1.02);
    }
  }
  
  @media (max-width: 480px) {
    .quiz-container {
      width: 98%;
      padding: 15px 0;
    }
  
    .quiz-wrapper {
      padding: 20px 16px;
      margin: 0 5px;
    }
  
    .quiz-title {
      font-size: 24px;
    }
  
    .quiz-description {
      font-size: 15px;
    }
  
    .question-title {
      font-size: 18px;
      padding-left: 12px;
    }
  
    .question-title::before {
      width: 2px;
      height: 18px;
    }
  
    .answer-option {
      padding: 12px 14px;
      font-size: 14px;
    }
  
    .answer-option:hover {
      transform: translateY(-1px) scale(1.005);
    }
  
    .answer-option.selected {
      transform: translateY(-1px) scale(1.005);
    }
  
    .quiz-btn {
      padding: 10px 16px;
      font-size: 14px;
    }
  
    .quiz-btn:hover:not(:disabled) {
      transform: translateY(-1px) scale(1.01);
    }
  
    .progress-bar {
      height: 10px;
    }
  
    .stat-card {
      padding: 20px 16px;
    }
  
    .stat-number {
      font-size: 24px;
    }
  }
  
  /* Tablet Landscape */
  @media (min-width: 769px) and (max-width: 1024px) {
    .quiz-container {
      width: 92%;
      max-width: 900px;
    }
  
    .quiz-wrapper {
      padding: 32px;
    }
  
    .quiz-title {
      font-size: 32px;
    }
  
    .question-title {
      font-size: 22px;
    }
  
    .answer-option {
      padding: 15px 18px;
    }
  }
  
  /* Large Screens */
  @media (min-width: 1025px) {
    .quiz-container {
      max-width: 900px;
    }
  
    .quiz-wrapper {
      padding: 48px;
    }
  
    .quiz-title {
      font-size: 40px;
    }
  
    .question-title {
      font-size: 26px;
    }
  
    .answer-option {
      padding: 18px 24px;
      font-size: 17px;
    }
  }
  
  /* High DPI Displays */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .quiz-wrapper {
      border-width: 1px;
    }
  
    .answer-option {
      border-width: 1px;
    }
  
    .quiz-btn {
      border-width: 1px;
    }
  }
  
  /* Reduced Motion */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  
    .quiz-wrapper::before,
    .answer-option::before,
    .quiz-btn::before {
      display: none;
    }
  }
  
  /* Debug styles */
  .quiz-debug {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
    font-family: "DM Sans", sans-serif;
  }
  
  .quiz-debug h3 {
    margin: 0 0 16px 0;
    color: var(--Black);
    font-size: 18px;
    font-weight: 600;
  }
  
  .quiz-debug pre {
    background: white;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.4;
    border: 1px solid #e5e7eb;
  }
  
  .quiz-error {
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 20px 0;
    color: #dc2626;
  }
  
  .quiz-error h2 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
  }
  
  .quiz-error p {
    margin: 0;
    font-size: 14px;
  }
  