/* General form container */
form {
  max-width: 800px;
  margin: 0 auto;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 15px;
  color: #333;
}

/* Labels */
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}

/* Text inputs, email, tel, select, textarea */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form input[type="date"],
form select,
form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 14px;
}

/* Focus state */
form input:focus,
form select:focus,
form textarea:focus {
  border-color: #146793;
  box-shadow: 0 0 4px rgba(20, 103, 147, 0.4);
  outline: none;
  background: #fff;
}

/* Textarea height */
form textarea {
  min-height: 80px;
  resize: vertical;
}

/* Buttons */
form input[type="submit"],
form button {
  display: inline-block;
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

/* Primary action (Find Member, Update) */
form input[type="submit"][name="sale"],
form input[type="submit"][name="update"] {
  background-color: #7c2900;
  color: #fff;
}

/* Secondary action (Search Again, Cancel) */
form input[type="submit"][name="search_again"],
form input[type="submit"][name="cancel"] {
  background-color: #7c2900;
  color: #fff
}

/* Choose button */
form input[type="submit"][name="choose"] {
  background-color: #7c2900;
  color: #fff;
}

/* Hover/active states */
form input[type="submit"]:hover {
  opacity: 0.9;
}
form input[type="submit"]:active {
  transform: scale(0.98);
}

/* h1, h2 */
h1, h2 { color: #5e290e; text-align: center; margin-top: 15px; margin-bottom: 10px; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }

.title-select {
  width: 100%;
  height: 50px;
  margin-bottom: 8px;
  font-size: 14px; /* adjust as needed */
}

.btn-brown {
  background-color: #7c2900;
  color: #fff;
  padding: 6px 12px;
  border: none;
  cursor: pointer;
}
.btn-brown:hover {
  opacity: 0.9;
}

.error-field {
  border: 2px solid red;
  background-color: #ffe6e6;
}
.error-msg {
  color: red;
  font-size: 0.9em;
  margin-left: 8px;
}
