/* ==========================================================================
   Form Components Styles
   ========================================================================== */

.af-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--spacing-lg);
  width: 100%;
}

/* Label Styles */
.af-form-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  display: inline-block;
}

.af-required-asterisk {
  color: var(--secondary-color); /* Saffron/Orange color for required stars */
}

/* Base Input & Textarea Styles */
.af-form-input {
  width: 100%;
  padding: 0.75rem var(--spacing-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--surface-color);
  border: 1px solid #D1D5DB; /* Light gray border */
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.af-form-input::placeholder {
  color: var(--text-muted);
}

/* Focus States */
.af-form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15); /* Soft earthy green glow */
}

/* Textarea Specifics */
.af-textarea {
  resize: vertical; /* Allows the user to only expand it vertically */
  min-height: 100px;
}

/* Error States */
.af-input-error {
  border-color: #DC2626; /* Red border for errors */
}

.af-input-error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); /* Soft red glow */
}

.af-error-message {
  color: #DC2626;
  font-size: 0.85rem;
  margin-top: var(--spacing-xs);
  font-weight: 500;
}