*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background: #0e0f34;
  color: #f4f4f4;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.container {
  background: #16243b;
  padding: 1rem;
  border: 3px solid #1c1e57;
  border-radius: 10px;
  width: 97%;
  max-width: 450px;
}

.errorMsg {
  background-color: #ec2a58;
  padding: 0.5rem 5px;
  font-size: 14px;
  color: #e8ecf0;
  display: none;
}
.errorMsg.active {
  display: block;
}

.from-item {
  display: flex;
  flex-direction: column;
}

label {
  margin: 6px 0;
  font-size: 20px;
  opacity: 0.6;
}
input[type="text"],
input[type="number"],
textarea.message {
  height: 40px;
  font-size: 16px;
  padding: 2px 5px;
  outline: 0;
  border: 2px solid #1277e6;
  border-radius: 3px;
  background: #222f45;
  color: #019dea;
}
input[type="number"] {
  width: 70px;
  height: 30px;
}
textarea.message {
  width: 100%;
  min-height: 100px;
  resize: none;
  font-family: Arial, Helvetica, sans-serif;
}

.submit-btn {
  background: #1277e6;
  width: 120px;
  text-align: center;
  padding: 0.6rem;
  border-radius: 3px;
  border: 1px solid #3c96f7;
  margin-top: 1rem;
  color: #ddd;
  cursor: pointer;
}
.submit-btn:hover {
  background: #1167c2;
}
.submit-btn:active {
  position: relative;
  top: 1px;
}
.err-text {
  display: none;
}
.err-text.active {
  color: rgb(236, 55, 55);
  margin-top: 3px;
  display: block;
}
