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

.form-container {
  width: 60vw;
  margin: 0 auto;
  margin-top: 100px;
  color: #333;
}

.form-block {
  padding: 1em;
  width: 100%;
  border-radius: 4px;
}

.btn {
  border: none;
  outline: none;
  background: #409eff;
  color: #fff;
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  transition: 0.1s;
  font-weight: 500;
  user-select: none;
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 4px;
}
.btn:hover {
  background: #66b1ff;
}
.btn:active {
  background: #3a8ee6;
}
.btn:disabled {
  background: #66b1ff80;
  cursor: not-allowed;
}
.label {
  display: flex;
  align-items: center;
  height: 40px;
  column-gap: 1em;
}
.label span {
  width: 50px;
  text-align: right;
}

.txt {
  outline: none;
  flex-grow: 1;
  font-size: inherit;
  padding: 1px 11px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  height: 40px;
  color: inherit;
}

.btn {
  margin-left: 82px;
  width: 100px;
  margin-top: 1em;
}

.txt:focus {
  border-color: #409eff;
}
.form-block {
  transition: 0.5s;
}
.form-block:focus-within {
  background: #40a0ff30;
}

.label span:has(+ input[required])::after {
  content: '*';
  color: #f40;
}
