.form-title {
  font-size: 3rem;
  font-weight: normal;
  width: 100%;
  padding-bottom: 2rem;
  border-bottom: 0.1rem solid #e6e6e6;
  margin-bottom: 2rem;
  text-align: center;
}

.form {
  display: flex;
  flex-direction: column;
  border: 0.1rem solid #e6e6e6;
  padding: 3.5rem 4rem;
  border-radius: 0.2rem;
  box-shadow: 0 0.2rem #e6e6e6;
  font-size: 2rem;
  min-width: 40%;
  width: fit-content;
  margin: 0 auto;
}

.form .form-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0.7rem 0;
  column-gap: 1rem;
}

.form .form-label {
  font-weight: 600;
  color: #333;
  display: flex;
  width: 35%;
}

.form .required-field::after {
  content: '*';
  color: red;
}

.form .input-group {
  width: 75%;
}

.form .form-input {
  display: flex;
  width: 100%;
  height: fit-content;
  padding: 0.5rem;
  background-color: #fff;
  border: 0.1rem solid #ccc;
  border-radius: 0.5rem;
  color: #333;
  font-size: inherit;
}

.form .form-input:focus {
  border: 0.1rem solid var(--second-color);
  outline: none;
}

.form .form-input:disabled {
  cursor: not-allowed;
}

.form .non-field {
  text-align: center;
  font-size: 1.6rem !important;
}

.form .form-errors {
  color: red;
  font-size: 1.2rem;
  margin-top: 0.3rem;
  list-style-type: none;
}

.form .error-message {
  margin-bottom: 0.3rem;
}

.dashed-line {
  display: inline;
  padding-bottom: 0.1rem;
  border-bottom: 0.1rem dashed var(--text-color);
}

.end-form {
  margin: 0 auto;
  margin-top: 2rem !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.submit-and-text {
  display: flex;
  flex-direction: row;
  column-gap: 2rem;
  align-items: center;
}

.link p {
  font-size: 1.6rem;
  text-align: center;
  margin-top: 1rem;
}

#buttonSubmit {
  display: flex;
  align-items: center;
  background-color: var(--second-color);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  width: fit-content;
  font-size: 2rem;
  cursor: pointer;
}

#buttonSubmit:hover {
  color: #dbdbdb;
  background-color: rgba(32, 62, 74, 0.85);
}

@media (max-width: 1200px) {
  .form {
    font-size: 1.9rem;
    padding: 3rem 3.5rem;
  }
}

@media (max-width: 1000px) {
  .form {
    font-size: 1.8rem;
    padding: 2.5rem 3rem;
  }
}

@media (max-width: 750px) {
  .form {
    font-size: 1.7rem;
    padding: 2rem 2.5rem;
  }
}

@media (max-width: 500px) {
  .form {
    font-size: 1.6rem;
    padding: 1.5rem 2rem;
  }
}
