body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
  color: #222;
  background: #f9f9f9;
}

h1 {
  text-align: center;
  margin: 0 0 2rem;
}

.control-group {
  margin: 0.8em 0;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
}

input[type="text"],
input[type="color"],
input[type="number"],
input[type="range"],
input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1.5px solid #ccc;
  box-sizing: border-box;
  transition: border-color 0.25s ease;
}

input[type="text"]:focus,
input[type="color"]:focus,
input[type="number"]:focus,
input[type="range"]:focus,
input[type="file"]:focus {
  outline: none;
  border-color: #0078d7;
}

input[type="range"] {
  cursor: pointer;
}

input[type=color] {
  padding: 1px 2px;
  width: 38px;
  height: 35px;
}

select {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  appearance: none;  /* remove OS styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 3 4 2"><path fill="%23666" d="M2 5 L0 3 h4 z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 8px 10px;
  cursor: pointer;
  width: 100%;
  max-width: 250px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

button {
  margin-top: 20px;
  padding: 12px 20px;
  font-size: 1.1rem;
  background: #0078d7;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}

button:hover:not(:disabled) {
  background: #005a9e;
}

button:disabled {
  background: #aaa;
  cursor: default;
}

.footer {
  margin-top: 40px;
  font-size: 0.9rem;
  text-align: center;
  color: #666;
}

@media screen and (min-width: 500px) {
  .footer {
    display: flex;
    justify-content: space-between;
  }
}