* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
body {
  background: #f2f4f8;
  margin: 0;
  padding: 20px;
}
.container {
  max-width: 900px;
  margin: auto;
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
}
h1 {
  text-align: center;
  color: #4f6edb;
}
.subtitle {
  text-align: center;
  margin-bottom: 25px;
  color: #555;
}
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
fieldset {
  border: 2px solid #d0d7ff;
  padding: 15px;
  border-radius: 8px;
  background: #fafbff;
}
legend {
  font-weight: bold;
  color: #4f6edb;
}
label {
  display: block;
  margin-top: 10px;
}
.group-label {
  margin-top: 15px;
  font-weight: bold;
}
input, select, textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
input:focus, select:focus, textarea:focus {
  border-color: #4f6edb;
  outline: none;
}
input:valid, textarea:valid, select:valid {
  border-color: #4caf50;
}

input:invalid, textarea:invalid, select:invalid {
  border-color: #e53935;
}
.buttons {
  grid-column: span 2;
  text-align: center;
  margin-top: 20px;
}
button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  margin: 5px;
}

button[type="submit"] {
  background: #4f6edb;
  color: white;
}

button[type="submit"]:hover {
  background: #3c55b8;
}

button.reset {
  background: #e0e0e0;
}

button.reset:hover {
  background: #bdbdbd;
}
  .buttons {
    grid-column: span 1;
  }
