/* Загальні стилі */
:root {
  --primary-color: #09172d;
  --secondary-color: #ffffff;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000;
  --background-light: #09172d;
  --background-lighter: #112240;
  --accent-color: #ffffff;
  --error-color: #ff4757;
  --success-color: #2ed573;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
}

/* Контейнер */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Заголовки */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 15px;
  font-weight: 700;
}

/* Параграфи */
p {
  margin-bottom: 15px;
}

/* Шапка сайту */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
  object-fit: contain;
  animation: pulse 3s infinite ease-in-out;
}

.logo h1 {
  font-size: 24px;
  color: var(--background-dark);
  margin-bottom: 0;
}

.heart-logo-main {
  max-width: 90%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
  animation: float 4s infinite ease-in-out;
}

/* Навігація */
nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 25px;
}

nav ul li {
  margin-left: 0;
}

/* ID має вищий пріоритет, тому звичайна навігація не відображалася */
/* Додаємо новий стиль для десктопного меню */
nav:not(#mobile-nav) {
  display: flex;
  align-items: center;
}

/* Стилі для навігаційних посилань */
nav ul li a,
.language-toggle {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: all 0.3s ease;
  background: var(--primary-color);
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  min-width: 100px;
  height: 40px;
  text-align: center;
  cursor: pointer;
  line-height: 1;
  margin: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

nav ul li a:hover,
.language-toggle:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
}

.home-link {
  color: var(--accent-color);
  font-weight: 700;
  position: relative;
}

.home-link::after {
  display: none;
}

/* Герой секція */
.hero {
  display: flex;
  padding: 60px 7%;
  background-color: var(--background-dark);
  align-items: center;
}

.hero-content {
  flex: 1;
  padding-right: 40px;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

.hero-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Вміст сайту - округлені краї для всіх блоків */
.hero,
.health-form,
.about {
  border-radius: 34px;
  margin: 20px 40px 20px 40px;
  overflow: hidden;
}

/* Кнопки */
.cta-button,
.submit-button,
.close-profile {
  padding: 12px 30px;
  background-color: #0031d2;
  color: var(--secondary-color);
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  position: relative;
}

.cta-button:hover,
.submit-button:hover,
.close-profile:hover {
  background-color: #3429f3;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
}

/* Форма здоров'я */
.health-form {
  padding: 30px 3%;
  background-color: var(--background-light);
  margin-top: 30px;
}

.health-form h2 {
  text-align: center;
  margin-bottom: 15px;
}

.health-form p {
  text-align: center;
  margin-bottom: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.form-grid.two-columns {
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* Стилі для інпутів і "I don't know" в одному рядку */
.input-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

.input-wrapper input[type="number"],
.input-wrapper input[type="text"],
.input-wrapper select {
  flex: 1 1 auto;
  min-width: 0; /* Дозволяє контенту зменшуватися */
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-size: 14px;
  background-color: var(--background-lighter);
  color: var(--text-light);
  appearance: none; /* Remove default styles */
  -webkit-appearance: none; /* For Safari */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px top 50%;
  background-size: 12px auto;
  padding-right: 30px;
  transition: all 0.3s ease;
  opacity: 0.9;
  font-weight: 500;
}

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

.input-wrapper input:focus,
.input-wrapper select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.unknown-option {
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin-left: 15px;
  margin-right: 5px;
  color: rgba(255, 255, 255, 0.9);
  min-width: 110px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 0 auto; /* Не дозволяє чекбоксу змінювати розмір */
}

.unknown-option label {
  margin-bottom: 0;
  font-weight: normal;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Змінюємо стилі полів форми для відповідності референсу */
.form-group {
  margin-bottom: 0;
  position: relative;
  background-color: var(--background-lighter);
  padding: 10px 15px;
  border-radius: 34px;
  opacity: 0.9;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-light);
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Змінюємо розмір чекбокса для відповідності референсу */
.unknown-checkbox {
  margin-right: 6px;
  cursor: pointer;
  width: 15px;
  height: 15px;
  accent-color: var(--accent-color);
}

/* Style for disabled inputs when "I don't know" is selected */
input:disabled,
select:disabled {
  background-color: rgba(245, 245, 245, 0.1) !important;
  border-color: var(--accent-color) !important;
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.3);
  opacity: 0.5;
}

/* Style for the "I don't know" checkbox */
.unknown-checkbox:checked + input,
.unknown-checkbox:checked + select {
  opacity: 0.5;
  pointer-events: none;
}

.unknown-checkbox:checked + label {
  color: var(--accent-color);
  font-weight: 600;
}

.submit-button {
  display: block;
  width: 200px;
  margin: 0 auto;
}

/* About секція */
.about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 40px 3%;
  background-color: var(--background-dark);
  margin: 20px 20px 20px 20px;
}

.about-content {
  flex: 1;
  min-width: 300px;
  margin-right: 20px;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 34px;
  color: var(--background-dark);
}

.about-content h2,
.about-content p {
  color: var(--background-dark);
}

.mission {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.mission h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--background-dark);
}

.mission p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--background-dark);
}

