/* Importazione del font Montserrat da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@450;600&display=swap');

/* Stili comuni per i campi di input */
.form-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  width: 375px;
}

/* Stili per le etichette dei campi */
.form-field__label {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  width: 100%;
  height: 21px;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0.01em;
  font-feature-settings: 'liga' off, 'kern' off;
  color: #212121;
}

/* Stili per il campo di input */
.form-field__input {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px;
  gap: 16px;
  width: 100%;
  height: 56px;
  background: #FFFFFF;
  border: 1px solid #646C73;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 450;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.005em;
  font-feature-settings: 'liga' off, 'kern' off;
  color: #646C73;
}

/* Stili per il testo di suggerimento */
.form-field__hint {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  height: 21px;
  font-family: 'Montserrat', sans-serif;
  font-style: normal;
  font-weight: 450;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0.01em;
  font-feature-settings: 'liga' off, 'kern' off;
  color: #646C73;
}

/* Stili per il campo di input con focus */
.form-field__input:focus {
  border: 3px solid #014A65;
  outline: none;
}

/* Stili per il campo di input attivo (con testo) */
.form-field__input.active {
  border: 1px solid #212121;
  color: #212121;
}

/* Stili per il campo di input con errore */
.form-field--error .form-field__input {
  border: 1px solid #DE1135;
}

.form-field--error .form-field__hint {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: #DE1135;
}

.form-field--error .form-field__hint::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM11 15H9V13H11V15ZM11 11H9V5H11V11Z' fill='%23DE1135'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Stili per il campo di input disabilitato */
.form-field--disabled .form-field__label {
  color: #8A9399;
}

.form-field--disabled .form-field__input {
  background: #EDF0F2;
  border: 1px solid #EDF0F2;
  color: #8A9399;
  cursor: not-allowed;
}

/* Stili per placeholder */
.form-field__input::placeholder {
  color: #646C73;
}

.form-field--disabled .form-field__input::placeholder {
  color: #8A9399;
}
