*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
p,
dl,
dd {
  margin: 0;
}

body {
  margin: 0;
  padding: 30px 20px;
  font-family: "Helvetica Neue", helvetica, arial, sans-serif;
  color: #444;
  background: #f5f5f5;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.card {
  padding: 1.5em;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.08);
  max-width: 480px;
}

@media (min-width: 480px) {
  .card {
    padding: 2em;
  }
}

h1 {
  margin: 0 0 1.5rem;
  color: #3c9f29;
  font-size: 1.75rem;
  line-height: 1.2;
}

form {
  margin: 1.5rem 0 2rem;
}

form dt {
  margin-bottom: 0.5rem;
  font-weight: 700;
}

form dt label .hint {
  font-weight: 400;
  color: #666;
  font-size: 14px;
  hyphens: auto;
}

form [type="text"] {
  padding: 12px;
  margin-bottom: 0.5rem;
  width: 100%;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-transform: uppercase;
  background: #f8f8f8;
}

form .has-error [type="text"] {
  border-color: red;
}

form [type="submit"] {
  margin-top: 1.5rem;
  display: block;
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s;
}

form [type="submit"].active {
  opacity: 1;
  pointer-events: auto;
}

form [type="submit"]:hover,
form [type="submit"]:focus {
  background: #333;
}

.form-input-error {
  color: red;
  font-size: 14px;
}

.char-counter {
  font-size: 14px;
  color: #666;
}

.no-js .char-counter {
  display: none;
}

.note {
  font-size: 14px;
  color: #666;
}

footer {
  margin-top: 50px;
  padding: 0 1.5rem;
  color: #888;
  text-align: center;
  max-width: 480px;
}

.footer-small > * + * {
  margin-top: 1rem;
}

footer hr {
  margin: 1.5rem 0;
  border: none;
  border-top: 1px solid #ddd;
  width: 100%;
}

.footer-links {
  margin-bottom: 1.5rem;
  font-size: 13px;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.logos {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.logos a img {
  opacity: 0.6;
}

footer a {
  color: #2f7c20;
  text-decoration: none;
}

footer a:hover,
footer a:focus {
  text-decoration: underline;
}

footer .footer-small {
  font-size: 12px;
  line-height: 1.6;
  color: #666;
}