/* Developer Profile Section */
.developer-profile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.developer-profile.hidden {
  display: none;
}

.profile-container {
  background-color: var(--background-dark);
  width: 90%;
  max-width: 900px;
  border-radius: 34px;
  padding: 30px;
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0.95;
}

.profile-container h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--accent-color);
  font-size: 28px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.profile-image {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  margin: 0 auto;
}

.profile-image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-image img:hover {
  transform: scale(1.05);
}

.profile-text {
  flex: 2;
  min-width: 300px;
}

.profile-text p {
  margin-bottom: 15px;
  line-height: 1.8;
  font-size: 16px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.video-link {
  text-align: center;
  margin-top: 25px;
}

.about-me-video {
  display: inline-block;
  padding: 12px 25px;
  background-color: #3429f3;
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.about-me-video:hover {
  background-color: #3429f3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close-profile {
  display: block;
  margin: 25px auto 0;
}

/* Футер */
footer {
  padding: 30px 5%;
  background-color: #071325;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact-info,
.social-media {
  flex: 1;
  min-width: 300px;
}

/* Адаптивність */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 30px;
  }

  .about {
    flex-direction: column;
  }

  .about-content {
    margin-right: 0;
    margin-bottom: 30px;
  }

  footer {
    flex-direction: column;
  }

  .contact-info {
    margin-bottom: 20px;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
  }

  nav ul li {
    margin-left: 0;
    margin-bottom: 10px;
  }

  header {
    flex-direction: column;
  }

  .logo {
    margin-bottom: 20px;
  }

  .form-grid.two-columns {
    grid-template-columns: 1fr;
  }

  .profile-content {
    flex-direction: column;
  }

  .profile-image {
    margin-bottom: 20px;
  }

  .health-form {
    padding: 20px 2%;
  }
  
  .hero,
  .health-form,
  .about {
    margin: 15px 25px 15px 25px;
  }

  nav#mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 10, 30, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
}

/* Modal Styles - from script.js */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--background-dark);
  border-radius: 34px;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  opacity: 0.95;
}

.risk-level {
  margin: 20px 0;
  padding: 15px;
  border-radius: 8px;
}

.risk-level.низький,
.risk-level.low {
  background-color: rgba(46, 213, 115, 0.2);
  border: 1px solid var(--success-color);
}

.risk-level.середній,
.risk-level.medium {
  background-color: rgba(255, 165, 0, 0.2);
  border: 1px solid orange;
}

.risk-level.високий,
.risk-level.high {
  background-color: rgba(255, 71, 87, 0.2);
  border: 1px solid var(--error-color);
}

.risk-meter {
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  margin: 15px 0;
  overflow: hidden;
}

