.field-hint {
  font-size: 0.85em;
  color: var(--pico-muted-color);
  font-weight: normal;
}

.optional {
  font-weight: normal;
  color: var(--pico-muted-color);
}

/* Autocomplete */
.autocomplete-wrapper {
  position: relative;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  list-style: none;
  margin: -0.5rem 0 0 0;
  padding: 0;
  background: var(--pico-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 0 0 var(--pico-border-radius) var(--pico-border-radius);
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.autocomplete-list li {
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  border-bottom: 1px solid var(--pico-muted-border-color);
  font-size: 0.9em;
}

.autocomplete-list li:last-child {
  border-bottom: none;
}

.autocomplete-list li:hover,
.autocomplete-list li.active {
  background: var(--pico-primary-focus);
}

.autocomplete-list li .rmc-postcode {
  color: var(--pico-muted-color);
  font-size: 0.85em;
  margin-left: 0.5rem;
}

.autocomplete-list li .rmc-psc {
  display: block;
  color: var(--pico-muted-color);
  font-size: 0.8em;
}

.autocomplete-list li.other-option {
  font-style: italic;
  border-top: 2px solid var(--pico-muted-border-color);
}

/* Selected RMC display */
.rmc-selected {
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  background: var(--pico-primary-focus);
  border-radius: var(--pico-border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rmc-selected .clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  padding: 0 0.3rem;
  color: var(--pico-muted-color);
  margin: 0;
  width: auto;
}

/* Alert messages */
.alert {
  padding: 1rem;
  border-radius: var(--pico-border-radius);
  margin-bottom: 1.5rem;
}

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

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

/* Other RMC name input */
#rmc-name-other {
  margin-top: 0.5rem;
}

/* Managing agent "Other" text input */
#management-company-other {
  margin-top: 0.5rem;
}

/* Character counter */
.char-counter {
  font-size: 0.85em;
  color: var(--pico-muted-color);
  text-align: right;
  margin-top: -0.75rem;
  margin-bottom: 1rem;
}

/* Field guidance text */
.field-guidance {
  font-size: 0.85em;
  color: var(--pico-muted-color);
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Field info expandable */
.field-info {
  font-size: 0.9em;
  color: var(--pico-muted-color);
  margin-bottom: 0.75rem;
}

.field-info summary {
  cursor: pointer;
  font-size: 0.85em;
}

.field-info p:last-child {
  margin-bottom: 0;
}

/* About section */
.about-section {
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.about-section summary {
  cursor: pointer;
  font-weight: bold;
}

.about-section p:last-child {
  margin-bottom: 0;
}

/* Inline field errors */
.field-error {
  color: #b71c1c;
  font-size: 0.85em;
  display: block;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

/* Consent text */
.consent-text {
  font-size: 0.9em;
  color: var(--pico-muted-color);
}
