.form-container {
  text-align: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.form-container h2 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* allows wrapping */
}

.form-row input,
.form-row select {
  flex: 1 1 100%;   /* allow shrinking, growing, and full width */
  max-width: 100%;  /* never exceed parent width */
  padding: 12px;
  font-size: 15px;
  border: none;
  outline: none;
  background: #fff;
  border-radius: 2px;
  box-sizing: border-box;
}

select {
  appearance: none;
  cursor: pointer;
}

button {
  margin-top: 10px;
  background: #000;
  color: #fff;
  border: none;
  padding: 12px 0;
  font-size: 15px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.3s ease;
  width: 100%; /* full width on all screens */
}

button:hover {
  background: #222;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column; /* stack inputs vertically */
    gap: 10px;
  }

  .form-container h2 {
    font-size: 20px;
  }
}