*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-size: 16px;
}

body {
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: "Karla", sans-serif;
  color: hsl(187, 24%, 22%);
  background-color: hsl(148, 38%, 91%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact {
  padding: 1.5rem;
  margin: 1rem;
  background-color: hsl(0, 0%, 100%);
  border-radius: 1rem;
}
@media (min-width: 62rem) {
  .contact {
    width: 100%;
    max-width: 800px;
    padding: 3rem;
  }
}
.contact__title {
  font-size: 1.8rem;
}

.contact-form {
  margin-top: 1rem;
}
@media (min-width: 62rem) {
  .contact-form__row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }
}
.contact-form__group {
  width: 100%;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: normal;
  gap: 0.5rem;
  font-weight: 400;
}
@media (min-width: 62rem) {
  .contact-form__group {
    gap: 1rem;
  }
}
.contact-form__group--query {
  border: none;
  margin-top: 1rem;
  display: block;
}
.contact-form__options {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: normal;
  gap: 1rem;
}
@media (min-width: 62rem) {
  .contact-form__options {
    flex-direction: row;
  }
}
.contact-form__option {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.contact-form__option:has(.contact-form__radio:checked) {
  border-color: hsl(169, 82%, 27%);
  background-color: hsl(148, 38%, 91%);
  font-weight: bold;
}
.contact-form__required {
  color: hsl(169, 82%, 27%);
}
.contact-form__label {
  margin-top: 1rem;
}
.contact-form__input, .contact-form__option {
  padding: 0.7rem 1rem;
  border-radius: 0.4rem;
  border: 2px solid #ccc;
  cursor: pointer;
}
@media (min-width: 62rem) {
  .contact-form__input, .contact-form__option {
    padding: 1rem 1.5rem;
  }
}
.contact-form__input:focus, .contact-form__option:focus, .contact-form__input:hover, .contact-form__option:hover {
  border: 2px solid hsl(169, 82%, 27%);
  outline: none;
}
.contact-form__radio {
  accent-color: hsl(169, 82%, 27%);
}
.contact-form__error {
  color: hsl(0, 66%, 54%);
  display: none;
}
.contact-form__textarea {
  height: 220px;
  resize: none;
  font-family: "Karla", sans-serif;
  line-height: 1.2rem;
}
.contact-form__checkbox-label {
  margin-top: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.contact-form__checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}
.contact-form__checkbox:checked {
  accent-color: hsl(169, 82%, 27%);
}
.contact-form__submit {
  width: 100%;
  margin-top: 2rem;
  padding: 1rem;
  color: hsl(0, 0%, 100%);
  background-color: hsl(169, 82%, 27%);
  border-radius: 8px;
  border: none;
  letter-spacing: 1px;
  cursor: pointer;
}
@media (min-width: 62rem) {
  .contact-form__submit {
    padding: 1.5rem;
    font-size: 1.2rem;
  }
}
.contact-form__submit:hover {
  background-color: color-mix(in srgb, hsl(169, 82%, 27%) 80%, black 50%);
}
.contact-form__success {
  width: 70%;
  max-width: 450px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  gap: 1rem;
  color: hsl(0, 0%, 100%);
  background-color: color-mix(in srgb, hsl(169, 82%, 27%) 80%, black 50%);
  border-radius: 10px;
  position: fixed;
  top: -8rem;
  left: 50%;
  transform: translateX(-50%);
  transition: all 500ms ease-in-out;
}
.contact-form__success-title {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  gap: 0.6rem;
}

.contact-form__input-error {
  border-color: hsl(0, 66%, 54%);
  outline-color: hsl(0, 66%, 54%);
}
.contact-form__input-error:focus {
  border-color: hsl(0, 66%, 54%);
  outline-color: hsl(0, 66%, 54%);
}

.error-message {
  display: block;
}

.show-success-message {
  top: 2rem;
}

/*# sourceMappingURL=style.css.map */
