.contact {
  padding: 6rem 0;
  background-image: url("/img/tisztaterulet02.png");
  background-size: cover;
}

.contact__box {
  width: 95%;
  max-width: 940px;
  padding: 3rem 3rem 2rem;
  margin: auto;
  background: white;
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.contact__box h1 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  font-weight: 800;
}

.contact__box h1 span {
  color: #438921;
}

.contact__box > a {
  display: block;
  width: fit-content;
  margin: auto;
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  background-color: #0d2b05;
  padding: 1.25rem 3.75rem;
  border-radius: 0.75rem;
}

.contact__row {
  display: grid;
  grid-template-columns: 4fr 3fr;
  gap: 1rem;
}

.contact__col {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.contact__col label {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.contact__col label input,
.contact__col label select {
  -webkit-appearance: none;
  outline: none;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  border: 2px solid #438921;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  line-height: 1.5rem;
  margin-top: 0.25rem;
}

.contact__row:first-of-type {
  margin-bottom: 0.5rem;
}

.contact__row .checkbox {
  text-align: left;
  display: flex;
  align-items: flex-start;
  margin-top: 0.25rem;
}

.contact__row .checkbox input {
  -webkit-appearance: none;
  appearance: none;
  margin-top: 0.125rem;
  margin-right: 0.75rem;
  width: 2rem;
  height: 2rem;
  vertical-align: middle;
  background: none;
  border: 0;
  outline: 0;
  flex-grow: 0;
  border-radius: 0.5rem;
  background-color: white;
  cursor: pointer;
}

.contact__row .checkbox input::before {
  content: "";
  color: transparent;
  display: block;
  width: inherit;
  height: inherit;
  border-radius: inherit;
  border: 0;
  background-color: transparent;
  background-size: contain;
  box-shadow: inset 0 0 0 2px #438921;
}

.contact__row .checkbox input:checked {
  background-color: #438921;
}

.contact__row .checkbox input:checked::before {
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath d='M15.88 8.29L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z' fill='%23fff'/%3E %3C/svg%3E");
}

.contact__row .checkbox label {
  font-weight: 500;
}

.contact__row button {
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1.25rem 0.75rem;
  border: none;
  border-radius: 0.75rem;
  color: white;
  background: #438921;
}

@media only screen and (max-width: 768px) {
  .contact__box {
    padding: 4rem 2rem;
  }
  .contact__box h1 {
    font-size: 1.75rem;
  }
  .contact__row {
    grid-template-columns: 1fr;
  }
  .contact__row .checkbox {
    margin-bottom: 0.5rem;
  }
}
