/* ── Forms ── */

/* Underline fields (nominate form) */
.field-underline {
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 10px 2px;
  height: 38px;
  font-size: var(--text-lg);
  font-family: inherit;
  background: transparent;
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}
.field-underline:focus {
  border-bottom-color: var(--color-accent);
  outline: none;
}
.field-underline::placeholder {
  color: var(--color-text-tertiary);
  font-style: italic;
  font-weight: var(--weight-light);
}
.field-underline--large {
  font-size: 20px;
  font-weight: var(--weight-bold);
  padding: 12px 2px;
}

/* Custom select dropdown */
select.field-underline {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239a9a8e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
  cursor: pointer;
}
select.field-underline:focus {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%234f6d7a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
select.field-underline option {
  font-family: var(--font-system);
  padding: var(--space-2);
}

/* Textarea */
.field-textarea {
  width: 100%;
  border: none;
  border-radius: var(--radius-lg);
  padding: 14px var(--space-4);
  font-size: var(--text-lg);
  font-family: inherit;
  line-height: 1.6;
  min-height: 100px;
  resize: none;
  overflow: hidden;
  background: var(--color-surface);
  color: var(--color-text);
  transition: background var(--transition-fast);
}
.field-textarea:focus {
  background: #e2dfd8;
  outline: none;
}
.field-textarea::placeholder {
  color: var(--color-text-tertiary);
  font-style: italic;
  font-weight: var(--weight-light);
}

/* ── Onboarding page ── */
.onboarding-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}
.onboarding-inner {
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.onboarding-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: var(--weight-medium);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-charcoal);
  margin-bottom: 6px;
}
.onboarding-subtitle {
  font-family: var(--font-display);
  font-size: var(--text-3xs);
  font-weight: var(--weight-medium);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 40px;
}
.onboarding-note {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  text-align: center;
  margin-bottom: 8px;
}
.onboarding-sig {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-align: center;
  margin-bottom: 36px;
}
.onboarding-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: var(--weight-normal);
  color: var(--color-charcoal);
  margin-bottom: 16px;
}
.onboarding-field {
  margin-bottom: 28px;
}
.onboarding-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--color-border);
  padding: 12px 0;
  font-size: 16px;
  font-family: inherit;
  font-weight: var(--weight-normal);
  letter-spacing: 0.3px;
  text-align: center;
  background: transparent;
  color: var(--color-text);
  transition: border-color var(--transition-normal);
  border-radius: 0;
  -webkit-appearance: none;
}
.onboarding-input:focus {
  border-bottom-color: var(--color-accent);
  outline: none;
}
.onboarding-input::placeholder {
  color: var(--color-border);
  font-weight: var(--weight-light);
}
.onboarding-alert {
  background: #fdf2f2;
  color: var(--color-danger);
  font-size: var(--text-xs);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.onboarding-hint {
  font-size: var(--text-2xs);
  color: var(--color-text-tertiary);
  line-height: 1.6;
  margin-top: 20px;
}

/* Form error alert — translucent, matches chip-budget-alert style */
.form-error-alert {
  background: rgba(204, 68, 68, 0.05);
  border: 1.5px solid rgba(204, 68, 68, 0.18);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.form-error-alert strong {
  color: var(--color-danger);
}

/* Validation errors */
.field-underline.has-error {
  border-bottom-color: var(--color-danger);
}
.field-textarea.has-error {
  outline: 1px solid var(--color-danger);
}
.field-error {
  font-size: var(--text-3xs);
  color: var(--color-danger);
  margin-top: var(--space-1);
}
