/*php styling*/
.bg {
  background-image: url(../pictures/contact.jpg);
}

section {
  height: clamp(1050px, calc(100vh - 30px), calc(100vh - 30px));
}

.error,
.success {
  border-radius: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 5px;
  margin-bottom: 30px;
  width: 100%;
}

.error {
  background-color: rgb(199, 131, 131);
  color: rgb(172, 59, 59);
  border: 2px solid rgb(172, 59, 59);
}

.success {
  background-color: rgb(158, 199, 158);
  color: rgb(42, 128, 42);
  border: 2px solid rgb(42, 128, 42);
}

.error-header {
  font-family: "Inter";
  font-size: 17px;
}

.success-header {
  font-family: "Inter";
  font-size: 17px;
  font-weight: 300;
}

.error-message {
  font-family: "Inter";
  font-size: 16px;
}

/*------------contact form-------------*/

/*--form input velden, text velden en button(btn)--*/

.contact-form {
  margin-top: clamp(200px, calc(15vh - 30px), calc(15vh - 30px));
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-left: 15%;
  margin-bottom: 50px;
  position: absolute;
}

.input-wrapper {
  width: clamp(317px, 41.7vw, 900px);
}

.contact-input {
  background-color: whitesmoke;
  outline: none;
  border: 1px solid black;
  border-radius: 6px;
  width: 100%;
  height: 40px;
  margin-bottom: 20px;
  font-size: large;
  padding-left: 10px;
}

.contact-input:focus {
  border: 1px solid rgb(19, 192, 183);
}

textarea {
  resize: none;
  background-color: whitesmoke;
  height: 280px;
  width: 100%;
  outline: none;
  border-radius: 6px;
  border: 1px solid black;
  font-size: medium;
  font-family: Arial, Helvetica, sans-serif;
  padding-top: 12px;
  padding-left: 10px;
}

textarea:focus {
  border: 1px solid rgb(19, 192, 183);
}

