/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, sans-serif;
  background: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Form Container */
.form-container {
  width: 100%;
  max-width: 480px;
  background: #fff;
  padding: 2rem;
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #000; /* subtle brutalist vibe */
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

/* Labels & Inputs */
form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

form input,
form select,
form button {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.4rem;
  border: 2px solid #000;
  border-radius: 4px;
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

form input:focus,
form select:focus {
  outline: none;
  border-color: #333;
  box-shadow: 2px 2px 0 #000;
}

/* Phone + Verify */
.phone-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.phone-group input {
  flex: 1;
}

.phone-group button {
  max-width: fit-content;
  flex-shrink: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.phone-group button:hover {
  background: #333;
}

/* Gender */
.gender-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.gender-group div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.gender-group input {
  width: auto;
}

.gender-group label {
  margin: 0;
}

/* Terms */
.terms {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.terms input {
  max-width: fit-content;
}

.terms label {
  margin-top: 0;
}
/* Submit Button */
button[type="submit"] {
  margin-top: 1.5rem;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s ease;
}

button[type="submit"]:hover {
  background: #333;
}

/* Error Messages */
.error {
  color: red;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  min-height: 1rem; /* keeps layout stable */
}

/* Responsive */
@media (max-width: 480px) {
  .form-container {
    padding: 1.2rem;
  }
  h1 {
    font-size: 1.5rem;
  }
  form input,
  form select,
  form button {
    font-size: 0.9rem;
  }
}
