/* body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #444;
} */

.errors {
  background: #f5f5f5;
  padding: 40px 0;
}

/* .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
} */
.search-wrapper {
  position: relative;
  background:#1c2b39;
  padding: 35px 45px;
  border-radius: 15px;
  /* margin: 0 10px; */
  margin: 50px 10px 0 10px;
}

.title {
  color: #fff;
  margin-bottom: 20px;
  font-size: clamp(20px, 4vw, 32px);
}

/* 🔍 SEARCH */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-box select,
.search-box input {
  padding: 12px;
  border-radius: 8px;
  border: none;
  flex: 1;
  /* font-size: 16px; */
}

.search-box input {
  flex: 2;
}
.search-box_wrapper-second {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  
  width: 100%;
  max-width: 1000px;

}
.search-field_wrapper {
  width: 100%;
  max-width: 900px;
}
.search-field {
  max-width: 250px;
  width: 100%;
  min-width: 150px;
} 
.search-field.search-error  {
  max-width: 900px;
  width: 100%;
  min-width: 150px;
  height: 41px;
}
.search-field.search-error input#code {
  width: 100%;
  max-width: 900px;
}
.input-error {
  margin-top: 15px;
  font-size: 12px;
}
button {
  background: #dd3751;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  height: 41px;
}
button.ai-btn {
  background: none;
  color:#dd3751;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  border: none;
  font-family: "Roboto", sans-serif;
  text-align: center;
  font-size: clamp(14px, 4vw, 21px);
  font-weight: 400;
  line-height: 26px;
  text-decoration: underline;
  transition: all 0.5s ;
}
button.ai-btn:hover {
  color: #1c2b39;
}

.ai-progress {
  margin-top: 17px;
}

/* 📊 STATS */
.stats {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.stat {
  flex: 1;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  padding: 15px;
  text-align: center;

  -webkit-box-shadow: 1px 1px 8px 1px #000;
  -moz-box-shadow:    1px 1px 8px 1px #000;
  box-shadow:         1px 1px 8px 1px #000;
}

.stat-number {
  display: block;
  color: #dd3751;
  font-size: 20px;
  font-size: clamp(16px, 4vw, 32px);
  font-weight: bold;
}

.stat-label {
  margin-top: 15px;
  color: #fff;
  /* font-size: 14px; */
  font-size: clamp(14px, 4vw, 21px);
}

/* 🚗 RESULT */
.result-card {
  background: #D9D9D9;
  border-radius: 15px;
  padding: 35px 45px;
  border-radius: 15px;
  margin: 38px 10px 0 10px;
}

.hidden {
  display: none;
}

.result-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.result-type {
  display: flex;
  gap: 10px;
  align-items: center;
}

.type-icon {
  width: 64px;
  height: 64px;
  background: #1c2b39;
  color: #D9D9D9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: bold;
  font-size: clamp(28px, 4vw, 38px);
  padding: 10px;
}
.type-text {
  max-width: 229px;
  width: 100%;
  color: #1c2b39;
  font-family: "Roboto", sans-serif;
  text-align: center;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 500;
  line-height: 29px;
}

.result-meta {
  text-align: right;
  display: flex;
  justify-content: space-between;
  max-width: 790px;
  width: 100%;
  align-items: center;
  flex-wrap: wrap;
}
.result-meta .code span {
  font-family: "Roboto", sans-serif;
  font-size: clamp(10px, 4vw, 16px);
  line-height: 24px;
  font-weight: 600;
  color: #1c2b39;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.result-meta .code span#resultCode {
  font-family: "Roboto", sans-serif;
  font-size: clamp(16px, 4vw, 30px);
  line-height: 35px;
  font-weight: 600;
  color: #dd3751;
}

.brand-badge {
  /* background: #dd3751;
  color: #fff; */
  background: #C4C4C4;
  color: #1c2b39;
  padding: 16px 25px;
  border-radius: 6px;
  margin-top: 5px;
  display: inline-block;
}

.result-description {
  margin-bottom: 38px;
}
.result-description strong {
  color: #1c2b39;
  font-family: "Roboto", sans-serif;
  text-align: center;
  font-size: clamp(14px, 4vw, 21px);
  font-weight: 700;
  line-height: 26px;
  margin-bottom: 7px;
}
.result-description p {
  color: #1c2b39;
  font-family: "Roboto", sans-serif;
  text-align: left;
  font-size: clamp(12px, 4vw, 17px);
  font-weight: 400;
  line-height: 25px;
}

/* 🤖 AI */
.ai-btn {
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 15px;
  background: #eee;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 40px;
}
.progress-fill {
  width: 0%;
  height: 100%;
  background: #1c2b39;
  transition: width 0.3s;
}

.progress-status {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 5px;
}
.progress-status #progressText {
  color: #1c2b39;
  font-family: "Roboto", sans-serif;
  font-size: clamp(10px, 4vw, 18px);
  font-weight: 400;
  line-height: 25px;
  margin-bottom: 7px;
}
.progress-status .done {
  background: #dd3751;
  color: #fff;
  font-size: clamp(11px, 4vw, 15px);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 7px;
}
.ai-result h4 {
  color: #1c2b39;
  font-family: "Roboto", sans-serif;
  font-size: clamp(14px, 4vw, 21px);
  font-weight: 700;
  line-height: 26px;
  margin-bottom: 7px;
}
.ai-result p {
  color: #1c2b39;
  font-family: "Roboto", sans-serif;
  text-align: left;
  font-size: clamp(12px, 4vw, 17px);
  font-weight: 400;
  line-height: 25px;
  margin-bottom: 15px;
}
.ai-result small {
  font-style: italic;
  color: #dd3751;
  font-size: clamp(9px, 4vw, 12px);
  font-weight: 400;
  line-height: 21px;
}
.result-btn-appointment-consultation {
  position: relative;
  margin-top: 25px;
}
.result-btn-appointment-consultation .btn-appointment-consultation-wrapper {
  display: flex;
  justify-content: center;
}
.result-btn-appointment-consultation a.btn-appointment-consultation-link {
  background: #dd3751;
  color: #fff;
  padding: 16px 25px;
  border-radius: 6px;
  margin-top: 5px;
  display: inline-block;
  font-size: clamp(10px, 3vw, 16px);
}