.risk-indicator {
  height: 100%;
  background: linear-gradient(to right, #2ed573, #fffa65, #ff4757);
  border-radius: 10px;
}

.recommendations ul {
  margin-left: 20px;
}

.recommendations li {
  margin-bottom: 10px;
}

.close-modal {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  background-color: #3498db;
  color: var(--secondary-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.close-modal:hover {
  background-color: #2980b9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  color: white;
}

.loading-spinner {
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 5px solid var(--accent-color);
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Style for number inputs to make them look like the reference */
input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Form group with unknown option selected */
.form-group.unknown-selected label {
  color: var(--accent-color);
  font-weight: 600;
}

.form-group.unknown-selected input,
.form-group.unknown-selected select {
  border-color: var(--accent-color);
  opacity: 0.5;
  background-color: rgba(245, 245, 245, 0.1);
}

/* Specific form layout to match the reference image */
@media (min-width: 769px) {
  .form-grid.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 30px;
  }

  .form-group {
    margin-bottom: 0;
  }
}

/* Contact Modal */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.contact-modal.hidden {
  display: none;
}

.contact-container {
  background-color: var(--background-light);
  width: 90%;
  max-width: 1000px;
  border-radius: 34px;
  padding: 30px;
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0.95;
}

.contact-container h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--accent-color);
  font-size: 28px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-info-modal,
.contact-form-modal {
  flex: 1;
  min-width: 300px;
}

.contact-info-modal h3,
.contact-form-modal h3 {
  color: #3498db;
  margin-bottom: 20px;
  font-size: 20px;
}

.contact-info-modal p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.social-links {
  margin-top: 30px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #3498db;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  background-color: #2980b9;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background-color: var(--background-lighter);
  color: var(--text-light);
  font-size: 14px;
}

.form-field textarea {
  resize: vertical;
}

.contact-submit {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.contact-submit:hover {
  background-color: #2980b9;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
}

.close-contact {
  display: block;
  margin: 25px auto 0;
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.close-contact:hover {
  background-color: #2980b9;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
}

/* Icons */
.contact-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-color: #3498db;
  border-radius: 50%;
  vertical-align: middle;
}

.linkedin-icon {
  background-color: #0077B5;
  position: relative;
}

.linkedin-icon::before {
  content: "in";
  color: white;
  font-weight: bold;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.linkedin-link {
  color: #0077B5;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.linkedin-link:hover {
  text-decoration: underline;
}

/* Також додаємо посилання у футер */
footer .contact-info a {
  color: #3498db;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer .contact-info a:hover {
  text-decoration: underline;
}

[data-lang] {
  transition: all 0.3s ease;
}

/* Стилі для головного заголовка */
.main-title {
  font-size: 3rem;
  margin-bottom: 15px;
  line-height: 1.1;
}

.healthy {
  color: #ffffff;
}

.heart {
  color: var(--accent-color);
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-light);
}

/* Стилі для контейнера форми */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
}

.hero-description {
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-description p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Доповнення до існуючих стилів CTA кнопки */
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.cta-button:hover {
  background-color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
}

/* Додаткові стилі для мобільної оптимізації */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
}

/* Бургер меню */
.burger-menu {
  display: none;
  width: 45px;
  height: 45px;
  background-color: #ffffff;
  border-radius: 12px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #eee;
  z-index: 1001;
}

.burger-menu:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.burger-line {
  width: 24px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 5px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.burger-menu.open {
  background-color: var(--primary-color);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) rotate(180deg);
}

.burger-menu.open .burger-line {
  background-color: #ffffff;
}

.burger-menu.open .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  width: 28px;
}

.burger-menu.open .burger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.burger-menu.open .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  width: 28px;
}

/* Стилі для блокування скролу при відкритому меню */
body.menu-open {
  overflow: hidden;
}

/* Мобільна навігація */
nav#mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 10, 30, 0.95);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  transform: translateY(-20px);
  display: flex;
}

nav#mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav#mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  padding: 0;
}

nav#mobile-nav.open ul {
  transform: scale(1);
}

nav#mobile-nav ul li {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
  list-style: none;
}

nav#mobile-nav.open ul li {
  transform: translateY(0);
  opacity: 1;
}

nav#mobile-nav.open ul li:nth-child(1) {
  transition-delay: 0.1s;
}

nav#mobile-nav.open ul li:nth-child(2) {
  transition-delay: 0.2s;
}

nav#mobile-nav.open ul li:nth-child(3) {
  transition-delay: 0.3s;
}

nav#mobile-nav.open ul li:nth-child(4) {
  transition-delay: 0.4s;
}

nav#mobile-nav ul li a,
nav#mobile-nav .language-toggle {
  min-width: 200px;
  height: 50px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  color: var(--primary-color);
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav#mobile-nav ul li a:hover,
nav#mobile-nav .language-toggle:hover {
  background-color: #ffffff;
  color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
}

