* {
  box-sizing: border-box;
  text-decoration: none;
  margin: 0;
  padding: 0;
}

body {
  padding-bottom: 58px;
  font-family: "Inter", sans-serif;
  color: #5e607a;
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 26px;
  
}


a {
  color: inherit;
}

.container {
  margin-right: auto;
  margin-left: auto;
  max-width: 1130px;
  padding-left: 10px;
  padding-right: 10px;
}


/* HEADER */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: 110px;
  width: 100%;
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.logo img {
  text-align: center;
  border-radius: 20px;
  width: 80px;
  height: 60px;
  background-size: contain;
  margin-left: 30px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.logo img:hover {
  transform: scale(1.03); /* Легке збільшення */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Додати глибину */
}

ul.menu {
  width: 410px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
}

button.burger,
button.cross {
  display: none;
}

a.menu-item-link {
  color: rgb(94, 96, 122);
}

a.menu-item-link img {
  transition: 0.5s;
}

a.menu-item-link img:hover {
  transform: scale(1.2);
}

header a {
  line-height: 1px;
}


/* MAIN Main-bckg */

main {
  display: flex;
  justify-content: center;
  /* align-items: center; */
  flex-wrap: wrap;
  column-gap: 30px;
  row-gap: 64px;
  margin-bottom: 71px;
}

section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  /* max-width: 730px; */
  /* max-height: 510px; */
}

.bckg {
  height: 300px;
  width: inherit;
  background-image: url(./assets/bckg/mustang-shelby-gt500-vs-camaro-zl1-1le-vs-challenger-srt-hellcat-redeye-comparison-102-1581425522\ копия.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  border-radius: 10px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.bckg:hover {
  transform: scale(1.03); /* Легке збільшення */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Додати глибину */
}

.main-about {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 30px;
  row-gap: 16px;
}

h1 {
  /* column-gap: 30px;
  row-gap: 16px; */
  max-width: 350px;
  font-weight: 800;
  font-size: 56px;
  line-height: 60px; /* Покращення читабельності */
  color: #5e607a;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2); /* Тінь тексту */
  transition: color 0.3s ease; /* Плавність для кольору */
  text-align: center;
}

h1>span {
  display: inline-block;
  /* border-bottom: #5e607a solid 2px; */
  margin-bottom: 5px;
  /* color: #f15d51; */
  color: #ff0000;
}

.button-form {
  max-width: 350px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: space-between;
  gap: 5px;
}

.button-form p {
  /* margin-bottom: 50px; */
  text-align: center;
}

.button-form a {
  padding: 10px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* width: 185px; */
  /* height: 48px; */
  background-color: rgb(20, 113, 189);
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 4.4px;
  color: #fffdfa;
  transition: all 0.5s ease-in-out;
  border-radius: 10px;
  transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.5 ease;
}

.button-form a:hover {
  background-color: #00001a;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Додати глибину */
}

.button-form a:active {
  transform: scale(0.95); /* Зменшення при натисканні */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Зміна тіні */
}


/* MAIN */
/* aside */

aside {
  max-width: 350px;
  height: 510px;
  background: linear-gradient(135deg, #000000, #414141);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 32px 24px;
  overflow-y: auto;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

aside:hover {
  transform: scale(1.03); /* Легке збільшення */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Додати глибину */
}

aside::-webkit-scrollbar {
  width: 12px; /* Ширина скроллбару */
  background: rgba(0, 0, 0, 0.2); /* Фон скроллбару (прозорий) */
  border-radius: 6px; /* Закруглення */
}

/* Стилізація повзунка (scroll thumb) */
aside::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3); /* Прозорий чорний */
  border-radius: 6px; /* Закруглені кути повзунка */
  box-shadow: 0 2px 4px rgba(255, 255, 255, 0.2); /* Тінь повзунка */
  transition: 0.3s ease; /* Плавність при наведенні */
}

/* Зміна кольору при наведенні */
aside::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
  /* background: rgb(20, 113, 189); Темніший при наведенні */
}

/* Фон за скроллбаром */
aside::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1); /* Прозорий фон */
}

h3 {
  font-weight: 700;
  font-size: 40px;
  line-height: 40px;
  color: #e9aa52;
  margin-bottom: 34px;
}

h3 span {
  color: rgb(20, 113, 189);
}

aside article+article {
  border-top: 1px solid #5e607a;
  padding-top: 31px;
}

h4 {
  font-weight: 800;
  font-size: 20px;
  line-height: 24px;
  color: #fffdfa;
  margin-bottom: 8px;
}

aside p {
  color: #c5c6ce;
  margin-bottom: 29px;
}

aside h4 a {
  transition: all 0.5s ease-in-out;
  color: white;
}

aside h4 a:hover {
  color: #e9aa52;
}


/* MAIN Calculator */

