/* Modal Quiz Zinzino - Version Améliorée */
.zq-modal {
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  backdrop-filter: blur(5px);
}

.zq-modal-content {
  background-color: #fff;
  margin: 40px auto;
  padding: 40px;
  width: 90%;
  max-width: 700px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zq-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 32px;
  cursor: pointer;
  color: #999;
  transition: all 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.zq-close:hover {
  color: #333;
  background: #f0f0f0;
  transform: rotate(90deg);
}

/* Steps */
.zq-steps {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 8px;
  flex-wrap: wrap;
}

.zq-step {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  color: #999;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s;
  border: 3px solid transparent;
}

.zq-step.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: scale(1.1);
  border-color: #fff;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#profile-preview-text {
  font-size: 20px;
  font-weight: bold;
  color: #28a745;
  display: block;
  text-align: center;
  padding: 15px;
}

/* Questions */
.zq-question {
  display: none;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.zq-question.active {
  display: block;
}

.zq-question h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #2c3e50;
  line-height: 1.4;
}

.zq-subtitle {
  color: #7f8c8d;
  margin-bottom: 25px;
  font-size: 15px;
}

.zq-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.zq-option {
  background: #f8f9fa;
  padding: 18px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.zq-option::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleY(0);
  transition: transform 0.3s;
}

.zq-option:hover {
  background: #e9ecef;
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.zq-option:hover::before {
  transform: scaleY(1);
}

.zq-option input {
  margin-right: 15px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #667eea;
}

.zq-option span {
  font-size: 16px;
  color: #34495e;
}

.zq-option input:checked + span {
  font-weight: 600;
  color: #667eea;
}

.zq-option:has(input:checked) {
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  border-color: #667eea;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.zq-option:has(input:checked)::before {
  transform: scaleY(1);
}

/* Form */
.zq-form-group {
  margin-bottom: 20px;
}

.zq-form-group input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s;
  box-sizing: border-box;
}

.zq-form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.zq-consent {
  margin: 25px 0;
  font-size: 14px;
  display: flex;
  align-items: start;
  gap: 10px;
}

.zq-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

/* Buttons */
.zq-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 35px;
  gap: 15px;
}

.zq-prev,
.zq-next {
  padding: 12px 30px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
  font-weight: 600;
}

.zq-next {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  margin-left: auto;
}

.zq-prev:hover,
.zq-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

.zq-submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
}

.zq-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
  background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

.zq-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Cards */
.zinzino-quiz-card,
.zinzino-quiz-banner {
  background: linear-gradient(135deg, #667eea08 0%, #764ba208 100%);
  border: 2px solid #667eea20;
  border-radius: 20px;
  padding: 35px;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.zq-badge,
.zq-badge-new {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: bold;
  border-radius: 0 20px 0 15px;
  box-shadow: 0 3px 10px rgba(245, 87, 108, 0.3);
}

.zq-emoji,
.zq-emoji-big {
  font-size: 56px;
  text-align: center;
  margin-bottom: 20px;
}

.zinzino-quiz-card h3 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #2c3e50;
  text-align: center;
}

.zinzino-quiz-card p {
  text-align: center;
  color: #5a6c7d;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.zq-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 25px 0;
}

.zq-benefit {
  background: white;
  padding: 15px;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  font-weight: 500;
}

.zq-start-btn,
.zq-banner-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.zq-start-btn:hover,
.zq-banner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.zq-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #7f8c8d;
}

/* Banner specific */
.zinzino-quiz-banner {
  padding: 40px;
}

.zq-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.zq-left {
  flex: 1;
}

.zq-right {
  flex: 0 0 280px;
}

.zinzino-quiz-banner h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #2c3e50;
  line-height: 1.3;
}

.gradient-text {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.zq-checks {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.zq-checks span {
  color: #28a745;
  font-size: 15px;
  font-weight: 500;
}

.zq-social-proof {
  background: white;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.zq-number {
  font-size: 42px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 5px;
}

.zq-text {
  font-size: 14px;
  color: #5a6c7d;
  margin-bottom: 10px;
}

.zq-stars {
  font-size: 20px;
  margin: 12px 0;
}

.zq-testimonial {
  font-style: italic;
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.5;
}

/* Result */
.zq-result-preview,
.zq-final-result {
  background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
  padding: 25px;
  border-radius: 12px;
  margin: 25px 0;
  border: 2px solid #667eea30;
}

.zq-score-preview,
.zq-profile-result,
.zq-score-result {
  margin: 12px 0;
  font-size: 18px;
  color: #2c3e50;
}

.zq-score-preview strong,
.zq-profile-result strong {
  color: #667eea;
}

.zq-recommendation {
  color: #28a745;
  font-weight: 600;
  margin-top: 15px;
  font-size: 16px;
}

.zq-success-message {
  font-size: 18px;
  color: #28a745;
  margin-bottom: 20px;
  font-weight: 500;
}

.zq-close-btn {
  width: 100%;
  padding: 15px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
}

/* Mobile */
@media (max-width: 768px) {
  .zq-modal-content {
    width: 95%;
    padding: 25px;
    margin: 20px auto;
  }

  .zq-question h3 {
    font-size: 20px;
  }

  .zq-banner-content {
    flex-direction: column;
  }

  .zq-right {
    flex: 1;
    width: 100%;
  }

  .zq-benefits {
    grid-template-columns: 1fr;
  }

  .zq-checks {
    flex-direction: column;
    gap: 10px;
  }

  .zq-steps {
    gap: 5px;
  }

  .zq-step {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .zinzino-quiz-banner {
    padding: 25px;
  }

  .zinzino-quiz-banner h2 {
    font-size: 22px;
  }
}