nav#mobile-nav ul li a.active {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Активний пункт меню з темною тінню */
.home-link.active,
nav ul li a.active {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Мобільні стилі для меню */
@media (max-width: 768px) {
  nav#mobile-nav ul li a,
  nav#mobile-nav .language-toggle {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
  }
  
  header {
    padding: 12px 20px;
    justify-content: center;
    position: relative;
  }

  .logo {
    justify-content: center;
    margin-bottom: 0;
  }

  .burger-menu {
    display: flex;
  }

  .desktop-nav {
    display: none !important;
  }
}

/* Приховуємо мобільне меню і бургер-меню на десктопі */
@media (min-width: 767px) {
  #mobile-nav {
    display: none;
  }

  .burger-menu {
    display: none;
  }
  
  nav.desktop-nav {
    display: flex;
    align-items: center;
  }
}

/* Десктопна навігація */
nav.desktop-nav {
  display: flex;
  align-items: center;
}

nav.desktop-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 25px;
}

/* Адаптивність */
@media (max-width: 750px) {
  /* Приховуємо десктопне меню на мобільних пристроях */
  nav.desktop-nav {
    display: none;
  }

  header {
    padding: 12px 20px;
    justify-content: center;
  }

  .logo {
    justify-content: center;
    margin-bottom: 0;
  }

  .burger-menu {
    display: flex;
  }

  nav#mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 10, 30, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
}

/* Додаємо проміжний розмір екрану для планшетів */
@media (min-width: 751px) and (max-width: 900px) {
  /* Приховуємо мобільне меню на цьому діапазоні розмірів */
  #mobile-nav {
    display: none;
  }

  .burger-menu {
    display: none;
  }
  
  header {
    padding: 15px 20px;
  }
}

/* Додаємо медіа запит для планшетів, щоб переконатися у відсутності дубльованого меню */
@media (min-width: 481px) and (max-width: 900px) {
  /* Приховуємо дубльовані навігаційні елементи */
  nav:not(.mobile-nav):not(.desktop-nav),
  .bottom-navigation,
  .fixed-navigation,
  .clone-navigation {
    display: none !important;
  }
  
  body {
    padding-bottom: 0 !important; /* Усуваємо додатковий відступ внизу */
  }
}

/* Для мобільних пристроїв */
@media (max-width: 480px) {
  /* Приховуємо будь-які дубльовані меню на мобільних пристроях */
  nav:not(.mobile-nav),
  .bottom-navigation,
  footer nav.duplicate,
  div[class*="nav-duplicate"],
  div[class*="menu-duplicate"] {
    display: none !important;
  }
}

@media (max-width: 900px) {
  /* Переконуємося, що дубльовані елементи навігації приховані */
  .mobile-nav-duplicate, 
  .bottom-nav,
  .fixed-nav,
  .sticky-nav,
  .mobile-fixed-nav {
    display: none !important;
  }
  
  /* Видаляємо або приховуємо фіксоване меню внизу екрану */
  body::after {
    display: none !important;
  }
}

/* Стилі для мобільного меню в розкритому стані */
@media (max-width: 750px) {
  nav#mobile-nav.open {
    opacity: 1;
    visibility: visible;
  }

  nav#mobile-nav ul {
    flex-direction: column;
    padding: 0;
    gap: 20px;
  }

  nav#mobile-nav.open ul li {
    transform: translateY(0);
    opacity: 1;
  }

  nav#mobile-nav.open ul li:nth-child(1) {
    transition-delay: 0.1s;
  }

  nav#mobile-nav.open ul li:nth-child(2) {
    transition-delay: 0.2s;
  }

  nav#mobile-nav.open ul li:nth-child(3) {
    transition-delay: 0.3s;
  }

  nav#mobile-nav.open ul li:nth-child(4) {
    transition-delay: 0.4s;
  }
}

/* Анімації */
@keyframes pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  }
}

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

/* Анімація для зображень у профілі */
.profile-image img {
  transition: transform 0.5s ease;
}

.profile-image img:hover {
  transform: scale(1.05);
}

