/* Новий вигляд карток-відповідей */
.container {
  max-width: 1300px;
  margin: 0 auto; 
}

.quiz-answers {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.quiz-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
  width: 22%;
  min-width: 220px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333 !important;
}
.quiz-card:hover {
  color: #fff !important;
}

.quiz-card:nth-child(1) { animation-delay: 0.1s; }
.quiz-card:nth-child(2) { animation-delay: 0.2s; }
.quiz-card:nth-child(3) { animation-delay: 0.3s; }
.quiz-card:nth-child(4) { animation-delay: 0.4s; }

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

.quiz-card input[type="radio"] {
  display: none;
}

.quiz-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: #d3d3d3;
  border-radius: 6px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(44,170,81,0.04);
  transition: box-shadow .2s;
}

.quiz-card-title {
  font-size: 18px;
  font-weight: bold;
  color: #222;
  line-height: 1.3;
  padding-bottom: 10px;
}

.quiz-card input[type="radio"]:checked + .quiz-card-img {
  box-shadow: 0 4px 24px rgba(44,170,81,0.15);
}
.quiz-card input[type="radio"]:checked + .quiz-card-img + .quiz-card-title {
  color: #16713d;
}

.quiz-card:hover .quiz-card-img {
  box-shadow: 0 4px 24px rgba(44,170,81,0.15);
}
.quiz-form {
  max-width: 1250px;
  margin-top: 40px;
}

.quiz-title {
  font-size: 34px;
  font-weight: bold;
  margin-bottom: 16px;
  line-height: 1.2;
}
.quiz-card-text {
    line-height: 1.5;
    font-weight: 700;
    font-size: 16px;
}

.quiz-progress {
  font-family: "Caveat", cursive;
  font-size: 28px;
  color: #167CFE;
  margin-bottom: 32px;
}
.input_form {
    background-color: #ededed;
    border: 1px solid #dadada;
    padding: 15px 0px 15px 20px;
    border-radius: 5px;
    margin: 10px 0 30px 0px;
    min-width: 300px;  
}
.quiz-progress-current {
  color: #16713d;
  font-size: 20px;
  font-weight: bold;
}

.quiz-answer {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  width: 18vw;
  min-width: 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .13s, box-shadow .18s;
  will-change: transform;
  outline: none;
}

.quiz-answer-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: #d3d3d3;
  border-radius: 6px;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(44,170,81,0.04);
  transition: box-shadow .2s;
}

.quiz-answer-text {
  font-size: 19px;
  font-weight: 700;
  color: #222;
  line-height: 1.22;
  padding-bottom: 10px;
}



.quiz-answer:hover,
.quiz-answer:focus {
  transform: translateY(-6px) scale(1.03);
}
.quiz-answer:hover .quiz-answer-img,
.quiz-answer:focus .quiz-answer-img {
  box-shadow: 0 4px 24px rgba(44,170,81,0.15);
}

.quiz-back {
  background: #eaf5fc;
  color: #267190;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 18px;
  transition: background .2s, color .2s;
}
.quiz-back:hover,
.quiz-back:focus {
  background: #006494;
  color: #fff;
}

.final_form_additional_text {
  width: 60%;
  line-height: 1.4;
  margin-bottom: 50px;
  color: #383838;  
}

.submit_button {
    background: #2ec42e;
    color: #fff;
    border: none;
    padding: 16px 47px;
    font-size: 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 3px solid #448e44;
    transition: .3s;
}
.submit_button:hover {
    background: #448e44;
    color: #ffffff;
}
.final_form_additional_text2 {
  font-size: 13px;
  margin-top: 15px;
}
.quiz-back {
  margin-bottom: 60px;
}

/* Contact form styles */
.quiz-contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 40px 0 30px;
  max-width: 420px;
}

.quiz-contact-form label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #222;
}

.quiz-contact-form input {
  width: 100%;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1.5px solid #d3e8dc;
  background: #f9f9f9;
  font-size: 18px;
  margin-bottom: 2px;
  transition: border .18s;
}
.quiz-contact-form input:focus {
  border-color: #43b148;
  outline: none;
}
.quiz-card_column {
    border: 1px solid #cbe5f6;
    padding: 15px;
    border-radius: 5px;
    background-color: #e2f1fb; 
    transition: .3s;
    width: 40%;
}
.quiz-card_column:hover {
  background-color: #4B74EA; 
  color: #fff !important;
}
.quiz-answers_column {
  flex-direction: column;
}
.quiz-card-img > img {
  width: 275px;
  height: 275px;
  object-fit: cover;
  box-shadow: 1px 3px 15px 0px #b7b7b7;
  border-radius: 10px;
}
.text_photo {
  color: #333;
}
.text_photo:hover {
  color: #0070c9;
}


/* Responsive */
@media (max-width: 1200px) {
  .quiz-answers {
    gap: 18px;
  }
  .quiz-answer {
    width: 22vw;
  }
  .quiz-card-img > img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 900px) {
  .quiz-title { font-size: 28px; }
  .quiz-answer { width: 45vw; max-width: 100%; }
  .quiz-answers { gap: 32px; }
}
@media (max-width: 600px) {
  .quiz-form { padding: 0 6px; }
  .quiz-title { font-size: 19px; }
  .quiz-progress-current { font-size: 15px; }
  .quiz-answer { width: 98vw; min-width: 0; }
  .quiz-answer-img { margin-bottom: 10px; }
  .quiz-answer-text { font-size: 15px; }
  .quiz-back { font-size: 15px; padding: 11px 24px; }

}

@media screen and (max-width: 992px) {
  .quiz-answers {justify-content: center;}
}

@media screen and (max-width: 767px) {
  .quiz-card {width: 45%; min-width: 0;}
  .quiz-card_column {width: 90% !important;}
  .quiz-form {margin-top: 0;}
  .final_form_additional_text {width: 100%;}
  .quiz-title {font-size: 24px; text-align: center;}
  .quiz-progress {text-align: center;}
  .input_form {width: 93%;}
  .submit_button {width: 100%;}
  .final_form_additional_text {text-align: center;}
  

}



