.contact-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 60px 12px;
  border-top: 1px solid #000;
  align-items: center;
}

.contact-title {
  font-size: 40px;
  font-weight: 500;
}

.contact-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 860px;
}

.contact-text {
  font-size: 18px;
  text-align: center;
}

.contact-error {
  color: #c0392b;
  font-size: 14px;
  padding: 8px 12px;
  background: #fdf0ef;
  border-left: 3px solid #c0392b;
  border-radius: 2px;
}

/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form__field--full {
  grid-column: 1 / -1;
  width: 100%;
}

.contact-form__label {
  font-size: 14px;
  font-weight: 500;
  color: #222;
}

.required {
  color: #c0392b;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  padding: 12px;
}

.contact-form__submit {
  display: flex;
  justify-content: flex-end;
}

.form-button {
  padding: 14px 40px;
  min-width: 180px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.form-button:hover {
  opacity: 0.8;
}

/* Contact info items */
.contact-center {
  padding: 16px;
}

.contact-item {
  font-size: 16px;
  font-weight: 500;
  transition: color 0.5s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.contact-item.address:before {
  content: "";
  display: block;
  width: 19px;
  height: 19px;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url("../img/address.svg");
}

.contact-item.tel:before {
  content: "";
  display: block;
  width: 19px;
  height: 19px;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url("../img/tel.svg");
}

.contact-item.email:before {
  content: "";
  display: block;
  width: 19px;
  height: 19px;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url("../img/email.svg");
}

.contact-item:hover {
  color: #808080;
}

@media (max-width: 767px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-form__submit {
    justify-content: stretch;
  }

  .form-button {
    width: 100%;
  }
}
