.contact__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 3rem;
  padding: 60px 0;
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .contact__wrapper {
    gap: 1rem;
  }
}
@media (max-width: 767.98px) {
  .contact__wrapper {
    gap: 1rem;
  }
}
.contact__form {
  max-width: 80%;
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .contact__form {
    max-width: 90%;
  }
}
@media (max-width: 767.98px) {
  .contact__form {
    max-width: 90%;
  }
}
.contact__form-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 3rem;
}
@media (max-width: 767.98px) {
  .contact__form {
    max-width: 90%;
  }
}
.contact__form-item {
  position: relative;
  width: 100%;
}
.contact__form-item label {
  display: block;
}
.contact__form-item a {
  color: #5d4037;
  transition: color 0.3s ease-in-out;
}
@media (hover: hover) {
  .contact__form-item a:hover {
    color: #333333;
  }
}
.contact__form-btn {
  margin-top: 3rem;
}

.input {
  margin-top: 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  border: 1px solid #5d4037;
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.5rem;
  outline: none;
  color: #333333;
  position: relative;
  transition: all 0.3s ease-in-out;
}
.input:focus {
  border: 1px solid #ffab91;
}
.input::-moz-placeholder {
  color: #333333;
}
.input::placeholder {
  color: #333333;
}

.textarea {
  margin-top: 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  border: 1px solid #5d4037;
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.5rem;
  outline: none;
  color: #333333;
  position: relative;
  transition: all 0.3s ease-in-out;
  resize: none;
}
.textarea:focus {
  border: 1px solid #ffab91;
}
.textarea::-moz-placeholder {
  color: #333333;
}
.textarea::placeholder {
  color: #333333;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #333333;
}
.checkbox input[type='checkbox'] {
  -moz-appearance: none;
  appearance: none;
  -webkit-appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.2rem;
  background-color: #5d4037;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox input[type='checkbox']:checked {
  background-image: url('../images/check.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1rem 1rem;
}
.checkbox label {
  line-height: 1.4;
  cursor: pointer;
}
.l-link {
  padding: 10px 14px;
  border-radius: 0.2rem;
  background-color: #5d4037;
  color: #fff;
  transition: all 0.3s ease;
}

.l-link:hover {
  background-color: #ffab91;
}

.is-invalid {
  border-color: #dc3545;
}

.error-message {
  position: absolute;
  font-size: 0.8rem;
  left: 0;
  padding-left: 0.5rem;
  margin-top: 0.2rem;
  color: #dc3545;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.error-message--visible {
  opacity: 1;
  visibility: visible;
}
