#contact {
  line-height: 1.5;
  max-width: 1000px;
  justify-content: space-around;
  align-items: center;
  flex-grow: 1;
}

#contact-logo {
  display: none;
  justify-content: center;
  margin: 32px;
}

#contact-logo.show {
  display: flex;
}

#contact-logo img {
  max-width: 350px;
  max-height: 300px;
}

#contact-text {
  font-size: 22px;
  display: flex;
  max-width: 775px;
  text-align: center;
  flex-direction: column;
}

#contact-number {
  margin-top: 32px;
}

#submitted-text {
  font-size: 22px;
  margin-top: 80px;
  display: none;
  text-align: center;
}

#submitted-text.show {
  display: flex;
}

#contact-form {
  font-size: 18px;
  line-height: 1.5;
  margin-top: 20px;
  width: 100%;
}

#error-message {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 16px;
  border-radius: 4px;
  display: none;
  justify-content: center;
  opacity: 0;
  transition: opacity 500ms linear;
}

#error-message.visible {
  display: flex;
}

#error-message.fade-in {
  opacity: 1;
}

#contact-form h2 {
  font-family: var(--font-heading);
  text-align: center;
  margin: 16px 0;
  font-size: 34px;
}

#contact-first-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

:is(.required-input-wrapper, .input-wrapper) {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
}

:is(.required-input-wrapper, .input-wrapper) :is(select, input) {
  padding: 6px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  font-size: 18px;
}

:is(.required-input-wrapper, .input-wrapper) :is(select, input):focus {
  outline: none !important;
  border-color: var(--light-blue);
}

.required-input-wrapper label::before {
  content: "*";
  color: red;
  margin-right: 3px;
}

#submit-btn {
  border: 2px solid var(--orange);
  color: var(--orange);
  width: 175px;
  margin: 80px auto 0;
  display: flex;
}

#submit-btn:hover,
#submit-btn:focus,
#submit-btn:active {
  background-color: var(--orange);
  color: var(--white);
}

@media (max-width: 899.98px) {
  #contact-first-row {
    margin: 20px 0;
    flex-direction: column;
  }
}
