/* Base reset */
* {
  box-sizing: border-box;
}

/* Page body */
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #222;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Content wrapper */

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Headings */
h1, h2, h3 {
  line-height: 1.3;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }

/* Paragraphs */
p {
  margin: 0.8em 0;
}

/* Lists */
ul { padding-left: 1.2em; }
li { margin: 0.4em 0; }

/* Links */
a {
  color: #0066cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Align title and form to the same width */
.form-wrap,
.container > h1 {
  width: 100%;
  max-width: 420px;
}


/* ===== FORM CONTROLS ===== */

input,
select,
button {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  box-sizing: border-box;
}

/* Buttons */
button {
  cursor: pointer;
  background: #f3f3f3;
}

/* Date input normalization */
input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
}

/* ===== FOOTER ===== */

footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  color: #666;
}

footer p {
  margin: 0;
}

footer a {
  text-decoration: none;
}

/* Narrow form controls on desktop */
@media (min-width: 768px) {
  input,
  select,
  button {
    max-width: 420px;
  }
}

/* ===== MOBILE ===== */

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  input,
  select,
  button {
    height: 42px;
    font-size: 14px;
  }
}