/* 📱 MOBILE */
@media (max-width: 768px) {

  .search-box {
    flex-direction: column;
  }

  .stats {
    flex-direction: column;
  }

  .result-top {
    flex-direction: column;
    gap: 10px;
  }

  .result-meta {
    text-align: left;
  }
}


/* Блок "Сподобалась відповідь ШІ?". START */
.feedback-block {
  background: transparent;
  border-radius: 14px;
  padding: 32px 24px;
  margin-top: 24px;
  text-align: center;
  border: 1px solid #e5e5e5;
  margin: 45px 10px 0 10px;
}

.feedback-title {
  /* font-size: 22px; */
  font-size: clamp(16px, 4vw, 32px);
  font-weight: 600;
  color: #1c2b39;
  margin-bottom: 6px;
}

.feedback-subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 24px;
}

.feedback-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* КНОПКИ */
.feedback-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: #444;
  transition: all 0.25s ease;
  height: 57px;
}

/* Іконка */
.feedback-btn .icon {
  font-size: 16px;
}
.feedback-btn.like .icon img {
  fill: red;
} 

/* Лічильник */
.feedback-btn .count {
  background: #eee;
  border-radius: 50px;
  padding: 4px 8px;
  font-size: 13px;
  color: #444;
}

/* LIKE hover */
.feedback-btn.like:hover {
  border-color: #dd3751;
  color: #dd3751;
}

/* DISLIKE hover */
.feedback-btn.dislike:hover {
  border-color: #999;
  color: #333;
}

/* ACTIVE (після кліку — знадобиться далі) */
.feedback-btn.active {
  background: #dd3751;
  color: #fff;
  border-color: #dd3751;
}
.feedback-btn.active .count {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.search-field {
  display: flex;
  flex-direction: column;
}
#searchBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 576px) {
  .feedback-block {
    padding: 24px 16px;
  }

  .feedback-title {
    font-size: 18px;
  }

  .feedback-actions {
    flex-direction: column;
    gap: 10px;
  }

  .feedback-btn {
    width: 100%;
    justify-content: center;
  }
}
/* Блок "Сподобалась відповідь ШІ?". END */


