* {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

body {
  position: relative;
  width: 100vw;
  height: 100vh;
  background-color: #cfcfcf;
}

.form {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  padding: 40px;
  margin: 0 auto;
  outline: 10px #8bc34a double;
  background-color: #ececec;
  border-radius: 8px;
}

/******************* start heeder *******************/
.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  font-weight: 500;
  letter-spacing: 1px;
  color: #000;
}

.header p {
  margin-top: 5px;
  color: #505050;
}
/******************* end heeder *******************/

/******************* start hr *******************/
.hr {
  background-color: black;
  width: 100%;
  height: 7px;
  margin-top: -5px;
}

hr {
  height: 2px;
  background-color: #ffffff;
  border: none;
}
/******************* end hr *******************/

/******************* start form *******************/
form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

label {
  display: block;
  margin-bottom: 5px;
}

span.required {
  color: red;
}

.name div {
  width: calc(50% - 2.3px);
  display: inline-block;
}

input,
textarea {
  border: 1px solid #acb79f;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 15px;
  transition: background-color 0.2s, border-color 0.2s;
  /* width: calc(50% - 2.3px); */
  width: 100%;
}

input:focus,
textarea:focus {
  border-color: #8fb169;
  background-color: #8fb16925;
  outline: none;
}

input:hover,
textarea:hover {
  background-color: #8fb16925;
}

.email input,
.phone input {
  width: 100%;
}

.text {
  display: flex;
  flex-direction: column;
}

.text textarea {
  width: 100%;
  resize: none;
  margin-bottom: 3px;
}

div.minmax-character {
  color: #505050;
  display: flex;
  justify-content: end;
  font-size: 10px;
  gap: 3px;
}

div.minmax-character span {
  color: #4caf50;
}

.submit {
  text-align: center;
}

.submit input {
  width: 100px;
  height: 36px;
  /* background-color: #4caf5075; */
  background-color: #4caf50;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  transition: opacity 0.3s, background-color 0.3s;
  /* cursor: not-allowed; */
  cursor: pointer;
}

.submit input:hover {
  background-color: #4caf5075;
}

@media (max-width: 600px) {
  .form {
    width: 90%;
    padding: 20px;
  }

  .submit input {
    width: 100%;
  }
}
/******************* end form *******************/
