@import "./normalize.css";
@import "./global.css";
@import "./header.css";
@import "./footer.css";

.contatcs {
  padding-top: 50px;
  padding-bottom: 50px;
}

.contatcs__title {
  margin-bottom: 20px;
}

.contacts__subtitle {
  margin-bottom: 25px;
}

.contacts__list {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}

.call__par {
  margin-bottom: 10px;
}

.contacts__item {
  display: flex;
  align-items: start;
  gap: 10px;
  color: var(--font-color);
  font-family: var(--font-base);
  font-weight: 400;
}

.contacts__item-title {
  font-size: clamp(18px, 2vw, 25px);
  font-family: var(--font-base);
  color: #023c6c;
  font-weight: 700;
}

.address__item svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

a {
  color: #023c6c;
}

.section {
  padding-top: 25px;
  padding-bottom: 25px;
}

.email__info {
  display: flex;
  align-items: center;
  justify-content: start;
}

.form__container {
  display: flex;
  justify-content: center;
}

.form__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 800px;
  padding: 30px;
  border: 2px solid #023c6c;
  border-radius: 10px;
}

.form__section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-base);
  color: #023c6c;
  font-weight: 700;
}

.form__section input {
  padding: 5px 10px;
  color: #023c6c;
  font-weight: 400;
  border-radius: 10px;
  border: 1px solid #023c6c;
  background: transparent;
}

.form__textarea textarea {
  padding: 5px 10px;
  width: 100%;
  color: #023c6c;
  font-weight: 400;
  border-radius: 10px;
  border: 1px solid #023c6c;
  background: transparent;
  height: 200px;
}

.form__textarea, .form__btn {
  grid-column: span 2
}

.form__btn {
  background: transparent;
  border: 2px solid #023c6c;
  border-radius: 5px;
  color: #023c6c;
  font-family: var(--font-base);
  font-weight: 400;
  transition: all var(--transition-duration);
  opacity: 1;
  background-color: #023c6c;
  color: #fff;
}

.form__btn:hover {
  opacity: 0.5;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  color: #023c6c;
  font-family: var(--font-base);
}

.popup-overlay.active {
  display: flex;
}

.popup {
  border: 2px solid #023c6c;
}

.popup h3 {
  margin-bottom: 15px;
}

.close-btn {
  margin-top: 10px;
  padding: 8px 15px;
  background: #555;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.close-btn:hover {
  background: #333;
}

.popup {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (width < 768px) {
  .form__inner {
    grid-template-columns: 1fr;
  }

  .form__textarea, .form__btn {
    grid-column: 1
  }
}