/* ERROR NOT FOUND */
.result-card-not-found .type-icon {
  background: #ff3b5f;
  color: #fff;
}
.result-card-not-found {
  border: 1px solid rgba(255, 59, 95, 0.2);
}
.result-card-not-found .result-description p {
  max-width: 700px;
  line-height: 1.6;
}



/* Блок "Форма зворотнього звʼязку". START */
/* =========================================
SERVICE CONTACT
========================================= */

/* MAIN BG */
.service-contact.errors-page-forms {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  min-height: 150px;
  height: auto;
  background: #000;
  /* background-image: url("/img/errors-page-bg-2.png"); */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
/* .service-contact::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 40px;

  pointer-events: none;
  z-index: 2;

  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      #233545 100%
  );
} */

/* Шум / миготіння */
.service-contact.errors-page-forms::before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  /* inset: 0; */
  left: 0;
  top: 0;
  background-image: url("/img/errors-page-bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  -webkit-animation: blinker 3000ms infinite;
  animation: blinker 3000ms infinite;
  /* pointer-events: none; */
  z-index: 1;
}


/* Контент поверх */
.service-contact.errors-page-forms .container {
  position: relative;
  z-index: 2;
}
.service-contact.errors-page-forms .service-contact__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* FORM */
.service-contact.errors-page-forms .service-contact__form-wrapper.errors-page-forms_wrapper {
  width: 0;
  max-width: 0;
  background: none;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.service-contact.errors-page-forms .feedback_form {
  padding: 40px 30px;
}
/* TITLE */
.service-contact.errors-page-forms .form_title {
  font-size: clamp(16px, 4vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  margin-bottom: 35px;
  font-weight: 600;
  color: #1c2b39;
}

/* INPUTS */
.service-contact.errors-page-forms .form-group {
  margin-bottom: 18px;
}
.service-contact.errors-page-forms .form-group input {
  width: 100%;
  height: 50px;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  font-size: clamp(10px, 3vw, 17px);
  background: #fff;
  transition: 0.3s ease;
}
.service-contact.errors-page-forms .form-group input:focus {
  border-color: #dd3751;
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 61, 0, 0.1);
}

/* PHONE */
.service-contact.errors-page-forms .phone-group .iti {
  width: 100%;
}

/* CHECKBOX */
.service-contact.errors-page-forms .form-checkbox {
  margin-top: 10px;
  margin-bottom: 28px;
}
.service-contact.errors-page-forms .politics_label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: clamp(10px, 4vw, 15px);
  color: #111;
}
.service-contact.errors-page-forms .politics_link {
  color: #dd3751;
  text-decoration: none;
}

/* BUTTON */
.service-contact.errors-page-forms .form_button {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: #dd3751;
  color: #fff;
  font-size: clamp(10px, 4vw, 18px);
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}
.service-contact.errors-page-forms .form_button:hover {
  background: #d42942;
  transform: translateY(-2px);
}

/* BLINK EFFECT */
@keyframes blinker {
  0% { opacity: 1; }   /* Фара світить */
  50% { opacity: 0; }  /* Фара згасла */
  100% { opacity: 1; } /* Знову світить */
}

/* MOBILE */
@media (max-width: 768px) {
  .service-contact.errors-page-forms {
    padding: 90px 0;
    min-height: auto;
  }
  .service-contact.errors-page-forms .service-contact__form-wrapper {
    padding: 35px 20px;
    border-radius: 10px;
  }
  .service-contact.errors-page-forms .feedback_form {
    padding: 25px 15px;
  }
  .service-contact.errors-page-forms .form_title {
    margin-bottom: 28px;
  }
  .service-contact.errors-page-forms .form-group input {
    height: 38px;
  }
  .service-contact.errors-page-forms .form_button {
    height: auto;
  }
}
@media (max-width: 560px) {
  .service-contact__wrapper.errors-page-forms_wrapper .feedback_form {
    max-width: 500px;
    width: 100%;
  }
}
/* Блок "Форма зворотнього звʼязку". END */

