footer {
  background-color: var(--dark-grey);
  color: white;
  padding: 1rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  margin-top: auto;
}

.footer-text, footer img {
  width: 80%;
}

.footer-slogan {
  font-size: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 20px);
  width: 100%;
  align-items: center;
  justify-items: center;
}

.footer-slogan p {
  margin-block-start: 0;
  margin-block-end: 0;
  align-self: center;
}

footer img {
  width: 19rem;
  height: auto;
}

@media (max-width: 345px) {
  footer {
    font-size: 0.9rem;
  }
  footer img {
    width: 18rem;
  }
}
@media (min-width: 425px) {
  footer {
    padding: 1rem 10%;
  }
  footer img {
    width: 22rem;
  }
}
:root {
  --green: #B2EF00;
  --black: #000000;
  --dark-grey: #32373f;
  --middle-grey: #707379;
  --light-grey: #f2f2f2;
  --white: #ffffff;
}

@font-face {
  font-family: "TTFirsNeue-Regular";
  src: url("../fonts/TTFirsNeue-Regular.ttf");
}
@font-face {
  font-family: "TTFirsNeue-DemiBold";
  src: url("../fonts/TTFirsNeue-DemiBold.ttf");
}
body {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  flex-direction: column;
  font-family: TTFirsNeue-Regular, sans-serif;
}

header {
  margin-bottom: 0.5rem;
  margin-top: 3rem;
}

header svg {
  width: 16rem;
  height: auto;
  display: block;
  margin: 2rem auto;
}

main {
  padding: 0 10%;
}

.numbered {
  color: var(--green);
  font-size: 1.2em;
  font-weight: 400;
  counter-increment: section;
  position: relative;
  padding-left: 10%;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.numbered::before {
  content: counter(section) ". ";
  font-size: 1.2rem;
}

strong {
  font-family: TTFirsNeue-DemiBold, sans-serif;
}

.required-fields {
  color: red;
  font-size: 0.6rem;
  display: none;
}

@media (max-width: 345px) {
  .numbered, .numbered::before {
    font-size: 1rem;
  }
}
@media (min-width: 800px) {
  .numbered, .numbered::before {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
}
@media (min-width: 1024px) {
  .numbered::before {
    left: 3.7rem;
  }
}
@media (min-width: 1200px) {
  .numbered::before {
    left: 4.7rem;
  }
}
:root {
  --green: #B2EF00;
  --black: #000000;
  --dark-grey: #32373f;
  --middle-grey: #707379;
  --light-grey: #f2f2f2;
  --white: #ffffff;
}

@font-face {
  font-family: "TTFirsNeue-Regular";
  src: url("../fonts/TTFirsNeue-Regular.ttf");
}
@font-face {
  font-family: "TTFirsNeue-DemiBold";
  src: url("../fonts/TTFirsNeue-DemiBold.ttf");
}
.first-block, .second-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10%;
}

.small-blocks {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.small-blocks div {
  width: 100%;
}

.name {
  font-weight: 600;
  align-self: flex-start;
  margin-bottom: 0.4rem;
  font-family: TTFirsNeue-DemiBold, sans-serif;
}

#signature-name {
  align-self: center;
}

.inputfield {
  font-family: TTFirsNeue-Regular, sans-serif;
  box-sizing: border-box;
  margin-bottom: 1.3rem;
  width: 100%;
  font-size: 1rem;
  font-weight: 100;
  height: auto;
  padding: 0.7rem;
  border-radius: 5px;
  border-width: 1px;
  border-color: var(--middle-grey);
}

.dropdown {
  margin-bottom: 1.3rem;
  width: 100%;
  height: 2.7rem;
  padding: 0.2rem 0.7rem;
  border-radius: 5px;
  font-family: TTFirsNeue-Regular, sans-serif;
  font-size: 1rem;
}

#visitor-number {
  line-height: 1.5rem;
  resize: none;
  overflow: hidden;
  height: auto;
}

#signature {
  border: 1px solid #000;
  width: 100%;
  max-width: 500px;
  height: 150px;
  background-color: #fff;
  margin-bottom: 1rem;
  border-radius: 5px;
}

.clear-button {
  background-color: var(--dark-grey);
  color: var(--green);
  border-radius: 25px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.clear-button:hover {
  background-color: var(--middle-grey);
}

.query-field {
  margin-bottom: 1.3rem;
  width: 100%;
}

.query-buttons {
  margin-top: 0.5rem;
}

hr {
  margin: 1rem 0;
}

@media (max-width: 345px) {
  .name {
    font-size: 0.9rem;
  }
}
@media (min-width: 800px) {
  .small-blocks {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
  }
}
.text-block {
  text-align: left;
  padding: 0 10%;
}

ul {
  list-style-type: square;
  padding-inline-start: 25px;
  margin-block-end: 0;
}

ul li {
  margin-bottom: 0.7rem;
}

ul li::marker {
  color: black;
}

.submit-button {
  background-color: var(--dark-grey);
  color: var(--white);
  font-family: TTFirsNeue-Regular, sans-serif;
  font-size: 1.2rem;
  width: 80%;
  padding: 10px 20px;
  display: block;
  align-self: start;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  margin: 3rem auto;
  border-radius: 25px;
}

.submit-button:hover {
  background-color: var(--middle-grey);
}

@media (max-width: 345px) {
  .text-block {
    font-size: 0.9rem;
  }
}
@media (min-width: 800px) {
  .submit-button {
    width: 500px;
  }
}
#success-message {
  display: none;
  text-align: center;
  margin: 10% auto;
  max-width: 600px;
  padding: 0 10%;
}

#success-message .success-txt {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  color: var(--green);
}

.edit-txt {
  margin-bottom: 0;
}

#success-message button {
  background-color: var(--dark-grey);
  color: var(--green);
  font-family: TTFirsNeue-Regular, sans-serif;
  font-size: 1.2rem;
  border-radius: 25px;
  width: 80%;
  padding: 0.8rem 1.5rem;
  margin: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#success-message button p {
  margin: 0;
}

#success-message button:hover {
  background-color: var(--middle-grey);
}
