html {
  font-size: 100%;
  box-sizing: border-box;
}

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

body {
  padding: 0;
  margin: 0;
  font-family: Karla, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background-color: hsl(148, 38%, 91%);
  color: hsl(187, 24%, 22%);
}

a, a:hover, a:visited {
  text-decoration: none;
}

main {
  width: 100vw;
  margin: 4rem auto;
}
@media (min-width: 780px) {
  main {
    margin: 6rem auto;
  }
}

h1, h2, h3, h4, p {
  margin: 0;
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-jc-sb {
  justify-content: space-between;
}
.flex-ai-c {
  align-items: center;
}

.hidden {
  display: none;
}

.title {
  font-size: 2rem;
  letter-spacing: -2%;
}

.btn {
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  font-family: Karla, sans-serif;
  font-weight: bold;
  font-size: 1.125rem;
  background-color: hsl(169, 82%, 27%);
  color: hsl(0, 0%, 100%);
  cursor: pointer;
  transition: all ease-in-out 300ms;
}
.btn:hover {
  background-color: hsl(169, 82%, 14%);
}

.text-input {
  padding: 1.125rem;
  border: 0.063rem solid hsl(186, 15%, 59%);
  border-radius: 0.5rem;
  font-family: Karla, sans-serif;
  font-size: 1.125rem;
  line-height: 1;
  color: hsl(187, 24%, 22%);
  transition: all ease-in-out 300ms;
}
.text-input:hover {
  border-color: hsl(187, 24%, 22%);
}
@media (min-width: 780px) {
  .text-input {
    padding: 1.125rem 1.5rem;
  }
}

.message-input {
  height: 15rem;
  padding: 1.125rem;
  border: 0.063rem solid hsl(186, 15%, 59%);
  border-radius: 0.5rem;
  font-family: Karla, sans-serif;
  font-size: 1.125rem;
  color: hsl(187, 24%, 22%);
  resize: none;
}
@media (min-width: 780px) {
  .message-input {
    height: 6.563rem;
    padding: 0.875rem 1.5rem;
  }
}

.form-group {
  width: 100%;
  gap: 0.5rem;
}
.form-group:has(.radio-group) {
  gap: 1rem;
}
.form-group:has(.checkbox-option) {
  padding: 0.75rem 0.25rem;
}

.error-message {
  color: hsl(0, 66%, 54%);
}

#contact-form {
  position: relative;
  width: 21.438rem;
  margin: 0 auto 0.75rem auto;
  padding: 1rem 1.5rem;
  border-radius: 0.875rem;
  gap: 1.5rem;
  background-color: hsl(0, 0%, 100%);
  box-shadow: 0.063rem 0.125rem 0.375rem rgba(0, 0, 0, 0.08);
}
@media (min-width: 780px) {
  #contact-form {
    width: 46.063rem;
    margin: 0 auto 0.75rem auto;
    padding: 2rem 2.5rem 2.5rem 2.5rem;
  }
}

.alert-box {
  position: absolute;
  top: 1.875rem;
  left: 50%;
  width: 17.1504rem;
  padding: 1.5rem 1.625rem;
  border-radius: 0.75rem;
  gap: 0.5rem;
  background-color: hsl(169, 82%, 27%);
  color: hsl(0, 0%, 100%);
  transform: translate(-50%, -50%);
}
@media (min-width: 780px) {
  .alert-box {
    top: -1.25rem;
    width: 32.2441rem;
  }
}
.alert-box .alert-header {
  gap: 0.75rem;
}
.alert-box .alert-header p {
  font-size: 1.125rem;
  font-weight: bold;
}
.alert-box .alert-message {
  color: hsl(186, 15%, 100%);
}

.name-group {
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 780px) {
  .name-group {
    flex-direction: row;
    gap: 1.125rem;
  }
}

.radio-group {
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 780px) {
  .radio-group {
    flex-direction: row;
    gap: 1.125rem;
  }
}

.radio-option {
  position: relative;
  width: 100%;
  border: 0.063rem solid hsl(186, 15%, 59%);
  border-radius: 0.5rem;
  font-size: 1.125rem;
  line-height: 1;
  transition: all 0.3s ease;
  cursor: pointer;
}
.radio-option:has(input:checked) {
  background-color: hsl(148, 38%, 91%);
}

.radio-option input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.radio-option label {
  width: 100%;
  height: 100%;
  padding: 1rem 1.625rem;
  gap: 0.875rem;
  cursor: pointer;
}

.radio-option label::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 0.063rem solid black;
  border-radius: 50%;
  background-position: center;
}

.radio-option input:checked + label::before {
  width: 1.25rem;
  height: 1.25rem;
  border: 0.063rem solid transparent;
  background-image: url("../images/icon-radio-selected.svg");
}

.checkbox-option {
  position: relative;
  cursor: pointer;
}

.checkbox-option input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.checkbox-option label {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
}

.checkbox-option label::before {
  content: "";
  display: inline-block;
  width: 1.125rem;
  height: 1.125rem;
  border: 0.063rem solid #666;
  border-radius: 0.25rem;
  background-position: center;
  transition: all 0.3s ease;
}

.checkbox-option input:checked + label::before {
  background-image: url("../images/icon-checkbox-check.svg");
}

.attribution {
  text-align: center;
  font-size: 0.688rem;
  font-weight: 400;
}
.attribution a {
  color: hsl(169, 82%, 27%);
}

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