/* Form controls — HiSelf new UI */

.page-board {
  padding-bottom: 48px;
}

.page-head {
  margin-bottom: 28px;
}

.page-head h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--color-text);
}

.page-head .page-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 24px;
}

.field-select {
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  min-width: 180px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--color-border-input);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23667085' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  background-size: 12px;
  appearance: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-body);
  cursor: pointer;
}

.field-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.12);
}

.field-search {
  display: flex;
  align-items: stretch;
  flex: 1;
  max-width: 360px;
  min-width: 200px;
  gap: 8px;
}

.field-input {
  display: block;
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--color-border-input);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-text);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.field-search .field-input {
  flex: 1;
  min-width: 0;
  width: auto;
}

.field-input::placeholder {
  color: var(--color-text-muted);
}

.field-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 92, 255, 0.12);
}

.field-search-btn {
  flex-shrink: 0;
  width: 50px;
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.field-search-btn:hover {
  background: var(--color-primary-dark);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-kakao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #fee500;
  color: #191600;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.btn-kakao:hover {
  background: #f5d900;
}

.board-toolbar--search-only {
  justify-content: flex-end;
}

.board-toolbar--search-only .field-search {
  max-width: 420px;
}

@media (max-width: 768px) {
  .page-head h1 {
    font-size: 24px;
  }

  .board-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .field-select {
    width: 100%;
    min-width: 0;
  }

  .field-search {
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .board-toolbar--search-only .field-search {
    max-width: none;
  }
}
