/* Background and overlay */
body.home-page {
  font-family: 'Inter', Arial, sans-serif;
  background: url('assets/berlingo-car-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

body.home-page .overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 0;
}

/* Header with logo */
.home-header {
  width: 100%;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.citroen-logo {
  width: 200px;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Main container */
.container {
  z-index: 1;
  max-width: 800px;
  margin: auto;
  padding: 0 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b8a 100%);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 8px 30px rgba(255, 45, 85, 0.5);
  animation: pulse 2s infinite;
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: badgeShine 3s infinite;
}

@keyframes badgeShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(255, 45, 85, 0.5); }
  50% { transform: scale(1.05); box-shadow: 0 12px 40px rgba(255, 45, 85, 0.6); }
}

.badge-icon {
  font-size: 1.5rem;
}

.badge-text {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hero Title */
.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.title-highlight {
  display: block;
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b8a 50%, #ff2d55 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* Hero Description */
.hero-description {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 500;
  max-width: 600px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Start Button */
.start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b8a 100%);
  color: white;
  padding: 1.5rem 4rem;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(255, 45, 85, 0.5);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.start-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.start-btn:hover::before {
  left: 100%;
}

.start-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 40px rgba(255, 45, 85, 0.6);
}

.start-btn:active {
  transform: translateY(-2px) scale(1);
}

.btn-text {
  letter-spacing: 0.5px;
}

.btn-icon {
  transition: transform 0.3s ease;
}

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

/* Responsive styles - Tablet First */
@media (max-width: 1024px) {
  .citroen-logo {
    width: 180px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-description {
    font-size: 1.3rem;
  }

  .start-btn {
    font-size: 1.4rem;
    padding: 1.3rem 3.5rem;
  }
}

@media (max-width: 768px) {
  .citroen-logo {
    width: 160px;
  }

  .hero-badge {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.2rem;
  }

  .start-btn {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
  }
}

@media (max-width: 500px) {
  .home-header {
    padding: 1.5rem 1rem;
  }

  .citroen-logo {
    width: 140px;
  }

  .hero-badge {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .start-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
  }
}

/* FORM PAGE STYLES */
body.form-page {
  font-family: 'Inter', Arial, sans-serif;
  background: url('assets/berlingo-car-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  justify-content: center;
}

.form-container {
  z-index: 2;
  padding: 1.5rem 2.5rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
  border-radius: 10px;
  width: 95%;
  max-width: 500px;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-citroen-logo {
  width: 40vw;
  max-width: 200px;
  min-width: 120px;
  height: auto;
  object-fit: contain;
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #ce0101, #ff2d55);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-header p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  margin: 0;
}

.modern-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-wrapper input:focus {
  outline: none;
  border-color: #ff2d55;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.1);
  transform: translateY(-2px);
}

.input-wrapper input:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.2rem;
  opacity: 0.7;
  pointer-events: none;
}

.start-btn {
  background: linear-gradient(45deg, #ff2d55, #ff6b8a);
  color: white;
  padding: 1.2rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(255, 45, 85, 0.3);
}

.start-btn:hover {
  background: linear-gradient(45deg, #e0244a, #ff5a7a);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(255, 45, 85, 0.4);
}

.start-btn:active {
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.start-btn:hover .btn-icon {
  transform: translateX(3px);
}

/* Responsive form styles */
@media (max-width: 768px) {
  .form-container {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }

  .form-header h1 {
    font-size: 1.8rem;
  }

  .form-header p {
    font-size: 0.9rem;
  }

  .input-wrapper input {
    padding: 0.9rem 0.9rem 0.9rem 2.5rem;
    font-size: 0.95rem;
  }

  .input-icon {
    left: 0.8rem;
    font-size: 1.1rem;
  }

  .start-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 500px) {
  .form-container {
    padding: 1.5rem 1rem;
    width: 95%;
  }

  .form-header h1 {
    font-size: 1.5rem;
  }

  .form-header p {
    font-size: 0.85rem;
  }

  .modern-form {
    gap: 1.2rem;
  }

  .input-wrapper input {
    padding: 0.8rem 0.8rem 0.8rem 2.2rem;
    font-size: 0.9rem;
  }

  .input-icon {
    left: 0.7rem;
    font-size: 1rem;
  }

  .start-btn {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* ========================================
     LIGHT FORM PAGE STYLES - TABLET OPTIMIZED
     ======================================== */

body.form-page-light {
  font-family: 'Inter', Arial, sans-serif;
  background: url('assets/berlingo-car-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #2c3e50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

/* Dark overlay for car background */
body.form-page-light::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.55) 50%,
      rgba(0, 0, 0, 0.60) 100%);
  pointer-events: none;
  z-index: 0;
}

.form-header-top {
  position: relative;
  z-index: 2;
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.form-header-top .form-citroen-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.08));
}

.form-container-light {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 600px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container-light:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 12px rgba(0, 0, 0, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.02);
}

.form-container-light .form-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.form-container-light .form-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #2c3e50;
  line-height: 1.2;
}

.form-container-light .form-header p {
  font-size: 1.1rem;
  color: #6c757d;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

.modern-form-light {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group-light {
  text-align: left;
}

.form-group-light label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.input-wrapper-light {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper-light input {
  width: 100%;
  padding: 1.2rem 1.2rem 1.2rem 3.5rem;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  background: #ffffff;
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 500;
  font-family: 'Inter', Arial, sans-serif;
  transition: all 0.3s ease;
  outline: none;
  min-height: 56px;
  /* Touch-friendly minimum */
}

.input-wrapper-light input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.input-wrapper-light input:hover {
  border-color: #ced4da;
  background: #f8f9fa;
}

.input-wrapper-light input:focus {
  border-color: #ff2d55;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.08);
}

.input-icon-light {
  position: absolute;
  left: 1.2rem;
  color: #6c757d;
  pointer-events: none;
  transition: color 0.3s ease;
}

.input-wrapper-light input:focus~.input-icon-light {
  color: #ff2d55;
}

.start-btn-light {
  background: linear-gradient(135deg, #ff2d55 0%, #ff4569 100%);
  color: white;
  padding: 1.3rem 2.5rem;
  border: none;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'Inter', Arial, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  letter-spacing: 0.02em;
  box-shadow:
    0 4px 12px rgba(255, 45, 85, 0.25),
    0 8px 24px rgba(255, 45, 85, 0.15);
  min-height: 56px;
  /* Touch-friendly */
  position: relative;
  overflow: hidden;
}

.start-btn-light::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.5s ease;
}

.start-btn-light:hover {
  background: linear-gradient(135deg, #e0244a 0%, #ff2d55 100%);
  transform: translateY(-3px);
  box-shadow:
    0 8px 20px rgba(255, 45, 85, 0.3),
    0 12px 32px rgba(255, 45, 85, 0.2);
}

.start-btn-light:hover::before {
  left: 100%;
}

.start-btn-light:active {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(255, 45, 85, 0.25),
    0 6px 16px rgba(255, 45, 85, 0.15);
}

.btn-icon-light {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.start-btn-light:hover .btn-icon-light {
  transform: translateX(4px);
}

/* Tablet Landscape Optimizations (1024x768, 1366x768, etc.) */
@media (min-width: 768px) and (max-width: 1440px) and (orientation: landscape) {
  body.form-page-light {
    padding: 1.5rem;
  }

  .form-container-light {
    max-width: 650px;
    padding: 3.5rem 3rem;
  }

  .form-container-light .form-header h1 {
    font-size: 2.75rem;
  }

  .form-container-light .form-header p {
    font-size: 1.15rem;
  }

  .input-wrapper-light input {
    font-size: 1.25rem;
    padding: 1.3rem 1.3rem 1.3rem 3.8rem;
    min-height: 60px;
  }

  .input-icon-light {
    left: 1.3rem;
    width: 22px;
    height: 22px;
  }

  .start-btn-light {
    font-size: 1.3rem;
    padding: 1.4rem 3rem;
    min-height: 60px;
  }
}

/* Large Tablets and Small Desktops */
@media (min-width: 1024px) {
  .form-container-light {
    max-width: 680px;
  }
}

/* Mobile Portrait */
@media (max-width: 767px) {
  body.form-page-light {
    padding: 1.5rem 1rem;
  }

  .form-header-top {
    margin-bottom: 1.5rem;
  }

  .form-header-top .form-citroen-logo {
    width: 150px;
  }

  .form-container-light {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .form-container-light .form-header {
    margin-bottom: 2rem;
  }

  .form-container-light .form-header h1 {
    font-size: 2rem;
  }

  .form-container-light .form-header p {
    font-size: 1rem;
  }

  .modern-form-light {
    gap: 1.75rem;
  }

  .form-group-light label {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }

  .input-wrapper-light input {
    padding: 1.1rem 1.1rem 1.1rem 3.2rem;
    font-size: 1.1rem;
    min-height: 52px;
  }

  .input-icon-light {
    left: 1.1rem;
    width: 18px;
    height: 18px;
  }

  .start-btn-light {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    min-height: 52px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  body.form-page-light {
    padding: 1rem 0.75rem;
  }

  .form-header-top .form-citroen-logo {
    width: 130px;
  }

  .form-container-light {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }

  .form-container-light .form-header h1 {
    font-size: 1.75rem;
  }

  .form-container-light .form-header p {
    font-size: 0.95rem;
  }

  .modern-form-light {
    gap: 1.5rem;
  }

  .input-wrapper-light input {
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    border-radius: 14px;
  }

  .input-icon-light {
    left: 1rem;
    width: 16px;
    height: 16px;
  }

  .start-btn-light {
    padding: 1.1rem 1.75rem;
    font-size: 1rem;
    border-radius: 14px;
  }
}

/* QUIZ PAGE STYLES */
body.quiz-page {
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: rgb(255, 255, 255);
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main Quiz Container with Glassmorphism */
.quiz-container {
  max-width: 900px;
  width: 95%;
  margin: 20px auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Shine effect for container */
.quiz-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  pointer-events: none;
}

.quiz-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  gap: 1rem;
}

.quiz-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.header-logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.quiz-citroen-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.header-image-section {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  width: 100%;
}

.header-question-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.quiz-car-image {
  width: 40%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto 1rem auto;
}

.quiz-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2c3e50;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quiz-content {
  position: relative;
}

.question-section {
  animation: fadeIn 0.5s ease-in-out;
}

.question-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b8a 100%);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 45, 85, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.question-text {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2.5rem;
  line-height: 1.5;
  padding: 1.5rem 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b8a 100%);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(255, 45, 85, 0.5);
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.question-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  border-radius: 17px 17px 0 0;
  pointer-events: none;
}

.question-text::after {
  content: '❓';
  position: absolute;
  top: -25px;
  right: -15px;
  font-size: 4rem;
  opacity: 0.9;
  transform: rotate(15deg);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.answers-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.answer-btn {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 20px;
  font-size: 2.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: right;
  position: relative;
  overflow: visible;
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.answer-badge {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.answer-text {
  flex: 1;
  text-align: right;
  padding-right: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.answer-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 114, 128, 0.5);
  background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
}

.answer-btn:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.answer-btn.correct {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
  color: white !important;
  animation: correctAnswer 0.5s ease-in-out;
  box-shadow: 0 6px 20px rgba(56, 239, 125, 0.4), 0 8px 32px rgba(17, 153, 142, 0.3);
}

.answer-btn.correct .answer-badge {
  background: rgba(255, 255, 255, 0.3) !important;
}



.answer-btn.incorrect {
  background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%) !important;
  color: white !important;
  animation: incorrectAnswer 0.5s ease-in-out;
  box-shadow: 0 6px 20px rgba(244, 92, 67, 0.4), 0 8px 32px rgba(235, 51, 73, 0.3);
}

.answer-btn.incorrect .answer-badge {
  background: rgba(255, 255, 255, 0.3) !important;
}



@keyframes popIn {
  0% {
    transform: translateY(-50%) scale(0);
    opacity: 0;
  }

  50% {
    transform: translateY(-50%) scale(1.2);
  }

  100% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
}



.answer-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 3.5rem;
  border-radius: 20px;
  font-size: 30px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
  position: relative;
  overflow: hidden;
  min-width: 220px;
  letter-spacing: 1px;
}

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

.next-btn:hover::before {
  left: 100%;
}

.next-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.next-btn:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.next-btn-text {
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.next-btn-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.next-btn:hover .next-btn-icon {
  transform: translateX(8px);
}

.results-section {
  animation: fadeIn 0.5s ease-in-out;
}

.results-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}



@keyframes confetti {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); opacity: 1; }
  25% { transform: translateX(-50%) translateY(-10px) rotate(-5deg); }
  50% { transform: translateX(-50%) translateY(0) rotate(0deg); opacity: 0.8; }
  75% { transform: translateX(-50%) translateY(-10px) rotate(5deg); }
}

.results-title {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b8a 50%, #ff2d55 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  animation: shine 3s linear infinite, bounceIn 0.8s ease-out;
  text-shadow: none;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.score-display {
  margin-bottom: 2rem;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}

.score-display::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 45, 85, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.score-number {
  font-size: 5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b8a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: Arial, Helvetica, sans-serif;
  direction: ltr;
  unicode-bidi: embed;
  animation: countUp 1s ease-out, float 3s ease-in-out infinite;
  text-shadow: none;
  position: relative;
  z-index: 1;
}

@keyframes countUp {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.score-text {
  font-size: 3rem;
  font-weight: 700;
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
  z-index: 1;
}

.results-message {
  font-size: 1.4rem;
  color: #374151;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 500;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.restart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ff2d55 0%, #ff6b8a 100%);
  color: white;
  border: none;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 1.25rem 3rem;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(255, 45, 85, 0.4);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.restart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.restart-btn:hover::before {
  left: 100%;
}

.restart-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(255, 45, 85, 0.5);
}

.restart-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes correctAnswer {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes incorrectAnswer {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.05) translateX(-5px);
  }

  50% {
    transform: scale(1.05) translateX(5px);
  }

  75% {
    transform: scale(1.05) translateX(-5px);
  }

  100% {
    transform: scale(1);
  }
}

/* Responsive Quiz Styles */
@media (max-width: 768px) {
  .quiz-container {
    padding: 1.5rem;
    margin: 1rem;
    border-radius: 15px;
  }

  .quiz-header {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 15px;
  }

  .quiz-citroen-logo {
    width: 120px;
  }

  .header-question-image {
    max-width: 280px;
    max-height: 160px;
  }

  .quiz-car-image {
    width: 150px;
  }

  .quiz-title {
    font-size: 2rem;
  }

  .question-text {
    font-size: 1.5rem;
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
  }

  .answer-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .next-btn {
    padding: 1rem 2.5rem;
    font-size: 1.3rem;
    min-width: 180px;
    border-radius: 16px;
  }

  .results-title {
    font-size: 2rem;
  }

  .score-number {
    font-size: 3rem;
  }

  .score-text {
    font-size: 1.5rem;
  }

  .results-message {
    font-size: 1.1rem;
  }
}

@media (max-width: 500px) {
  .quiz-container {
    padding: 1rem;
    margin: 0.5rem;
  }

  .quiz-car-image {
    width: 120px;
  }

  .quiz-title {
    font-size: 1.8rem;
  }

  .question-text {
    font-size: 1.3rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
  }

  .answer-btn {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }

  .next-btn {
    padding: 0.9rem 2rem;
    font-size: 1.2rem;
    min-width: 160px;
    border-radius: 14px;
  }

  .results-title {
    font-size: 1.8rem;
  }

  .score-number {
    font-size: 2.5rem;
  }

  .score-text {
    font-size: 1.3rem;
  }

  .results-message {
    font-size: 1rem;
  }

  .quiz-header {
    padding: 0.75rem;
  }

  .quiz-citroen-logo {
    width: 100px;
  }

  .header-question-image {
    max-width: 220px;
    max-height: 130px;
  }
}

/* VISUAL FEEDBACK LOGIC */

/* When any answer is selected, fade out the unselected/irrelevant ones */
.answers-container.answered .answer-btn:not(.correct):not(.incorrect) {
    opacity: 0.4;
    filter: grayscale(100%);
    transform: scale(0.95);
    pointer-events: none;
}

/* Correct answer state - Ultra High Visibility */
.answer-btn.correct {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border: 4px solid #ffffff !important;
    color: white !important;
    transform: scale(1.02);
    box-shadow:
        0 10px 30px rgba(16, 185, 129, 0.4),
        0 0 0 4px rgba(16, 185, 129, 0.2);
    z-index: 10;
}

.answer-btn.correct .answer-badge {
    background: rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
}

/* Incorrect answer state - Ultra High Visibility */
.answer-btn.incorrect {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
    border: 4px solid #ffffff !important;
    color: white !important;
    transform: scale(1.02);
    box-shadow:
        0 10px 30px rgba(239, 68, 68, 0.4),
        0 0 0 4px rgba(239, 68, 68, 0.2);
    z-index: 10;
}

.answer-btn.incorrect .answer-badge {
    background: rgba(255, 255, 255, 0.3) !important;
    box-shadow: none !important;
}

/* Ensure check/cross marks are visible */
.answer-btn.correct::after,
.answer-btn.incorrect::after {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    font-size: 2.2rem;
    right: 2rem;
}