#car-shipping-calculator {
  width: 100%; /* На всю ширину main */
  max-width: 1200px; /* Обмеження максимальної ширини для великих екранів */
  margin: 0 auto; /* Центрування блоку */
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  
}

#car-shipping-calculator h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #343a40;
}

#shippingForm {
  display: flex;
  flex-wrap: wrap; /* Дозволяємо перенос елементів */
  justify-content: space-between; /* Рівномірний розподіл */
  gap: 15px; /* Відступи між елементами */
}

#shippingForm label {
  display: flex;
  align-items: center;
  flex: 1 1 40%; /* Лейбли займають всю ширину */
  color: #495057;
  font-weight: 600;
}

#shippingForm select,
#shippingForm input[type="number"],
#shippingForm input[type="search"] {
  flex: 1 1 calc(50% - 15px); /* Елементи в один рядок у половину ширини */
  min-width: 240px; /* Мінімальна ширина для зручності */
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

/* Стилізація активного елемента */
#shippingForm select:focus,
#shippingForm input[type="number"]:focus,
#shippingForm input[type="search"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Контейнер для підказок */
#suggestions {
  width: 100%;
  background-color: #fff;
  overflow-y: auto;
  list-style-type: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
}

/* Елементи списку */
#suggestions li {
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
}

#suggestions li:hover {
  background-color: #f1f1f1;
}

#shippingForm button {
  flex: 1 1 100%; /* Кнопка займає всю ширину */
  padding: 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

#shippingForm button:hover {
  background-color: #0056b3;
  transform: scale(1.03); /* Легке збільшення */
}

#shippingResult {
  flex: 1 1 100%; /* Результат займає всю ширину */
  margin-top: 20px;
  padding: 15px;
  background-color: #e9ecef;
  border-radius: 5px;
  text-align: center;
  font-weight: 600;
  color: #212529;
}


/* MAIN Form */

.form {
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  border-radius: 10px;
  border: 2px solid #007bff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.form:hover {
  transform: scale(1.01); /* Легке збільшення */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Додати глибину */
}

.form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid #007bff; /* Підкреслення */
  display: inline-block;
  padding-bottom: 5px;
}

.form input,
.form button {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 16px;
  transition: all 0.3s ease; /* Плавний перехід для стилів */
}

.form input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
  transform: scale(1.02); /* Легка зміна розміру */
}

.form button {
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form button:hover {
  background: linear-gradient(90deg, #0056b3, #003d80);
  transform: scale(1.05); /* Легка зміна розміру при наведенні */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#sendText {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: green;
}

/* FOOTER */
footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

h2 {
  text-align: center;
  margin-bottom: 50px;
}

footer article {
  max-width: 350px;
  min-height: 127px;
  background-repeat: no-repeat;
  padding-left: 124px;
}

footer span {
  display: inline-block;
  font-weight: 700;
  font-size: 32px;
  line-height: 32px;
  color: #c5c6ce;
  margin-bottom: 12px;
}

footer h5 {
  font-weight: 800;
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 9px;
  color: #00001a;
}

footer article h5 a {
  transition: all 0.5s ease-in-out;
}

footer article h5 a:hover {
  color: #f15d51;
}

.footer-contacts {
  border-top: 1px solid gray;
  margin-top: 20px;
  padding-top: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  color: rgb(164, 163, 163);
}

.contact-ua {
  background-image: url(./assets/icons/ukraine.png);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 25px;
  padding-left: 35px;
}

.contact-ca {
  background-image: url(./assets/icons/canada.png);
  background-repeat: no-repeat;
  background-position: left center;
  padding-left: 35px;
  background-size: 25px;
}

p.contact-ca a:hover {
  transition: 0.5s;
  color: #000;
  font-weight: 450;
}

p.contact-ua a:hover {
  transition: 0.5s;
  color: #000;
  font-weight: 450;
}


/* @MEDIA */
@media screen and (max-width: 580px) {
  .logo img {
    margin-left: 0;
  }

  ul.menu {
    width: 100%;
    gap: 15px;
  }

  header {
    flex-direction: column;
    justify-content: center;
    gap: 25px;
  }
}

@media (max-width: 600px) {
  .bckg {
    height: 200px; /* Зменшена висота на мобільних */
  }
  .form {
    padding: 20px; /* Менше відступів */
  }

  .form h2 {
    font-size: 20px; /* Зменшення розміру заголовка */
  }

  .form input, .form button {
    padding: 12px; /* Менші поля */
  }
}

#sendText {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: green;
  font-size: 18px;
  opacity: 0; /* Початково невидимий */
  animation: fadeIn 0.5s forwards; /* Плавна поява */
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}








/* Оптимізація для мобільних пристроїв */
@media (max-width: 768px) {
  #shippingForm select,
  #shippingForm input[type="number"] {
    flex: 1 1 100%; /* Елементи в один стовпчик */
  }
}