.input-title {
  position: absolute;
  margin-left: 0px;
  margin-top: -20px;
  z-index: 2;
  color: white;
  font-family: "Inter", sans-serif;
  user-select: none;
  pointer-events: none;
  padding-right: 2px;
  padding-left: 2px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

.submit-btn {
  font-family: "Inter", sans-serif;
  font-size: large;
  background: rgb(19, 192, 183);
  color: white;
  border: 3px solid rgb(23, 156, 150);
  border-radius: 6px;
  width: 250px;
  padding-top: 15px;
  padding-bottom: 15px;
  margin-bottom: 30px;
  margin-top: 15px;
  transition: all 0.8s;
}

.submit-btn:hover {
  cursor: pointer;
  color: white !important;
  background-color: rgb(19, 192, 183);
  border: 2px solid rgb(19, 192, 183);
  transition: 0.15s linear;
  box-shadow: 0px 5px 40px 5px rgb(19, 192, 183);
}

/*---------------------------------------------------mediaquery--------------------------------------------------*/

/*-------------------------------mobile phone----------------------------*/

@media screen and (min-device-width: 319px) and (max-device-width: 329px) {
  .nav-container {
    margin-top: 0px;
  }

  .contact-form {
    margin-top: clamp(400px, calc(50vh - 30px), calc(50vh - 30px));
    width: calc(100% - 20px);
    margin-left: 0%;
  }

  .input-wrapper,
  .success,
  .error {
    width: 100%;
    margin-left: -16px;
  }

  textarea {
    height: 100px;
  }
}

@media screen and (min-device-width: 330px) and (max-device-width: 349px) {
  .nav-container {
    margin-top: 0px;
  }

  .contact-form {
    margin-top: clamp(400px, calc(50vh - 30px), calc(50vh - 30px));
    width: calc(100% - 20px);
    margin-left: 0%;
  }

  .input-wrapper,
  .success,
  .error {
    width: 100%;
    margin-left: -16px;
  }

  textarea {
    height: 100px;
  }
}

@media screen and (min-device-width: 350px) and (max-device-width: 374px) {
  .nav-container {
    margin-top: 0px;
  }

  .contact-form {
    margin-top: clamp(400px, calc(50vh - 30px), calc(50vh - 30px));
    width: calc(100% - 20px);
    margin-left: 0%;
  }

  .input-wrapper,
  .success,
  .error {
    width: 100%;
    margin-left: -16px;
  }

  textarea {
    height: 100px;
  }
}

@media screen and (min-device-width: 375px) and (max-device-width: 399px) {
  .nav-container {
    margin-top: 0px;
  }

  .contact-form {
    margin-top: clamp(400px, calc(50vh - 30px), calc(50vh - 30px));
    width: calc(100% - 20px);
    margin-left: 0%;
  }

  .input-wrapper,
  .success,
  .error {
    width: 100%;
    margin-left: -16px;
  }

  textarea {
    height: 100px;
  }
}

@media screen and (min-device-width: 400px) and (max-device-width: 448px) {
  .nav-container {
    margin-top: 0px;
  }

  .contact-form {
    margin-top: clamp(400px, calc(50vh - 30px), calc(50vh - 30px));
    width: calc(100% - 20px);
    margin-left: 0%;
  }

  .input-wrapper,
  .success,
  .error {
    width: 100%;
    margin-left: -16px;
  }

  textarea {
    height: 100px;
  }
}

@media screen and (min-device-width: 449px) and (max-device-width: 480px) {
  .nav-container {
    margin-top: 0px;
  }

  .contact-form {
    margin-top: clamp(400px, calc(50vh - 30px), calc(50vh - 30px));
    width: calc(100% - 20px);
    margin-left: 0%;
  }

  .input-wrapper,
  .success,
  .error {
    width: 100%;
    margin-left: -16px;
  }

  textarea {
    height: 100px;
  }
}

/*------------------overige viewports------------------*/

@media screen and (min-device-width: 481px) and (max-device-width: 560px) {
  .nav-container {
    margin-top: 0px;
  }

  .contact-form {
    margin-top: clamp(400px, calc(50vh - 30px), calc(50vh - 30px));
    width: calc(100% - 20px);
    margin-left: 0%;
  }

  .input-wrapper,
  .success,
  .error {
    width: 100%;
    margin-left: -16px;
  }

  textarea {
    height: 100px;
  }
}

@media screen and (min-device-width: 561px) and (max-device-width: 767px) {
  .nav-container {
    margin-top: 0px;
  }

  .contact-form {
    margin-top: clamp(400px, calc(50vh - 30px), calc(50vh - 30px));
    width: calc(80% - 20px);
    margin-left: 0%;
  }

  .input-wrapper,
  .success,
  .error {
    width: 100%;
    margin-left: -16px;
  }

  textarea {
    height: 100px;
  }
}

@media screen and (min-device-width: 768px) and (max-device-width: 900px) {
  .nav-container {
    margin-top: 0px;
  }

  .contact-form {
    margin-top: clamp(400px, calc(50vh - 30px), calc(50vh - 30px));
    width: calc(60% - 20px);
    margin-left: 0%;
  }

  .input-wrapper,
  .success,
  .error {
    width: 100%;
    margin-left: -16px;
  }

  textarea {
    height: 100px;
  }
}

@media screen and (min-device-width: 901px) and (max-device-width: 1023px) {
  .nav-container {
    margin-top: 0px;
  }

  .contact-form {
    width: calc(50% - 20px);
    margin-left: 35%;
  }

  .input-wrapper,
  .success,
  .error {
    width: 100%;
    margin-left: -16px;
  }

  textarea {
    height: 100px;
  }
}

/*------------------laptop------------------*/

@media screen and (min-device-width: 1024px) and (max-device-width: 1269px) {
  .contact-form {
    margin-left: 25%;
  }
}

@media screen and (min-device-width: 1270px) and (max-device-width: 1399px) {
}

@media screen and (min-device-width: 1400px) and (max-device-width: 1529px) {
}

@media screen and (min-device-width: 1530px) and (max-device-width: 1659px) {
}

@media screen and (min-device-width: 1660px) and (max-device-width: 1789px) {
}

@media screen and (min-device-width: 1790px) and (max-device-width: 1919px) {
}
