/* Basic styles to center layout */
html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f9f9f9;
  color: #333;
}

header {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 8px;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px;
}

form {
  width: 720px;
  max-width: calc(100% - 40px);
  background: #fff;
  padding: 20px 24px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid #e6e6e6;
}

/* Headings inside form */
form h2 {
  font-size: 1rem;
  margin: 0 0 8px 0;
  color: #222;
}

/* Fieldset styling */
fieldset {
  border: 1px solid #ddd;
  padding: 12px;
  margin-bottom: 16px;
}

legend {
  padding: 0 6px;
  font-weight: bold;
}

/* Label and input layout */
label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

label.inline {
  display: inline;
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  display: block;
  margin-top: 4px;
  margin-bottom: 8px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
}

.textinput {
  width: 100%;
  min-height: 90px;
  resize: vertical;
}

/* Small elements inline */
input[type="range"] {
  vertical-align: middle;
  margin-top: 6px;
  margin-bottom: 6px;
}

/* Inline checkboxes / radios group style */
fieldset > label {
  margin-right: 12px;
}

/* Buttons */
input[type="submit"],
input[type="reset"] {
  padding: 8px 14px;
  border: 1px solid #888;
  background: #efefef;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
}

/* Footer */
footer {
  text-align: center;
  margin: 14px 0 40px 0;
}

#validation a {
  color: #1155cc;
  text-decoration: none;
}
#validation a:visited {
  color: #551A8B;
}
