:root {
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #222;
  background-color: #f6f7fb;
}

body {
  margin: 0;
  background-color: #f6f7fb;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  margin-bottom: 8px;
  font-size: 28px;
}

form {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgb(15 15 15 / 6%);
}

section + section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eceff6;
}

section h2 {
  margin-top: 0;
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 6px;
}

input,
select {
  border-radius: 10px;
  border: 1px solid #d7dbe7;
  padding: 10px 12px;
  font-size: 14px;
}

input:focus,
select:focus {
  border-color: #5b7cfa;
  outline: none;
  box-shadow: 0 0 0 2px rgb(91 124 250 / 25%);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

button[type="submit"],
#submitBtn {
  appearance: none;
  border: none;
  border-radius: 999px;
  background-color: #5b7cfa;
  color: #fff;
  padding: 14px 18px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
  width: auto;
  min-width: 200px;
}

button[type="submit"]:hover,
#submitBtn:hover {
  background-color: #4a6aeb;
}

#submitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hint {
  font-size: 13px;
  color: #6b728e;
}

.result {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 12px;
  background-color: #e9f7ef;
  color: #2d7a46;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 8px rgba(45, 122, 70, 0.15);
}

.result.error {
  background-color: #fdecea;
  color: #a33c37;
  box-shadow: 0 2px 8px rgba(163, 60, 55, 0.15);
}

.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  form {
    padding: 18px;
  }

  button[type="submit"],
  #submitBtn {
    width: 100%;
  }
}