/* Анімація для кнопок */
.cta-button, 
.submit-button, 
.close-profile,
.contact-submit,
.close-contact,
.close-modal {
  position: relative;
  overflow: visible;
}

/* Переконуємося, що ефект для навігаційних посилань також видалений */
nav ul li a:after,
.language-toggle:after,
.home-link:after {
  display: none;
}

/* Ефект для кнопок з класом cta-button (наприклад, "Перевірити ризики онлайн") */
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.cta-button:hover {
  background-color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
}

/* Видаляємо будь-які залишкові ефекти анімації з інших елементів */
.burger-menu:after,
.mobile-nav ul li a:after,
.form-group:after,
.input-wrapper:after,
.unknown-option:after {
  display: none;
}

/* Оновлюємо анімації для всіх кнопок, щоб прибрати будь-які псевдоелементи */
.cta-button, 
.submit-button, 
.close-profile,
.contact-submit,
.close-contact,
.close-modal,
nav ul li a,
.language-toggle {
  position: relative;
  overflow: visible;
}

/* Видаляємо будь-які псевдоелементи та анімації з лініями для ВСІХ кнопок */
.cta-button:after, 
.submit-button:after, 
.close-profile:after,
.contact-submit:after,
.close-contact:after,
.close-modal:after,
nav ul li a:after,
.language-toggle:after,
.home-link:after,
nav#mobile-nav ul li a:after,
nav#mobile-nav .language-toggle:after,
.desktop-nav ul li a:after,
.desktop-nav .language-toggle:after,
.burger-menu:after,
.mobile-nav ul li a:after,
button:after,
a:after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Спрощуємо всі ховер-ефекти до простого підйому */
.cta-button:hover, 
.submit-button:hover, 
.close-profile:hover,
.contact-submit:hover,
.close-contact:hover,
.close-modal:hover,
nav ul li a:hover,
.language-toggle:hover,
nav#mobile-nav ul li a:hover,
nav#mobile-nav .language-toggle:hover,
.desktop-nav ul li a:hover,
.desktop-nav .language-toggle:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
  /* Жодних інших ефектів */
}

/* Видаляємо overflow:hidden, щоб переконатися, що ніякі анімації не обрізаються */
.cta-button, 
.submit-button, 
.close-profile,
.contact-submit,
.close-contact,
.close-modal,
nav ul li a,
.language-toggle,
nav#mobile-nav ul li a,
nav#mobile-nav .language-toggle,
.desktop-nav ul li a,
.desktop-nav .language-toggle {
  overflow: visible !important;
  position: relative;
}

/* Переконатися, що для кнопок меню використовується той самий стиль, що й для кнопки перекладу */
nav ul li a,
.language-toggle,
.home-link {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: all 0.3s ease;
  background: var(--primary-color);
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  min-width: 100px;
  height: 40px;
  text-align: center;
  cursor: pointer;
  line-height: 1;
  margin: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Важливо - видаляємо всі анімації для псевдоелементів у глобальному стилі */
*:after, *:before {
  animation: none !important;
}

/* Скидаємо стилі для усіх кнопок у навігації */
.home-link::after {
  display: none !important;
  content: none !important;
}

/* Анімації, які використовують ефект світіння або ліній потрібно повністю перевизначити */
@keyframes focusGlow {
  0% {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
  }
  100% {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.4);
  }
}

/* Стилі для блоку застереження */
.disclaimer-box {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid #3498db;
  margin: 20px 0 30px 0;
  padding: 15px 20px;
  border-radius: 0 5px 5px 0;
}

.disclaimer-box h3 {
  color: #3498db;
  margin-bottom: 10px;
  font-size: 18px;
}

.disclaimer-box p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 10px;
  text-align: left;
}

.lang-uk, .lang-en {
  transition: opacity 0.3s ease;
}

/* Адаптивність для застереження */
@media (max-width: 768px) {
  .disclaimer-box {
    padding: 12px 15px;
  }
  
  .disclaimer-box h3 {
    font-size: 16px;
  }
  
  .disclaimer-box p {
    font-size: 13px;
  }
}

/* Стилі для кнопки "Підтримати проєкт" */
.donate-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.donate-link:hover {
  color: #ffffff;
  background-color: #ff2a3a;
}

