/* Basis en fonts + heading styling overgenomen uit style.css */
body {
  font-family: Inter, light, sans-serif;
  font-weight: 300;
  margin: 0;
  padding: 0;
  background-color: #faf6f2;
  color: #5d5d5d;
  letter-spacing: 0.05em;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Melodrama", serif;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  letter-spacing: 0.05em;
}

p {
  margin: 0;
}

.formcontainer.formpage {
  width: 100%;
  min-height: 100vh;
  padding: 40px 10%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.04);
}

.form {
  display: flex;
  position: relative;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  max-height: calc(100dvh - 40px);
  justify-content: center;
  padding: 80px 48px;
  box-sizing: border-box;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 50px 50px 5px 5px;
  background-color: #faf6f2;
  align-items: center;
}

.closeform {
  position: absolute;
  top: 24px;
  right: 24px;
}

.closeform img {
  width: 28px;
  height: 28px;
}

.persoonlijkbericht {
  text-align: center;
}

.persoonlijkbericht h1 {
  margin-bottom: 40px;
  margin-top: 40px;
}

.persoonlijkbericht h3 {
  margin-bottom: 10px;
}

.persoonlijkbericht p {
  margin-bottom: 20px;
  color: #212121;
}

.form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background: #fff;
}

.form button {
  border: none;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px;
  border-radius: 10px;
  color: #5d5d5d;
  background-color: #faf6f2;
  padding: 10px 30px;
  text-transform: uppercase;
  font-family: Inter, light, sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  width: fit-content;
  align-self: center;
  margin-top: 20px;
}

.form button:hover {
  background-color: #5d5d5d;
  color: #f5f4ef;
  cursor: pointer;
  transition: 0.3s;
}

.form-feedback {
  margin-top: 8px;
  color: #212121;
  text-align: center;
}

.form-thanks {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  justify-content: center;
  min-height: 420px;
  max-width: 420px;
  text-align: center;
  color: #212121;
}

.form-thanks-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(33, 33, 33, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #212121;
  background: rgba(250, 246, 242, 0.68);
}

.form-thanks-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.form-thanks h1 {
  margin-top: 10px;
}

.form-thanks p {
  line-height: 1.6;
}

.thanks-link {
  border: none;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 8px;
  border-radius: 10px;
  color: #5d5d5d;
  background-color: #faf6f2;
  padding: 10px 30px;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Inter, light, sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  margin-top: 20px;
}

.thanks-link:hover {
  background-color: #5d5d5d;
  color: #f5f4ef;
  transition: 0.3s;
}

.form.is-success .persoonlijkbericht,
.form.is-success #waitlistForm,
.form.is-success .form-feedback {
  display: none;
}

.form.is-success .form-thanks {
  display: flex;
  animation: reveal-up 0.45s ease both;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .form {
    width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    padding: 56px 20px 24px;
    border-radius: 32px 32px 5px 5px;
  }

  .formcontainer.formpage {
    padding: 16px;
  }

  .persoonlijkbericht h1 {
    margin-top: 0;
    margin-bottom: 18px;
  }

  .persoonlijkbericht h3 {
    margin-bottom: 8px;
  }

  .persoonlijkbericht p {
    margin-bottom: 14px;
  }

  .form {
    gap: 16px;
  }

  .form form {
    gap: 14px;
  }

  .form input {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
  }

  .form button {
    margin-top: 8px;
  }

  .closeform {
    top: 20px;
    right: 20px;
  }
}
