/* Address Book Form Styles */

.ab-form {
  max-width: 600px;
  font-family: sans-serif;
}

.ab-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25em;
}

.ab-form p {
  margin-bottom: 1.25em;
}

/* Two-column layout */
.ab-row {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5em;
  margin-bottom: 1.5em; 
}


.ab-half {
  width: calc(50% - 1em);
  margin: 0.5em;
}

@media (max-width: 600px) {
  .ab-half {
    width: 100% !important;
    margin: 0 0 1em;
  }
}

/* Inputs and selects */
.ab-form input[type="text"],
.ab-form input[type="email"],
.ab-form select {
  width: 100%;
  padding: 0.5em 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 0.25em;
  font-size: 1em;
}

/* Submit button */
.ab-form input[type="submit"] {
  background-color: #0073aa;
  color: #fff;
  border: 1px solid #0073aa;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.2s ease;
}

.ab-form input[type="submit"]:hover {
  background-color: #005177;
}

/* Error & success messages */
.ab-error-messages,
.ab-success-message {
  padding: 0.75em 1em;
  border-radius: 4px;
  margin-bottom: 1em;
  font-size: 0.95em;
}

.ab-error-messages {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.ab-error-messages ul {
  margin: 0;
  padding-left: 1.25em;
}

.ab-success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}
