/* Quiz Header */
.quiz-header {
  text-align: center;
  margin-bottom: 40px;
  background: white;
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(29, 42, 48, 0.08);
}

/* Intro Screen */
.intro-screen {
  background: white;
  padding: 60px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(29, 42, 48, 0.08);
  text-align: center;
}
.intro-image {
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background-image: url("/wp-content/uploads/2025/01/logo.png");
}
.quiz-title {
  font-size: 2.8rem;
  font-weight: 600;
  color: #1D2A30;
  margin-bottom: 20px;
  line-height: 1.2;
}
.quiz-subtitle {
  font-size: 1.3rem;
  color: #302C2C;
  margin-bottom: 40px;
  line-height: 1.5;
  opacity: 0.8;
}

/* Hero Image */
.quiz-hero-image {
  margin: 30px -40px 40px -40px; /* Estendi l'immagine oltre il padding del container */
  overflow: hidden;
  border-radius: 8px;
}
.quiz-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Benefits List */
.benefits-list {
  text-align: left;
  margin: 40px 0;
  background: #FAF9F8;
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid #DAB250;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  font-size: 1.1rem;
  color: #302C2C;
}
.benefit-icon {
  width: 24px;
  height: 24px;
  background: #DAB250;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1D2A30;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Progress Bar */
.progress-container {
  background: #e5e5e5;
  height: 6px;
  border-radius: 3px;
  margin-bottom: 30px;
  overflow: hidden;
}
.progress-bar {
  background: #DAB250;
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
  width: 0%;
}

/* Question */
.question-container {
  background: white;
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(29, 42, 48, 0.08);
  margin-bottom: 30px;
  display: none;
}
.question-container.active {
  display: block;
  animation: slideInFromBottom 0.6s ease-out;
}
@keyframes slideInFromBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.question-number {
  color: #DAB250;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.question-title {
  font-size: 2rem;
  font-weight: 600;
  color: #1D2A30;
  margin-bottom: 40px;
  line-height: 1.3;
}
.answers-grid {
  display: grid;
  gap: 20px;
}
.answer-option {
  background: #FAF9F8;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.answer-option:hover {
  border-color: #DAB250;
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(218, 178, 80, 0.15);
}
.answer-option.selected {
  border-color: #DAB250;
  background: white;
  box-shadow: 0 4px 15px rgba(218, 178, 80, 0.2);
}
.answer-option.selected::after {
  content: '';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 20px;
  height: 20px;
  background: #DAB250;
  border-radius: 50%;
}
.answer-option.selected::before {
  content: '✓';
  position: absolute;
  top: 17px;
  right: 20px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}
.answer-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #302C2C;
  line-height: 1.5;
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}
.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  justify-content: center;
}
.btn-primary {
  background: #DAB250;
  color: #1D2A30;
  box-shadow: 0 2px 8px rgba(218, 178, 80, 0.3);
}
.btn-primary:hover {
  background: #c8a245;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(218, 178, 80, 0.4);
}
.btn-secondary {
  background: transparent;
  color: #302C2C;
  border: 2px solid #e5e5e5;
}
.btn-secondary:hover {
  background: #dab250;
  border-color: #ddd;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  background-color: #DAB250;
}

/* Result Container */
.result-container {
  background: white;
  padding: 50px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(29, 42, 48, 0.08);
  text-align: center;
  display: none;
}

/* Profile Icons */
.result-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.result-icon[data-profile] {
  font-size: 0;
}

/* Stacanovista – Agenda + Cuore */
.result-icon[data-profile="stacanovista"] {
  background-color: #F5E6D3;
}
.result-icon[data-profile="stacanovista"]::before {
  content: "📅";
  font-size: 3rem;
}
.result-icon[data-profile="stacanovista"]::after {
  content: "❤️";
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.5rem;
}

/* Controllore Scientifico – Microscopio + Lente */
.result-icon[data-profile="controllore"] {
  background-color: #D6E3F0;
}
.result-icon[data-profile="controllore"]::before {
  content: "🔬";
  font-size: 3rem;
}
.result-icon[data-profile="controllore"]::after {
  content: "🔍";
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.5rem;
}

/* Neofita Premuroso – Zampetta + Cuore */
.result-icon[data-profile="neofita"] {
  background-color: #D4EDDA;
}
.result-icon[data-profile="neofita"]::before {
  content: "🐾";
  font-size: 3rem;
}
.result-icon[data-profile="neofita"]::after {
  content: "💚";
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.5rem;
}

/* Empatico Ispirazionale – Cane + Cuore */
.result-icon[data-profile="empatico"] {
  background-color: #F4E4C1;
}
.result-icon[data-profile="empatico"]::before {
  content: "🐕";
  font-size: 3rem;
}
.result-icon[data-profile="empatico"]::after {
  content: "💖";
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.5rem;
}

/* Result Text */
.result-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #1D2A30;
  margin-bottom: 15px;
}
.result-subtitle {
  font-size: 1.4rem;
  color: #DAB250;
  margin-bottom: 30px;
  font-weight: 500;
}
.result-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #302C2C;
  margin-bottom: 40px;
  text-align: left;
  background: #FAF9F8;
  padding: 30px;
  border-radius: 8px;
}

/* Email Form */
.email-form {
  background: #1D2A30;
  padding: 40px;
  border-radius: 12px;
  margin: 40px 0;
  color: white;
}
.email-form h3 {
  color: #DAB250;
  margin-bottom: 25px;
  font-size: 1.5rem;
}
.form-group {
  margin-bottom: 25px;
  text-align: left;
}
.form-label {
  display: block;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 16px;
  border: 2px solid #3a4a52;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  color: #302C2C;
  transition: border-color 0.3s ease;
}
.form-input:focus {
  outline: none;
  border-color: #DAB250;
  box-shadow: 0 0 0 3px rgba(218, 178, 80, 0.1);
}
.gdpr-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}
.gdpr-text {
  font-size: 0.9rem;
  color: #e5e5e5;
  line-height: 1.5;
}

/* GDPR link styling */
.email-form .gdpr-text a {
  color: #DAB250;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.email-form .gdpr-text a:hover {
  color: #F5E6D3;
}

.cta-buttons {
  display: grid;
  gap: 15px;
  margin-top: 30px;
}

/* Success Message */
.success-message {
  background: #D4EDDA;
  border: 1px solid #C3E6CB;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
}
.success-message h3 {
  color: #155724;
  margin-bottom: 15px;
}
.success-message p {
  color: #155724;
  margin-bottom: 10px;
}

/* Profile Image Adjustment */
.profile-image {
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  .quiz-title {
    font-size: 2.2rem;
  }
  .quiz-subtitle {
    font-size: 1.1rem;
  }
  .question-title {
    font-size: 1.6rem;
  }
  .quiz-header,
  .question-container,
  .result-container {
    padding: 30px 25px;
  }
  .intro-screen {
    padding: 40px 25px;
  }
  .quiz-hero-image {
    margin: 20px -25px 30px -25px;
  }
  .quiz-hero-image img {
    max-height: 250px;
  }
  .profile-image {
    margin: -30px -25px 30px -25px;
  }
  .profile-image img {
    max-height: 200px;
  }
  .email-form {
    padding: 25px;
  }
  .navigation-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .btn {
    width: 100%;
  }
  .benefit-icon {
    min-width: 24px;
    flex-shrink: 0;
  }
}
