/**
 * @file form-actions.css
 * Form actions component — Figma desktop node 1-9153, mobile node 1-8750.
 * Layout: desktop = input + button row; mobile = stacked. DM Sans typography.
 * Tokens: --font-sans, --primary, --destructive, --primary-foreground, --border, --card-foreground.
 */

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.form-actions__form {
  width: 100%;
}

/* Desktop: row (input + button). Mobile: column (stacked). */
.form-actions__row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

@media (min-width: 768px) {
  .form-actions__row {
    flex-direction: row;
    align-items: center;
  }
}

/* Figma: bg rgba(2,7,4,0.05), border rgba(2,7,4,0.15), 12px 8px padding, 16px DM Sans */
.form-actions__input {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  color: var(--card-foreground, #020704);
  background: rgba(2, 7, 4, 0.05);
  border: 1px solid var(--border, rgba(2, 7, 4, 0.15));
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-actions__input::placeholder {
  color: rgba(2, 7, 4, 0.6);
}

.form-actions__input:hover {
  border-color: rgba(2, 7, 4, 0.25);
}

.form-actions__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(195, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .form-actions__input {
    width: auto;
  }
}

/* Figma: primary red button, 24px 10px padding, DM Sans Medium 16px, bottom border 4px */
.form-actions__btn {
  flex-shrink: 0;
  width: 100%;
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--primary-foreground);
  background: var(--primary);
  border: 1.5px solid var(--destructive);
  border-bottom-width: 4px;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
}

.form-actions__btn:hover {
  background: var(--destructive);
  color: var(--primary-foreground);
}

.form-actions__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .form-actions__btn {
    width: auto;
  }
}

/* Figma: Text Tiny 12px, DM Sans Regular, center, #020704 */
.form-actions__disclaimer {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  color: var(--card-foreground, #020704);
  text-align: center;
  width: 100%;
}