.donate-link:hover::after {
  content: '';
  transform: scale(1.1);
}

/* Модальне вікно донату */
.donate-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.donate-modal.hidden {
  display: none;
}

.donate-container {
  background-color: var(--background-light);
  width: 90%;
  max-width: 800px;
  border-radius: 34px;
  padding: 30px;
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0.95;
  position: relative;
}

.donate-container h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #fff;
  font-size: 28px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.donate-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.donate-info h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 20px;
}

.donate-info p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #fff;
}

.donate-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.donate-method {
  padding: 15px;
  background-color: var(--background-lighter);
  border-radius: 10px;
  margin-bottom: 15px;
}

.donate-method h4 {
  color: #fff;
  margin-bottom: 15px;
}

.donate-value-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.donate-value {
  flex-grow: 1;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  font-family: monospace;
  font-size: 16px;
  color: #ff4757;
  cursor: pointer;
  user-select: all;
}

.copy-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.copy-btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Тимчасово приховуємо інші платформи */
.donation-platforms {
  display: none;
}

/* Анімація сердечок */
.heart-animation {
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: #ff4757;
  pointer-events: none;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 5px rgba(255, 71, 87, 0.7));
  animation: floatHeart 3s ease-in-out forwards;
  opacity: 0;
  z-index: 9999;
}

.heart-animation::before,
.heart-animation::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background-color: #ff4757;
  border-radius: 50%;
}

.heart-animation::before {
  top: -12.5px;
  left: 0;
}

.heart-animation::after {
  top: 0;
  left: -12.5px;
}

