* reset */
body {
  background: #f4f4f4;
}
h1, h2, h3, p, label, input, textarea, button, select {
  font-size: 1em;
  margin: 0;
  padding: 0;
  font-family: "Rubik", sans-serif;
}

/* form & inputs */
form {
  width: 100%;
  max-width: 560px;
  margin: 40px auto;
  background: white;
  padding: 40px;
  box-sahdow: 1px 1px 2px rgba(0,0,0,0.2);
  border-radius: 4px;
}
input, textarea, select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #e4e4e4;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0;
}
textarea {
  max-width: 100%;
  height: 80px;
}
label {
}
.form-field {
  margin: 30px 0;

  p.hint {
    font-size: 0.8em;
    float: right;
    color: #777;
  }
  p.warning {
    color: #fe3131;
  }
}
input[type="checkbox"] {
  display: inline-block;
  width: 14px;
  height: 14px;
}
.newsletter label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px dotted #e4e4e4;
}
.form-field.password {
  position: relative;

  button {
    position: absolute;
    top: 36px;
    right: 6px;
    background: #e4e4e4;
    border: 0;
    border-radius: 4px;
    font-size: 0.8em;
    padding: 4px;
    cursor: pointer;
  }
  input {
    padding-right: 50px;
  }
}
button[type="submit"] {
  background: #0075ff;
  color: #fff;
  padding: 10px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
}
.error {
  color: #fe3131;
  font-size: 0.8em;
}
.success {
  color: #00c277;
  text-align: center;
  margin: 20px auto; 
}

/* modal */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal {
  background: white;
  padding: 20px 40px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 100%;
}
.modal h2 {
  margin-bottom: 10px;
  font-size: 1.5em;
}
.modal button {
  margin-top: 20px;
  padding: 8px 16px;
  background: #0075ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}