/* Формы в модалке */
.modal__dialog,
.modal__dialog * {
  box-sizing: border-box;
}

.fos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 14px;
}

.fos__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.fos__row--full {
  grid-column: 1 / -1;
}

.fos__row input,
.fos__row textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 12px 14px;

  font: inherit;
  color: var(--clr-text);
  background: var(--clr-surface);
}

.fos__row input {
  height: 44px;
}

.fos__row textarea {
  min-height: 120px;
  resize: vertical;
}

/* hover (очень деликатно) */
.fos__row input:hover,
.fos__row textarea:hover {
  border-color: color-mix(in oklab, var(--accent) 22%, var(--clr-border) 78%);
}

/* focus */
.fos__row input:focus,
.fos__row textarea:focus {
  outline: none;
  border-color: color-mix(in oklab, var(--accent) 55%, var(--clr-border) 45%);
  box-shadow: 0 0 0 3px var(--accent-ghost);
}

/* placeholder */
.fos__row input::placeholder,
.fos__row textarea::placeholder {
  color: color-mix(in oklab, var(--clr-muted) 70%, #fff 30%);
}

/* Ряд действий */
.fos__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Responsive — центровка кнопок в модалке */
@media (max-width: 680px) {
  .fos__actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .fos__actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
