#form,
.link,
.input-wrap,
.file-wrap,
.button {
  visibility: hidden;
}

.msg {
  visibility: hidden;
  max-width: 320px;
  max-width: 70%;
  min-width: 50%;
  height: 52px;
  position: absolute;
  padding: 25px 15px;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-align: center;
  border-radius: 4px;
  font-weight: normal;
  opacity: 0;
  cursor: pointer;
  z-index: 555;
}

.showmsg {
  visibility: visible !important;
  opacity: 1 !important;
  -webkit-transform: translateY(-5vh);
  -ms-transform: translateY(-5vh);
  transform: translateY(-5vh);
  -webkit-animation: shadow 0.3s 2.5s forwards ease-in-out;
  animation: shadow 0.3s 2.5s forwards ease-in-out;
}

@-webkit-keyframes view {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
    -webkit-transform: translateY(-5vh);
    transform: translateY(-5vh);
  }
}

@keyframes view {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
    -webkit-transform: translateY(-5vh);
    transform: translateY(-5vh);
  }
}

@-webkit-keyframes hide {
  to {
    opacity: 0;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes hide {
  to {
    opacity: 0;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}


.inputerror {
  border-color: #DC352F !important;
  animation: shake 0.15s 3 forwards ease-in-out;
  margin-left: 1px;
}

@keyframes shake {
  from {
    transform: translateX(0px);
  }

  50% {
    transform: translateX(1px);
  }

  to {
    transform: translateX(-1px);
  }
}

.wrap {
  max-width: 650px;
  max-width: 508px;
  width: 100%;
  height: 100%;
  margin: auto;
}

#form {
  width: 100%;
  height: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0rem 0.1rem 0.3rem rgb(34 64 88 / 70%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
}

.group-input {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.group-submit-file-input {
  display: grid;
  width: 100%;
  margin-bottom: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

.group-text-input {
  width: 100%;
}

.input-wrap {
  position: relative;
  margin-bottom: 15px;
}

/* input */

.input-wrap label {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  color: #848e99;
}

.form-input {
  height: 52px;
  width: 100%;
  padding: 1rem;
  text-align: center;
  background: none;
  outline: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border: solid 1px #dde1e6;
  border-radius: 4px;
}

.area-label {
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  background: #ffffff;
  padding: 8px 0 10px;
  width: calc(100% - 34px);
  left: 20px;
  position: absolute;
  top: 11px;
  color: #848e99;
}

.active {
  font-size: 0 !important;
}

.count {
  height: 100%;
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.count p {
  width: 80px;
  text-align: center;
}

.labelFile {
  height: 100%;
  width: 100%;
  -ms-flex-pack: center;
  border-radius: 4px;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 1.3rem;
  font-weight: normal;
  -webkit-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  border: 1px solid #c7ced7;
  color: #2c3949;
  background: #f4f7fb;
  justify-content: center;
}

.labelFile:hover {
  background: #E2E9F4
}

.labelFile:active {
  background: #dae1ec;
}

.inputFile {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}

.labelFile img {
  display: flex;
  height: 100%;
  padding: 1rem;
  padding-right: 5px;

}

.file-wrap {
  display: flex;
  height: 52px;
  padding: 0 1rem;
  width: 100%;
  justify-content: center;
  align-items: center;
}

textarea.form-input {
  min-height: 85px;
  max-height: 100px;
  resize: vertical;
  padding: 1rem;
}

#texta {
  display: flex;
  align-items: center;
  resize: none;
  width: calc(100% - 2rem);
  height: 100%;
  margin: auto;
  outline: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border-radius: 4px;
  -webkit-transition: border 0.2s ease-in-out;
  -o-transition: border 0.2s ease-in-out;
  transition: border 0.2s ease-in-out;
}

#texta::-webkit-scrollbar {
  width: 14px;
}

#texta::-webkit-scrollbar-thumb {
  background-clip: content-box;
  border: 4px solid transparent;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 0 0 10px;
  box-shadow: inset 0 0 0 10px;
  color: #bdbdbd;
}

#texta::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

#texta::-webkit-scrollbar-corner {
  background-color: transparent;
}

.aInput {
  width: calc(100% - 2rem);
  margin: 0 1rem 0 1rem;
  padding: 0 1rem 0 1rem;
  font-family: 'Pattaya-Regular', sans-serif;
  transition: border 0.2s ease-in-out;
  font-size: 1.3rem;
}

.aInput:focus {
  border: solid 1px #6EAFFE;
}

.button-form {
  margin: auto;
  width: calc(100% - 2rem);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2045cb;
  border: none;
  outline: none;
  color: #ffffff;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: background 0.1s ease-in-out;
  -o-transition: background 0.1s ease-in-out;
  transition: background 0.1s ease-in-out;
}

.button-form:hover {
  background: #1E41BD;
  color: white;
}

.button-form:active {
  background: #18359C;
}

.button-form:disabled {
  cursor: not-allowed;
  background: #b1b1b1;
}

.button-wrap {
  width: 100%;
}