@keyframes floatHeart {
  0% {
    transform: rotate(45deg) translateY(0px) scale(0);
    opacity: 0;
  }
  25% {
    opacity: 0.8;
  }
  100% {
    transform: rotate(45deg) translateY(-100px) scale(1);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .donate-container {
    width: 95%;
    padding: 20px;
  }
  
  .donate-value-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .copy-btn {
    align-self: flex-end;
  }
  
  .donation-platforms ul {
    flex-direction: column;
    gap: 10px;
  }
}

.close-donate {
  display: block;
  margin: 25px auto 0;
  padding: 10px 20px;
  background-color: #ff4757;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.close-donate:hover {
  background-color: #ff2a3a;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6);
}

.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

.form-success {
  text-align: center;
  margin: 20px 0;
  padding: 30px;
  background-color: var(--background-lighter);
  border-radius: 10px;
  animation: fadeIn 0.5s ease-in-out;
  display: none;
}

.form-success.hidden {
  display: none;
}

.form-success:not(.hidden) {
  display: block;
}

.form-success .success-icon {
  font-size: 60px;
  margin-bottom: 20px;
  animation: pulse 2s infinite ease-in-out;
}

.form-success h3 {
  color: #2ed573 !important;
  margin-bottom: 15px;
  font-size: 22px;
}

.form-success p {
  color: var(--text-light);
}

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

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

/* Стилі для модального вікна BMI калькулятора */
.bmi-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.bmi-modal.hidden {
  display: none;
}

.bmi-container {
  background-color: var(--background-light);
  width: 90%;
  max-width: 600px;
  border-radius: 20px;
  padding: 25px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.bmi-container h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #fff;
  font-size: 28px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.bmi-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bmi-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bmi-buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.calculate-btn {
  flex: 1;
  padding: 12px 15px;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.calculate-btn:hover {
  background-color: #27ae60;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.cancel-btn {
  flex: 1;
  padding: 12px 15px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cancel-btn:hover {
  background-color: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.bmi-result {
  background-color: var(--background-lighter);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

.bmi-result.hidden {
  display: none;
}

.bmi-value {
  font-size: 42px;
  font-weight: bold;
  color: #3498db;
  margin: 10px 0;
}

.bmi-category {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 5px 15px;
  border-radius: 20px;
}

.bmi-category.underweight {
  color: #3498db;
  background-color: rgba(52, 152, 219, 0.2);
}

.bmi-category.normal {
  color: #2ecc71;
  background-color: rgba(46, 204, 113, 0.2);
}

.bmi-category.overweight {
  color: #f39c12;
  background-color: rgba(243, 156, 18, 0.2);
}

.bmi-category.obese {
  color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.2);
}

.bmi-scale {
  width: 100%;
  margin: 15px 0;
}

.bmi-scale-bar {
  height: 20px;
  background: linear-gradient(to right, #3498db, #2ecc71, #f39c12, #e74c3c);
  border-radius: 10px;
  position: relative;
  margin-bottom: 10px;
}

.bmi-marker {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 40px;
  background-color: #fff;
  border-radius: 4px;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.bmi-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #ccc;
}

.bmi-info {
  margin: 15px 0;
  color: #bbb;
  font-size: 14px;
  line-height: 1.5;
}

.use-bmi-btn {
  padding: 12px 25px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.use-bmi-btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .bmi-container {
    width: 95%;
    padding: 20px;
  }
  
  .bmi-value {
    font-size: 36px;
  }
  
  .bmi-category {
    font-size: 18px;
  }
  
  .bmi-scale-labels {
    font-size: 12px;
  }
}

/* Нейроморфний дизайн для полів форми */
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea,
.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  border-radius: 12px;
  background: var(--background-lighter);
  box-shadow: 
    inset 2px 2px 5px rgba(0, 0, 0, 0.4),
    inset -2px -2px 5px rgba(255, 255, 255, 0.05),
    0 3px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 16px;
  font-size: 16px;
  color: #ffffff;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.form-group input[type="number"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field textarea:focus {
  box-shadow: 
    0 0 0 3px rgba(52, 152, 219, 0.3),
    inset 2px 2px 5px rgba(0, 0, 0, 0.2),
    inset -2px -2px 5px rgba(255, 255, 255, 0.05);
  border-color: #3498db;
  outline: none;
}

/* Стилізація міток полів (як в Apple) */
.form-group label,
.form-field label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

/* Стилізація select */
.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Покращений дизайн кнопок */
.cta-button,
.contact-submit,
.calculate-btn,
.use-bmi-btn {
  border-radius: 12px;
  background: linear-gradient(145deg, #3498db, #2980b9);
  box-shadow: 
    5px 5px 10px rgba(0, 0, 0, 0.3),
    -5px -5px 10px rgba(255, 255, 255, 0.05);
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cta-button:hover,
.contact-submit:hover,
.calculate-btn:hover,
.use-bmi-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.3),
    -8px -8px 16px rgba(255, 255, 255, 0.05);
}

.cta-button:active,
.contact-submit:active,
.calculate-btn:active,
.use-bmi-btn:active {
  transform: translateY(0);
  box-shadow: 
    2px 2px 5px rgba(0, 0, 0, 0.3),
    -2px -2px 5px rgba(255, 255, 255, 0.05);
}

/* Покращений дизайн чекбоксів "Я не знаю" */
.unknown-option {
  margin-top: 8px;
  display: flex;
  align-items: center;
}

.unknown-checkbox {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--background-lighter);
  box-shadow: 
    inset 2px 2px 5px rgba(0, 0, 0, 0.4),
    inset -2px -2px 5px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.unknown-checkbox:checked {
  background: #3498db;
  box-shadow: 
    inset 2px 2px 5px rgba(0, 0, 0, 0.2),
    inset -2px -2px 5px rgba(255, 255, 255, 0.1);
}

.unknown-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 7px;
  width: 4px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.unknown-option label {
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Підсвічування полів з помилками */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 0 0 2px rgba(52, 152, 219, 0.3),
    inset 2px 2px 5px rgba(0, 0, 0, 0.4),
    inset -2px -2px 5px rgba(255, 255, 255, 0.05);
}

/* Покращений візуальний фідбек для невідомих значень */
.unknown-selected input {
  background-color: rgba(52, 152, 219, 0.1) !important;
  border-color: rgba(52, 152, 219, 0.3) !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Анімація для полів при фокусі */
@keyframes inputFocus {
  0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4); }
  70% { box-shadow: 0 0 0 5px rgba(52, 152, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.form-group input:focus,
.form-group select:focus,
.form-field input:focus,
.form-field textarea:focus {
  animation: inputFocus 1s;
}
