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

main {
  width: 90%;
  max-width: 736px;
  flex: 1;
  align-items: center;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
p,
fieldset,
figure {
  margin: 0;
  padding: 0;
}

fieldset {
  border: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font: inherit;
  width: 100%;
}

img {
  max-width: 100%;
  display: block;
}

.attribution {
  font-size: 11px;
  text-align: center;
  width: 100%;
  padding-block: 0.5rem;
  color: hsl(187, 24%, 22%);
}
.attribution a {
  color: hsl(169, 82%, 27%);
  text-decoration: none;
  font-weight: 700;
}
.attribution a:hover {
  text-decoration: underline;
}

.contact-form {
  background-color: hsl(0, 0%, 100%);
  padding: 2.5rem;
  border-radius: 1rem;
  margin-block: 1rem;
  width: 100%;
}
@media (max-width: 480px) {
  .contact-form {
    padding: 1.5rem;
  }
}
.contact-form__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-block-end: 2rem;
  letter-spacing: -1px;
}
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-block-end: 1.5rem;
}
@media (min-width: 640px) {
  .contact-form__grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-form__grid .contact-form__group:nth-child(3) {
    grid-column: span 2;
  }
}
.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-form__label, .contact-form__message-label {
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
}
.contact-form__message-area {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-block-end: 1.5rem;
}
.contact-form__message-label {
  margin-block-end: 0.5rem;
}
.contact-form__input, .contact-form__message-text-area {
  padding: 0.75rem 1.25rem;
  border: 1px solid hsl(186, 15%, 59%);
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form__input:hover, .contact-form__message-text-area:hover {
  border-color: hsl(169, 82%, 27%);
}
.contact-form__input:focus, .contact-form__message-text-area:focus {
  border-color: hsl(169, 82%, 27%);
  box-shadow: 0 0 0 1px hsl(169, 82%, 27%);
}
.contact-form__message-text-area {
  min-height: 120px;
  resize: vertical;
}
.contact-form__error, .contact-form__validation {
  color: hsl(0, 66%, 54%);
  font-size: 0.875rem;
  display: none;
}
.contact-form__radio-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-block: 0.75rem 1.5rem;
}
@media (min-width: 640px) {
  .contact-form__radio-group {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-form__radio-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid hsl(186, 15%, 59%);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}
.contact-form__radio-item:hover {
  border-color: hsl(169, 82%, 27%);
}
.contact-form__radio-item:has(input:checked) {
  background-color: hsl(148, 38%, 91%);
  border-color: hsl(169, 82%, 27%);
}
.contact-form__radio-item label {
  cursor: pointer;
  width: 100%;
  padding-block: 0.25rem;
  margin: 0;
}
.contact-form__radio-input {
  width: auto;
  accent-color: hsl(169, 82%, 27%);
}
.contact-form__checkbox-group {
  margin-block: 1rem 2rem;
}
.contact-form__checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}
.contact-form label {
  cursor: pointer;
  font-size: 0.875rem;
}
.contact-form input[type=checkbox] {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  accent-color: hsl(169, 82%, 27%);
  cursor: pointer;
}
.contact-form__submit {
  width: 100%;
  background-color: hsl(169, 82%, 27%);
  color: hsl(0, 0%, 100%);
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  transition: background-color 0.3s ease;
}
.contact-form__submit:hover {
  background-color: hsl(169, 82%, 17%);
}
.contact-form__submit:focus-visible {
  outline: 2px solid hsl(187, 24%, 22%);
  outline-offset: 2px;
}

.toast {
  display: none;
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: hsl(187, 24%, 22%);
  color: hsl(0, 0%, 100%);
  padding: 1.5rem;
  border-radius: 0.75rem;
  width: calc(100% - 2rem);
  max-width: 450px;
  z-index: 1000;
}
.toast__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.toast__title::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("../images/icon-success-check.svg");
  background-size: contain;
  background-repeat: no-repeat;
}
.toast__description {
  font-size: 0.875rem;
  color: hsl(148, 38%, 91%);
}
.toast--visible {
  display: block;
  animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -20px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

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